Locking mechanism provided by the Web AS Java

Hi All,
I have a requirement to lock an object for a specific action
with using locks provided and managed by the Web AS Java (i have to use TableLocking API).
I have read about the locking mechanism in "SAP NetWeaver Developer Studio Documentation help" .
I need code samples (how it can be done).
How i should check data availability (is it locked?)?
Thanks.

hi
new features added in WAS7.0 for ABAP stack
1.Webdynpro for ABAP
2.New Enhancement Framework
3.Switch Frame Work
4.Adobe Forms integeration
5.New features added to ABAP Editor.
Also note that MySAP Business Suite is also the part of WAS7.0 release.
For Java stack new features have been added to Netweaver Developer Studio,EP and KM areas.Also BI-Java is also the part of WAS7.0 Release.
Cheers,
Abdul Hakim
Mark all useful answers..

Similar Messages

  • Browsing the web with JAVA

    hi everybody
    is there class ,component, whatever in java to browse the web inside java application ,
    i mean <i give it an URL and it will browse the page >
    thanks alot

    The best Java based browser technology I am aware of is from ICEsoft. It's small, fast, and has superb rendering abilities e.g., html 4.01, css 2, etc...
    http://www.icesoft.com/ps_browser_overview.html

  • Crawling the Web with Java

    Hi everyone.
    I've been trying to learn how to make a web crawler in java following this detailed albeit old tutorial: http://www.devarticles.com/c/a/Java/Crawling-the-Web-with-Java/
    The SearchCrawler class they feature can be found in two parts:
    First part: http://www.devarticles.com/c/a/Java/Crawling-the-Web-with-Java/3/
    Second part: http://www.devarticles.com/c/a/Java/Crawling-the-Web-with-Java/4/
    I don't want to copy and paste the code because it is really long and an eyesore if viewing here.
    I get a lot of errors when compiling of which I do not understand. The majority of the errors (62 of them to be precise) are "class, interface or enum expected" errors, with the remaining few being "illegal start of type" and "<identifier> expected" errors.
    Can someone here perhaps take a look at it and compile it and see if they also get the same errors? I realise it is an old tutorial but there are hardly any detailed resources I can find for java web crawlers.
    Thanks.

    Odd I can't seem to log into my account. Never mind.
    I have used java before, the problem here I suppose is I'm not good enough to spot what's the problem. The code seems fine bracket wise and it has really left me stumped.
    If someone code put it in their editor and attempt to compile and see if I'm not the only one that's having a problem.. that would be much appreciated.
    For your convenience... the code from the example I linked:
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import java.util.regex.*;
    import javax.swing.*;
    import javax.swing.table.*;
    // The Search Web Crawler
    public class SearchCrawler extends JFrame
      // Max URLs drop-down values.
      private static final String[] MAX_URLS =
        {"50", "100", "500", "1000"};
      // Cache of robot disallow lists.
      private HashMap disallowListCache = new HashMap();
      // Search GUI controls.
      private JTextField startTextField;
      private JComboBox maxComboBox;
      private JCheckBox limitCheckBox;
      private JTextField logTextField;
      private JTextField searchTextField;
      private JCheckBox caseCheckBox;
      private JButton searchButton;
      // Search stats GUI controls.
      private JLabel crawlingLabel2;
      private JLabel crawledLabel2;
      private JLabel toCrawlLabel2;
      private JProgressBar progressBar;
      private JLabel matchesLabel2;
      // Table listing search matches.
      private JTable table;
      // Flag for whether or not crawling is underway.
      private boolean crawling;
      // Matches log file print writer.
      private PrintWriter logFileWriter;
      // Constructor for Search Web Crawler.
      public SearchCrawler()
        // Set application title.
        setTitle("Search Crawler");
        // Set window size.
        setSize(600, 600);
         // Handle window closing events.
        addWindowListener(new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
           actionExit();
        // Set up File menu.
        JMenuBar menuBar = new JMenuBar();
        JMenu fileMenu = new JMenu("File"); 
        fileMenu.setMnemonic(KeyEvent.VK_F);
        JMenuItem fileExitMenuItem = new JMenuItem("Exit",
          KeyEvent.VK_X);
        fileExitMenuItem.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) { 
            actionExit();
        fileMenu.add(fileExitMenuItem);
        menuBar.add(fileMenu);
        setJMenuBar(menuBar);
        // Set up search panel.
        JPanel searchPanel = new JPanel();
        GridBagConstraints constraints;
        GridBagLayout layout = new GridBagLayout();
        searchPanel.setLayout(layout);
        JLabel startLabel = new JLabel("Start URL:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST; 
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(startLabel, constraints);
        searchPanel.add(startLabel);
        startTextField = new JTextField();
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 0, 5);
        layout.setConstraints(startTextField, constraints);
        searchPanel.add(startTextField);
        JLabel maxLabel = new JLabel("Max URLs to Crawl:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(maxLabel, constraints);
        searchPanel.add(maxLabel);
        maxComboBox = new JComboBox(MAX_URLS);
        maxComboBox.setEditable(true);
        constraints = new GridBagConstraints();
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(maxComboBox, constraints);
        searchPanel.add(maxComboBox);
        limitCheckBox =
          new JCheckBox("Limit crawling to Start URL site");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.WEST;
        constraints.insets = new Insets(0, 10, 0, 0);
        layout.setConstraints(limitCheckBox, constraints);
        searchPanel.add(limitCheckBox);
        JLabel blankLabel = new JLabel();
        constraints = new GridBagConstraints();
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        layout.setConstraints(blankLabel, constraints);
        searchPanel.add(blankLabel);
        JLabel logLabel = new JLabel("Matches Log File:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(logLabel, constraints);
        searchPanel.add(logLabel);
        String file =
          System.getProperty("user.dir") +
          System.getProperty("file.separator") +
          "crawler.log";
        logTextField = new JTextField(file);
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 0, 5);
        layout.setConstraints(logTextField, constraints);
        searchPanel.add(logTextField);
        JLabel searchLabel = new JLabel("Search String:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST; 
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(searchLabel, constraints);
        searchPanel.add(searchLabel);
        searchTextField = new JTextField();
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.insets = new Insets(5, 5, 0, 0);
        constraints.gridwidth= 2;
        constraints.weightx = 1.0d;
        layout.setConstraints(searchTextField, constraints);
        searchPanel.add(searchTextField);
        caseCheckBox = new JCheckBox("Case Sensitive");
        constraints = new GridBagConstraints();
        constraints.insets = new Insets(5, 5, 0, 5);
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        layout.setConstraints(caseCheckBox, constraints);
        searchPanel.add(caseCheckBox);
        searchButton = new JButton("Search");
        searchButton.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
            actionSearch();
        constraints = new GridBagConstraints();
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 5, 5);
        layout.setConstraints(searchButton, constraints);
        searchPanel.add(searchButton);
        JSeparator separator = new JSeparator();
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 5, 5);
        layout.setConstraints(separator, constraints);
        searchPanel.add(separator);
        JLabel crawlingLabel1 = new JLabel("Crawling:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(crawlingLabel1, constraints);
        searchPanel.add(crawlingLabel1);
        crawlingLabel2 = new JLabel();
        crawlingLabel2.setFont(
          crawlingLabel2.getFont().deriveFont(Font.PLAIN));
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 0, 5);
        layout.setConstraints(crawlingLabel2, constraints);
        searchPanel.add(crawlingLabel2);
        JLabel crawledLabel1 = new JLabel("Crawled URLs:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(crawledLabel1, constraints);
        searchPanel.add(crawledLabel1);
        crawledLabel2 = new JLabel();
        crawledLabel2.setFont(
          crawledLabel2.getFont().deriveFont(Font.PLAIN));
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 0, 5);
        layout.setConstraints(crawledLabel2, constraints);
        searchPanel.add(crawledLabel2);
        JLabel toCrawlLabel1 = new JLabel("URLs to Crawl:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(toCrawlLabel1, constraints);
        searchPanel.add(toCrawlLabel1);
        toCrawlLabel2 = new JLabel();
        toCrawlLabel2.setFont(
          toCrawlLabel2.getFont().deriveFont(Font.PLAIN));
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 0, 5);
        layout.setConstraints(toCrawlLabel2, constraints);
        searchPanel.add(toCrawlLabel2);
        JLabel progressLabel = new JLabel("Crawling Progress:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(5, 5, 0, 0);
        layout.setConstraints(progressLabel, constraints);
        searchPanel.add(progressLabel);
        progressBar = new JProgressBar();
        progressBar.setMinimum(0);
        progressBar.setStringPainted(true);
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 0, 5);
        layout.setConstraints(progressBar, constraints);
        searchPanel.add(progressBar);
        JLabel matchesLabel1 = new JLabel("Search Matches:");
        constraints = new GridBagConstraints();
        constraints.anchor = GridBagConstraints.EAST;
        constraints.insets = new Insets(5, 5, 10, 0);
        layout.setConstraints(matchesLabel1, constraints);
        searchPanel.add(matchesLabel1);
        matchesLabel2 = new JLabel();
        matchesLabel2.setFont(
          matchesLabel2.getFont().deriveFont(Font.PLAIN));
        constraints = new GridBagConstraints();
        constraints.fill = GridBagConstraints.HORIZONTAL;
        constraints.gridwidth = GridBagConstraints.REMAINDER;
        constraints.insets = new Insets(5, 5, 10, 5);
        layout.setConstraints(matchesLabel2, constraints);
        searchPanel.add(matchesLabel2);
        // Set up matches table.
        table =
          new JTable(new DefaultTableModel(new Object[][]{},
            new String[]{"URL"}) {
          public boolean isCellEditable(int row, int column)
            return false;
        // Set up Matches panel.
        JPanel matchesPanel = new JPanel();
        matchesPanel.setBorder(
          BorderFactory.createTitledBorder("Matches"));
        matchesPanel.setLayout(new BorderLayout());
        matchesPanel.add(new JScrollPane(table),
          BorderLayout.CENTER);
        // Add panels to display.
        getContentPane().setLayout(new BorderLayout());
        getContentPane().add(searchPanel, BorderLayout.NORTH);
        getContentPane().add(matchesPanel,BorderLayout.CENTER);
      // Exit this program.
      private void actionExit() {
        System.exit(0);
      // Handle Search/Stop button being clicked.
      private void actionSearch() {
        // If stop button clicked, turn crawling flag off.
        if (crawling) {
          crawling = false;
          return;
      ArrayList errorList = new ArrayList();
      // Validate that start URL has been entered.
      String startUrl = startTextField.getText().trim();
      if (startUrl.length() < 1) {
        errorList.add("Missing Start URL.");
      // Verify start URL.
      else if (verifyUrl(startUrl) == null) {
        errorList.add("Invalid Start URL.");
      // Validate that Max URLs is either empty or is a number.
      int maxUrls = 0;
      String max = ((String) maxComboBox.getSelectedItem()).trim();
      if (max.length() > 0) {
        try {
          maxUrls = Integer.parseInt(max);
        } catch (NumberFormatException e) {
        if (maxUrls < 1) {
          errorList.add("Invalid Max URLs value.");
      // Validate that matches log file has been entered.
      String logFile = logTextField.getText().trim();
      if (logFile.length() < 1) {
        errorList.add("Missing Matches Log File.");
      // Validate that search string has been entered.
      String searchString = searchTextField.getText().trim();
      if (searchString.length() < 1) {
        errorList.add("Missing Search String.");
      // Show errors, if any, and return.
      if (errorList.size() > 0) {
        StringBuffer message = new StringBuffer();
        // Concatenate errors into single message.
        for (int i = 0; i < errorList.size(); i++) {
          message.append(errorList.get(i));
          if (i + 1 < errorList.size()) {
            message.append("\n");
        showError(message.toString());
        return;
      // Remove "www" from start URL if present.
      startUrl = removeWwwFromUrl(startUrl);
      // Start the Search Crawler.
      search(logFile, startUrl, maxUrls, searchString);
    private void search(final String logFile, final String startUrl,
      final int maxUrls, final String searchString)
      // Start the search in a new thread.
      Thread thread = new Thread(new Runnable() {
        public void run() {
          // Show hour glass cursor while crawling is under way.
          setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
          // Disable search controls.
          startTextField.setEnabled(false);
          maxComboBox.setEnabled(false);
          limitCheckBox.setEnabled(false);
          logTextField.setEnabled(false);
          searchTextField.setEnabled(false);
          caseCheckBox.setEnabled(false);
          // Switch Search button to "Stop."
          searchButton.setText("Stop");
          // Reset stats.
          table.setModel(new DefaultTableModel(new Object[][]{},
            new String[]{"URL"}) {
            public boolean isCellEditable(int row, int column)
              return false;
           updateStats(startUrl, 0, 0, maxUrls);
          // Open matches log file.
          try {
            logFileWriter = new PrintWriter(new FileWriter(logFile));
          } catch (Exception e) {
            showError("Unable to open matches log file.");
            return;
          // Turn crawling flag on.
          crawling = true;
          // Perform the actual crawling.
          crawl(startUrl, maxUrls, limitCheckBox.isSelected(),
            searchString, caseCheckBox.isSelected());
          // Turn crawling flag off.
          crawling = false;
          // Close matches log file.
          try {
            logFileWriter.close();
          } catch (Exception e) {
            showError("Unable to close matches log file.");
          // Mark search as done.
          crawlingLabel2.setText("Done");
          // Enable search controls.
          startTextField.setEnabled(true);
          maxComboBox.setEnabled(true);
          limitCheckBox.setEnabled(true);
          logTextField.setEnabled(true);
          searchTextField.setEnabled(true);
          caseCheckBox.setEnabled(true);
          // Switch search button back to "Search."
          searchButton.setText("Search");
          // Return to default cursor.
          setCursor(Cursor.getDefaultCursor());
          // Show message if search string not found.
          if (table.getRowCount() == 0) {
            JOptionPane.showMessageDialog(SearchCrawler.this,
              "Your Search String was not found. Please try another.",
              "Search String Not Found",
              JOptionPane.WARNING_MESSAGE);
      thread.start();
    // Show dialog box with error message.
    private void showError(String message) {
      JOptionPane.showMessageDialog(this, message, "Error",
        JOptionPane.ERROR_MESSAGE);
    // Update crawling stats.
    private void updateStats(
      String crawling, int crawled, int toCrawl, int maxUrls)
      crawlingLabel2.setText(crawling);
      crawledLabel2.setText("" + crawled);
      toCrawlLabel2.setText("" + toCrawl);
      // Update progress bar.
      if (maxUrls == -1) {
        progressBar.setMaximum(crawled + toCrawl);
      } else {
        progressBar.setMaximum(maxUrls);
      progressBar.setValue(crawled);
      matchesLabel2.setText("" + table.getRowCount());
    // Add match to matches table and log file.
    private void addMatch(String url) {
      // Add URL to matches table.
      DefaultTableModel model =
        (DefaultTableModel) table.getModel();
      model.addRow(new Object[]{url});
      // Add URL to matches log file.
      try {
        logFileWriter.println(url);
      } catch (Exception e) {
        showError("Unable to log match.");
    // Verify URL format.
    private URL verifyUrl(String url) {
      // Only allow HTTP URLs.
      if (!url.toLowerCase().startsWith("http://"))
        return null;
      // Verify format of URL.
      URL verifiedUrl = null;
      try {
        verifiedUrl = new URL(url);
      } catch (Exception e) {
        return null;
      return verifiedUrl;
    // Check if robot is allowed to access the given URL. private boolean isRobotAllowed(URL urlToCheck) {
      String host = urlToCheck.getHost().toLowerCase();
      // Retrieve host's disallow list from cache.
      ArrayList disallowList =
        (ArrayList) disallowListCache.get(host);
      // If list is not in the cache, download and cache it.
      if (disallowList == null) {
        disallowList = new ArrayList();
        try {
          URL robotsFileUrl =
            new URL("http://" + host + "/robots.txt");
          // Open connection to robot file URL for reading.
          BufferedReader reader =
            new BufferedReader(new InputStreamReader(
              robotsFileUrl.openStream()));
          // Read robot file, creating list of disallowed paths.
          String line;
          while ((line = reader.readLine()) != null) {
            if (line.indexOf("Disallow:") == 0) {
              String disallowPath =
                line.substring("Disallow:".length());
              // Check disallow path for comments and remove if present.
              int commentIndex = disallowPath.indexOf("#");
              if (commentIndex != -1) {
                disallowPath =
                  disallowPath.substring(0, commentIndex);
              // Remove leading or trailing spaces from disallow path.
              disallowPath = disallowPath.trim();
              // Add disallow path to list.
              disallowList.add(disallowPath);
          // Add new disallow list to cache.
          disallowListCache.put(host, disallowList);
        catch (Exception e) {
          /* Assume robot is allowed since an exception
             is thrown if the robot file doesn't exist. */
          return true;
      /* Loop through disallow list to see if
         crawling is allowed for the given URL. */
      String file = urlToCheck.getFile();
      for (int i = 0; i < disallowList.size(); i++) {
        String disallow = (String) disallowList.get(i);
        if (file.startsWith(disallow)) {
          return false;
      return true;
    // Download page at given URL.
    private String downloadPage(URL pageUrl) {
      try {
        // Open connection to URL for reading.
        BufferedReader reader =
          new BufferedReader(new InputStreamReader(
            pageUrl.openStream()));
        // Read page into buffer.
        String line;
        StringBuffer pageBuffer = new StringBuffer();
        while ((line = reader.readLine()) != null) {
          pageBuffer.append(line);
        return pageBuffer.toString();
      } catch (Exception e) {
      return null;
    // Remove leading "www" from a URL's host if present.
    private String removeWwwFromUrl(String url) {
      int index = url.indexOf("://www.");
      if (index != -1) {
        return url.substring(0, index + 3) +
          url.substring(index + 7);
      return (url);
    // Parse through page contents and retrieve links.
    private ArrayList retrieveLinks(
      URL pageUrl, String pageContents, HashSet crawledList,
      boolean limitHost)
      // Compile link matching pattern.
      Pattern p =
        Pattern.compile("<a\\s+href\\s*=\\s*\"?(.*?)[\"|>]",
          Pattern.CASE_INSENSITIVE);
      Matcher m = p.matcher(pageContents);
      // Create list of link matches.
      ArrayList linkList = new ArrayList();
      while (m.find()) {
        String link = m.group(1).trim();
        // Skip empty links.
        if (link.length() < 1) {
          continue;
        // Skip links that are just page anchors.
        if (link.charAt(0) == '#') {
          continue;
        // Skip mailto links.
        if (link.indexOf("mailto:") != -1) {
          continue;
        // Skip JavaScript links.
        if (link.toLowerCase().indexOf("javascript") != -1) {
          continue;
        // Prefix absolute and relative URLs if necessary.
        if (link.indexOf("://") == -1) {
          // Handle absolute URLs.
          if (link.charAt(0) == '/') {
            link = "http://" + pageUrl.getHost() + link;
          // Handle relative URLs.
          } else {
            String file = pageUrl.getFile();
            if (file.indexOf('/') == -1) {
              link = "http://" + pageUrl.getHost() + "/" + link;
            } else {
              String path =
                file.substring(0, file.lastIndexOf('/') + 1);
              link = "http://" + pageUrl.getHost() + path + link;
        // Remove anchors from link.
        int index = link.indexOf('#');
        if (index != -1) {
          link = link.substring(0, index);
        // Remove leading "www" from URL's host if present.
        link = removeWwwFromUrl(link);
        // Verify link and skip if invalid.
        URL verifiedLink = verifyUrl(link);
        if (verifiedLink == null) {
          continue;
        /* If specified, limit links to those
          having the same host as the start URL. */
        if (limitHost &&
            !pageUrl.getHost().toLowerCase().equals(
              verifiedLink.getHost().toLowerCase())) 
          continue;
        // Skip link if it has already been crawled.
        if (crawledList.contains(link)) {
          continue;
        // Add link to list.
        linkList.add(link);
      return (linkList);
    /* Determine whether or not search string is
       matched in the given page contents. */
    private boolean searchStringMatches(
      String pageContents, String searchString,
      boolean caseSensitive)
      String searchContents = pageContents;
      /* If case-sensitive search, lowercase
         page contents for comparison. */
      if (!caseSensitive) {
        searchContents = pageContents.toLowerCase();
      // Split search string into individual terms.
      Pattern p = Pattern.compile("[\\s]+");
      String[] terms = p.split(searchString);
      // Check to see if each term matches.
      for (int i = 0; i < terms.length; i++) {
        if (caseSensitive) {
          if (searchContents.indexOf(terms) == -1) {
    return false;
    } else {
    if (searchContents.indexOf(terms[i].toLowerCase()) == -1) {
    return false;
    return true;
    // Perform the actual crawling, searching for the search string.
    public void crawl(
    String startUrl, int maxUrls, boolean limitHost,
    String searchString, boolean caseSensitive)
    // Set up crawl lists.
    HashSet crawledList = new HashSet();
    LinkedHashSet toCrawlList = new LinkedHashSet();
    // Add start URL to the to crawl list.
    toCrawlList.add(startUrl);
    /* Perform actual crawling by looping
    through the To Crawl list. */
    while (crawling && toCrawlList.size() > 0)
    /* Check to see if the max URL count has
    been reached, if it was specified.*/
    if (maxUrls != -1) {
    if (crawledList.size() == maxUrls) {
    break;
    // Get URL at bottom of the list.
    String url = (String) toCrawlList.iterator().next();
    // Remove URL from the To Crawl list.
    toCrawlList.remove(url);
    // Convert string url to URL object.
    URL verifiedUrl = verifyUrl(url);
    // Skip URL if robots are not allowed to access it.
    if (!isRobotAllowed(verifiedUrl)) {
    continue;
    // Update crawling stats.
    updateStats(url, crawledList.size(), toCrawlList.size(),
    maxUrls);
    // Add page to the crawled list.
    crawledList.add(url);
    // Download the page at the given URL.
    String pageContents = downloadPage(verifiedUrl);
    /* If the page was downloaded successfully, retrieve all its
    links and then see if it contains the search string. */
    if (pageContents != null && pageContents.length() > 0)
    // Retrieve list of valid links from page.
    ArrayList links =
    retrieveLinks(verifiedUrl, pageContents, crawledList,
    limitHost);
    // Add links to the To Crawl list.
    toCrawlList.addAll(links);
    /* Check if search string is present in
    page, and if so, record a match. */
    if (searchStringMatches(pageContents, searchString,
    caseSensitive))
    addMatch(url);
    // Update crawling stats.
    updateStats(url, crawledList.size(), toCrawlList.size(),
    maxUrls);
    // Run the Search Crawler.
    public static void main(String[] args) {
    SearchCrawler crawler = new SearchCrawler();
    crawler.show();
    }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • No NWDI activity asked while modifying the Web Dynpro java code

    Hi,
    We have 2 team in our project, one offshore team and one onsite team. We have NWDI also in our landscape.
    I have created 1 project in my local NWDS from DTR using create project  option from NWDI track , when i do any modification in that web dynpro code once it appears in my local NWDS, its asking for the activity, all this is fine.
    But when my offshore team send me this project from offshore (offshore team also working on this project), i go to my local machine under C:\Documents and Settings\user\.dtc\0\DCs\xyz.org\.. (workspace, where all the project folders are created in my local machine ) and replaces the web dynpro project  (which i created using create project option from NWDI track ) with the project which offshore teams gave me  that is I copy paste the project folder I received from offshore team.
    I closed the NWDS and reopened NWDS, i did repair and reload also, but now when i try to do any code modification in that project its not asking any activity at all. So i want to know the reason why its not asking activity at all while modifying the code.
    if now i do any code changes, and since no activity is asked, it wont be transported to QA and Prd system.
    Can anyone have any suggestion on this..

    Hi GLM,
    I think you might be right that some files are in read as well as write mode. I went to my local machine and checked the project folder C:\Documents and Settings\user\.dtc\0\DCs\xyz.org\testproject\_comp\.dcdef  file , its not in read only mode, that is read only flag was not checked.
    I again checked the mode of .dcdef file in other web dynpro projects which are asking for the activity in all those projects mode of .dcdef was read only that is read only flad was checked in .dcdef file.  ( I am not sure is .dcdef file only giving this problem that si because of this file not in read only mode I am not asked for the activity)
    So could you plzz tell me how to make in read only. when ever i click the read only check box of .dcdef file and reload the project in my NWDS. that read only check box is getting removed. how to do this..
    regarding your query, landscape in offshore team and onsite team are different, client has not provided nay access to its landscape to ofshore team so offshore team can not check in / check out the code written by me and same applies to me I can not check in / check out the code written by offshore team , only option is offshore team do some changes in the code and send the project folder via email and I have to deploy in client landsacpe and do further modification.

  • CONVERT_OTF_2_PDF output can be shown on the web using java sevlet

    Hello, all,
    I used FM CONVERT_OTF_2_PDF, and I can create a pdf file on my PC by using content in table lines of FM. Now I don't want to create a pdf file on my desktop. I want to pass the value of the table lines to remote java program to show this PDF file on the web. Does anyone knows how do I code it in Java program to be able to show the contents in table lines as PDF? Would you please give an example code? Thank you!
    Meiying

    Hi, Dennis,
    The contents in the table look like following.  (code)
    TD TDLINE
    %P DF-1.3##%âãÏÓ##2 0 obj##<<##/Type /XObject##/Subtype /Image##/Filter 3 0 R##/Length 4 0 R##/Name /00002##/Width 604##/Height 263##/B
    it sPerComponent 1##/ImageMask true##>>##stream##x#íÜ¿o#É##ðÙìA#C#Í#>#£q#>#®Ñ!#÷#+óG#H#4#b#A ##î##Àîte##ç2mÊt###S###)¼##W## âFðx&ß7³Ë#2
    Í£ w7@ÎÑÂ#(jøáîì#Ù7³C{#·Ým[·#å]Q#±´+#eô¯#Í#ï-ïÆRËoí7î#ËuÖ#ee#ºw¢#Kç#[>îÂ#[²Ä¼#k###¼#K#d1#µ§l?P,ë ò####µ·®t´ÒE{k¡¢#\u00B5·f±ê#3íó#b'yk«_[G
    Y[ Ê#Õ#xÚÖ²§µÅÏÛZF×VÚ:À®ÊÚJZ#X#ØZ#Ø#bi}ÞÖºXRì¤õÅ##·´zá####ëIPÂwÑÒrǤ<y##U¶´#Ó!ÜÐAò§í,Ka##ùã@¶´Ê#X##Xtpɬúù¢¥¥ªówÜÞº#õ#=¸ÄA^·´##\u00D2##ª
    µ# ¦Í3zàÐ'>ii-#ôW;##cßÆG¨¹OÚY##?###fÇí¬¯YïAìq##Úv`_¯%ãE¯#õÕ#ÅZZ#Yu«?`GyW#kkõØrÀaØa;ëø¿feÝY-/#ÝZk#oe¹.ÇLj?²Rç#Û¡å:°J#####;Ø/^ô#áê##Î,Ù
    0.1. ÀÊÞeKti©h%]YâÎúþ[#;ë#³#ÞYï##ýOYù#õnYUNn###±¿niÙlÇ#·XªC#µµð#§#ÝXa®Oe-#Kµ±N0VÈS#ðµõ#0î°#±_½ ê#L·°ªÙ¸#X~æ#Ütd]ÀºQy3ëk&©##÷?´ìÄ?#õª#õ
    ¹ _47Ärp#X4gÅ ck¶>Fþ¼²#Qþźõ¤¥U¬Y×í¬ë-Ö°#+ÌÕ¶°®ÔëVÒÐ##íÕFsÛ.in#-Vê#Ý#¶zeQÊ#-#âÿm7º¯p#}#²#Ç{#Á²Ì####hrè^#ëWqî##K5óeùö#Ý#y/ù##uT[#æ'M.#=
    XL '#f/Gý¥ÞñYáÓ&Ö#dýí}ö#8a#,9##½½uAÇø#(>cì4Zö K#ob¡qÃJÙgñ#!Y#×#^æoo-#;LtÊ#ã½Ì`ùÄ#&Öê¾h¸ÇJVâqÁl²fdu¿#Ó#ɤĥF6é,V÷##ÝG6##¢U6Y#ãNjKÊÊâ°z#V
    @# ÕV?[Z¼l¶(i¹#à4¯,#«Ù#¤YÕ³Æ5##{-#]²#µ¨#"®Å KZÞ0=Ñ#kD´hc#j¡##µ#Q#ØÈrY´#Ye#Í-/Bå'qOÙÎ##VÄ㵧²#¦:¥#+#Õ#Ê#[&ÃA&Õ#`éÃ"kf9aq#M µ#Ö½"û¶#6ôF
    Ök Ü##G:Q²áâ#êÚ]l##¥H¿tª##¯Ð#Öã<´#²#&y3ËSÝW#K#c4²l#ëàÈnï#íd%ÞÿíÖÙÒp#îl3#ZW£½#QJ_~Wn:]x¤###Å®bÙÇ"%÷¾#ß´iXvk㳫##j#Tf÷%ؼÑ*W#ym©###õ#.ì
    ¹Û (§óUÒ#þ#ê¡#óm_n·6W##Ùª§°k##ñ¹ê`#×+ê#Ö¬#ºP[-&tì@Üm#9M##×÷kÃ##å#¬¬ú##׫ÚrÛ¬ µ#´ÚQ§mw[femt#ʽÁ#«Ãްĺµ¹Fw¾Í2°b©z#ôr#oäºukÛféÕÕéiü±±j#
    #s #ËÒ#Où©ÜRrÃÚÚ=#îÊÚ=ù#Eõ#¬ÉîtQïi##`#ö´Î#dÈ,p²ù+ü:±ÜIO#J##ë!#ò"ÓÔJ¬Àß#Ì0#âìK#Ûp~)ölê#î##ÖÇ8;5 #G}#8#N`I±sÌ##E#$#å(#d##v#Á#æeV#µ´#=Óc
    gH &##O4ë'#=##>##ä"X²ÈX>Q9##Ç089M#TØÛB##e04P\u00DDg#æDRðd¢##Í###Ù#kA#²Ð§#ÀÉbÀò±qbª¤ÍøÔ<J#,8ËØ#5×°ÿ\u00D13#iÏÎäðï#éÈ>LJö(X###!ú,E##Øsn¼.¤ÎÇcûÏ´
    ì# ÀÕÉÃ#bi1y#?#Ú#§ÙÐ#pî##æØe#1##EKçE#=§Z/eé/#ÎTyrÊËcìM^[##ð##ûâ1¬÷#¨##l#YNT#:ºÒ³¼À#Ñ9,Em#ÖOMøZYºG¯#ÀÊS#Ávm¡#h Eûï6LQÇ#W¥ñ+X2X##5õêÑ#å6
    # ¬#ïP#UT##_ax#êUh#ÝF#¯##¸Á»#%#ed´æ#Ñ##3Á#ñ;Ya¨YR####W##àoè#¢#FP[#X<X)嶰r<«$#gÄ##9om!#W #Ïh#:Z:#Ó#8>Ô5Y,ÇU²Ì##bÁÂ+7,A3øÜ##Îñ#eÁ#kÖÔ³
    #b ݧ&´#Xt###ºW¢ÅpÓB(##Ä#%¢EõY##ãh¥%#hGì#¡5ÆA##µU#za°X#Ö²Ôr#HkK##qì#K-C##d#°DKUYImáê#gÏÈÊ`9#DKËuëaî##"#×#+###ðH##AO´(v°§Ñ#±Ðó##±##Î7êò
    !. #è!#Z £#hÉ5+£.#Ú¤ª,áG##!z#¥#C#ÊkK¡#$«dèn#ºVVfÑ#V#-ÄñA´##'#O##ie%°(â¨Ã,(O±d#°-ûÁ#ÁÊñ,¬C²r¼g´T°¤#½¿J£##i°_8#WYC_#j#N1tôðd¡¦]må¨Ï¥Å£#
    #µ  #Z##û#LMÕ#«,ÃÝQ´#ÝÁ##þ#ú##f³ÈB]ñ$X##¥Ðc[YviÙ#?Ä##GKF#&#Ç#Þ#Í^Ð0Ø#$#`##ö#½Ü0X#/d#¡#Ñ##ÁzJsi@##ÅLÈ6É#Áº##ZòÊë#àz#¿#a#BÞ#±:5#¯#úÒè
    ¤# #°x°î#«¤4#zÀ¬²8NGrãËßú´Èá#çµ5Ä#ë##_¤è¤#j@ RßW#k6¡ý##eBo#ëàÂ#æº#üÙ«#ÇqÍB´¤èÈ)M-Q##Y#õ#)#p#¸H#Þ¹NÃÙ##ESFø#Nwj#²rÀ#óá#×8Aó###Ñb¸Â¡#+#
    ¶# Î#õ#>ùÆ#tj@JÎ}øAV##P±¾#:ö¸Ç#Îpí5#KL#F_##þè}#d#®#K#D< SJ齤#ãt'þ##ÅN¹B¹Ô%tÂðÊ#^###é#ZDê###Ê#4´@#¤töuF##Çq#ÅgHÛ#;Æ##Þ3¥î5¥#;#s#Vú#;ªl#
    ëÕ ##eóc,<¦N·ç#¦1ŤY#z¹Ûg^¤NpwÌ/P&궥o#,#«½>:#*##lo]V#Ûe#ýæXfÕ#Ø®#ú#cö°ÆÕ'#wYf_KWVÞÞâÕ(Ùî(#,¹#UÝ¡Ûu·##}î$¥Óøs²£#ÞÏrI5ý¸kÒdOk¹¼cקwÂpc#+
    ÿî 2#¾ö(w·mÙÖno·Û:¶î¶»íûµÅîní##Ûîùß_nþ##?#µ<f#åz#UÏ1×I#¯[Ìf÷#Ö\u00B8×,½^¦¸m¹ºËÝ´4e#6þi¼#7>cþtù¹¢Ê²#ð##m~#yNÇW]ìgûZ&Zö5##§õ<»e¹Ö##le#×
    ,Ê L####ߪò[¬ùµÁ#Ò#Ó##M¾áL##A#_ø?Ê#1##~~5B¶N#p#BÒÄÉÕ#,î¹¾/K*#,µÐb"JQòp#9#0:¿ïî#0###½'0#e^êq°¸ÿ###iöŦ¦##T0XúBç³±#³q#9ä7#û;síNÜI6ª,#(ËO
    ݱ #ó)Y#ùs1##1#Ù#íç=*#,#L>#ëËñ,Z/§æÚ¼p?·'Ùø¼²#¼Òö4####CÛ#ù#Ç8}5w'þ##FKÂ#i#>#Çè#æ¥9wb#5##T·ÈÄy°#îzîHÖ#ÍL^YT÷>Õ´V!±}²(Ö+#####YYC÷###j#
    £¬ `Ñ##sª{²0Ì#V##XÆf#,##»´lâ?##¬#ö«:Æê? àz#käÕY?VÃr¿òhy#ã##yâßG3##Ñ#BÝÃ#Wíñ#¬#3·¬«°_#ÛÖ##ÕVéäM<#~T[S##KgbÝGë°²#Ñ#Ç8###{«cÔgÙ5#ù鹦[Ûñ#S
    ó# Ñ#S×Ë«]#t#fáî#ø¢##7#eb9¬##0ÍBA##Ù´#%Æê*öFB'6-#û#s##§#uC#me#ÝÇÖÊhà##Ei#Ð:Õ,H]ßås#_>»úw´Ì7#/N2###ü¯`ýÒOÿ#¬td##{C#a##ß{ù§oì#ü%záXðµí#
    £# FÿÙ#ìÎzÙ¡U#ôº±Þð 'ÿ#Mµ5]Ír·ÝmÝlÿ###í###endstream##endobj##4 0 obj##3341##endobj##3 0 obj####[/FlateDecode]##endobj##5 0 obj##/WinAns
    iE ncoding##endobj##6 0 obj##<<##%Devtype SAPWIN Font COURIER bold Lang EN##/Type /Font##/Subtype /Type1##/BaseFont /Courier-Bold##/
    Na me /F001##/Encoding 5 0 R##>>##endobj##7 0 obj##<<##%Devtype SAPWIN Font COURIER normal Lang EN##/Type /Font##/Subtype /Type1##/B
    as eFont /Courier##/Name /F002##/Encoding 5 0 R##>>##endobj##8 0 obj##<<##/Length 9 0 R##>>##stream## q 0 0 0 rg 144.95 0 0 63.10 23 71
    5 cm /00002 Do Q /F001 12.00 Tf 0 g BT 22.70 682.45 Td 0 Tw <4F6666696365206F6620427572736172>Tj ET 0 g BT 22.70 670.45 Td 0 Tw <506F7
    37 4204F666669636520426F782031383438>Tj ET 0 g BT 22.70 658.45 Td 0 Tw## <556E69766572736974792C204D5320203338363737>Tj ET q 0.90 g 283
    .4 5 634.95 273.55 136.90 re f Q /F001 12.00 Tf 0 g BT 286.30 759.85 Td 0 Tw <202020202020556E6976657273697479206F66204D697373697373697
    07 069>Tj ET 0 g BT 286.30 747.85 Td 0 Tw## <2020202020204163636F756E742053746174656D656E742053756D6D617279>Tj ET 0 g BT 286.30 723.85
    Td 0 Tw <53747564656E74204E756D626572202020202020202020202020203130303035333030>Tj ET 0 g BT 286.30 711.85 Td 0 Tw## <426567696E6E696E
    67 2044617465202020202020202020202031312F30312F32303036>Tj ET 0 g BT 286.30 699.85 Td 0 Tw <456E64696E672044617465202020202020202020202
    02 0202031312F33302F32303036>Tj ET 0 g BT 286.30 687.85 Td 0 Tw## <426567696E6E696E672042616C616E636520202020202020202020392C3339352E30
    31 20>Tj ET 0 g BT 286.30 675.85 Td 0 Tw <416374697669747920202020202020202020202020202020202031302C3234322E35352D>Tj ET 0 g BT 286.30
    66 3.85 Td 0 Tw## <456E64696E672042616C616E63652020202020202020202020202020203834372E35342D>Tj ET 0 g BT 286.30 651.85 Td 0 Tw <46696E6
    16 E6369616C20486F6C6473202020202020202020202020202020204E4F4E45>Tj ET q 0 0 0 RG 0.50 w 283.45 771.85 m 283.45 634.95 l S Q q 0 0 0 RG
    (/code)
    There are two fields (TDFORMAT and TDLINE) in the table,  I used following Java code to put them together as PDF. But When I open it as PDF file, it says "the file does not start with %PDF-' . Do you see why
    (code)
    byte[] pdfstream;
    byte[] myout = new byte[]{};
             byte[] tdformat = new byte[]{};
             byte[] tdline = new byte[]{};
             //String myout = "";
             for (int i = 0; i < lt_pdftab.getNumRows()  ; i++) {
                  JCO.FieldIterator e1 = lt_pdftab.fields();
               while (e1.hasMoreElements()) {
              JCO.Field field = e1.nextField();
              lt_pdftab.setRow(i);
               if (field.getName().equals("TDFORMAT")) {
                   tdformat = field.getString().getBytes("UTF-16LE");
               if (field.getName().equals("TDLINE")) {
                   tdline = field.getString().getBytes("UTF-16LE");
               myout =  tdformat = tdline    ;
               System.out.println("myout " + myout );
               pdfstream = myout;
    (/code)

  • Standard F4 (search help) in the web dynpro JAVA

    Hi,
             I have a small doubt in web dynpro Java. Basically I am an ABAP developer. We created some custom Remote function modules (RFM). Now are able to call RFM through web dynpro JAVA in the portal. We are able to run the RFMs in the portal.
             But we have problem with search help. How can I built the search help for the input fields in the portal using web Dynpro  Java.
             Can we bring standard search help (which is exist in R/3) in the portal?

    Hi,
    I think there is no standered functionality available in WDJava to achieve this functionality like ABAP or WDAbap. but, you can still achieve this using OVS option. to do this also, first you should have an interface which can talk to the R3 system and search the dB as per the query parameters i.e, an RFC which can the desired form of input and give you the desired output.
    for more info on OVS, please look into this below links.
    OVS:
    Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]#51 [original link is broken]
    WDJ tutorials:
    Web Dynpro Java Tutorials and Samples NW 2004 [original link is broken]

  • Error when running the Web Services java client file

    Hi,
    I am working on web services with 9iAS.
    I am using the StatelessExample file included during installation.
    The ear file was created and the application was deployed using OEM Web.
    But when I try to execute the client java file StatelessClient. I get an error. The error is something about content type.
    The error message is pasted below.
    And also how do I run the web service on the browser.
    Please help.
    regards
    Kamlesh
    D:\ora9ias_portal\j2ee\home\demo\web_services\java_services\client>java -classpa
    th .;StatelessExample_proxy.jar;%CLASSPATH%; StatelessClient
    Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu
    pported response content type &quot;text/html&quot;, must be: &quot;text/xml&quo
    t;. Response was:
    &lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;500 Internal Server Error&lt;/TITLE&gt;&lt;
    /HEAD&gt;&lt;BODY&gt;&lt;H1&gt;500 Internal Server Error&lt;/H1&gt;&lt;PRE&gt;or
    acle.j2ee.xanadu.JasperGenerationError: no source generated during code generati
    on!: 1 in getFile name: oracle\j2ee\ws_example\StatelessExample.class
    &lt;br&gt;1 in getFile name: oracle\j2ee\ws_example\StatelessExample.java
    &lt;br&gt;error: error message &apos;class.format&apos; not found&lt;br&gt;binar
    y class definition not found: oracle.j2ee.ws_example.StatelessExample
    &lt;br&gt;
    &lt;br&gt;      at oracle.j2ee.ws.JavaWrapperGenerator.generate(JavaWrapperGener
    ator.java:267)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebServi
    ce.java:662)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:436)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:76
    7)
    &lt;br&gt;      at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:309)
    &lt;br&gt;      at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
    &lt;br&gt;      at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    &lt;br&gt;      at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
    &lt;br&gt; at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java
    :283)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:2
    69)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].serv
    er.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
    &lt;br&gt; at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util
    .ThreadPoolThread.run(ThreadPoolThread.java:64)
    &lt;br&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
    at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:201)
    at org.apache.soap.rpc.Call.invoke(Call.java:260)
    at oracle.j2ee.ws_example.proxy.StatelessExampleProxy.makeSOAPCallRPC(St
    atelessExampleProxy.java:51)
    at oracle.j2ee.ws_example.proxy.StatelessExampleProxy.helloWorld(Statele
    ssExampleProxy.java:35)
    at StatelessClient.main(StatelessClient.java:8)

    If you are getting this error, then you are most likely compiling your code with a different JVM than what is shipped with the application server. Oracle9iAS Release 2 (9.0.2) uses the JDK1.3.1. I got this error when I compiled the code with JDK1.4.0_01.

  • Reading an xml file in the web services java file

    I want to read some data in the webservices file.so i am writing my own xml file through which i want to read data.but i am not able to read xml file from web services file.also , i am not able to put xml file in the .ear file,as there is no such tag in servicegen script through which i can add xml file in the .ear file.
    i know in case of servlets,i will specify context-param attributes in web.xml,and i can access those in my servlet.can i do anything like this for webservices,and i am not using any servlets for web services.
    kindly tell any solution.

    One possible option to parse an xml-file to a flex XML object:
    public function parseConXML(source:String):void
                    xmlLoader = new URLLoader();
                    xmlLoader.load(new URLRequest(source));
                      // Eventlistener: if URL loaded --> onLoadComplete function
                      xmlLoader.addEventListener(Event.COMPLETE, xmlLoadComplete);
                public function xmlLoadComplete(evt:Event):void{               
                    var xml:XML = new XML();
                     // ignore comments in XML-File
                    XML.ignoreComments = true;  
                       //ignore whitespaces in XML-File
                     XML.ignoreWhitespace = true;
                    // XML-Objekt erstellen
                    xml = new XML(evt.target.data);
                   //AFTERWARDS use your xml as your wish

  • How to save the image on the web through java code?

    Suppose a picture can be loaded on the browser, and nothing
    else. If I want to use a jave code to intercept the picture
    and save it into a file, what does the code look like? I know
    the URL of the picture. Thanks.

    Hi. Running your code, I got the following, with the URL as:
    String dir = "http://california.biocars.org/viewFrames2.php?";
    String fileName = "r=840190844&fn=/data/pub/kb030129_fp_2_001.img&xsize=512&ysize=512&zoom=1&contrast=2048&xcen=0.5&ycen=0.5&wval=0&jpq=100";
    String urlName = dir+fileName;
    URL imageURL = new URL(urlName);
    So something wrong? This output does not look like anything
    of a jpeg file. Thanks.
    ==================================================
    <html>
    <head>
    <TITLE> View BioCARS Data </TITLE>
    <META name='Author' content='Keith Brister'>
    <META HTTP-EQUIV="expires" CONTENT="0">
    </head>
    <body bgcolor=#ccffff>
    <form action=/viewFrames2.php method=POST><input type=hidden name=oldZoom value=1><input type=hidden name=xcen value=0.5><input type=hidden name=ycen value=0.5>
    <input type=hidden name=theTrip value=0>
    <table>
    <tr><td valign=top><table>
    <tr><td width=128 height=128><a href="/viewFrames2.php?theState=a:7:{s:4:xcen";s:3:"0.5";s:4:"ycen";s:3:"0.5";s:4:"zoom";s:1:"1";s:13:"autoZoomLevel";i:16;s:5:"azcco";i:0;s:8:"contrast";i:2048;s:6:"wvalue";i:0;&theTXYZ="><img ismap border=0 width=128 height=128 src=imageServer2.php?r=159196106&fn=/&xsize=128&ysize=128&zoom=1&contrast=2048&xcen=0.5&ycen=0.5&wval=0&jpq=100&thumbnail=1></a></td></tr><tr><td><input type=text name=seqDir value=""></td></tr><tr><td><input type=text name=fFileName value=""></td></tr></table></td>
    <td><table border=1 cellpadding=0 cellspacing=0><tr><td width=512 height=512><a href="/viewFrames2.php?theState=a:7:{s:4:"xcen";s:3:"0.5";s:4:"ycen";s:3:"0.5";s:4:"zoom";s:1:"1";s:13:"autoZoomLevel";i:16;s:5:"azcco";i:0;s:8:"contrast";i:2048;s:6:"wvalue";i:0;}&theXYZ="><img ismap border=0 width=512 height=512 src=imageServer2.php?r=159196106&fn=/&xsize=512&ysize=512&zoom=1&contrast=2048&xcen=0.5&ycen=0.5&wval=0&jpq=100></a></td><td width=8 length=512><a href="/viewFrames2.php?theState=a:7:{s:4:"xcen";s:3:"0.5";s:4:"ycen";s:3:"0.5";s:4:"zoom";s:1:"1";s:13:"autoZoomLevel";i:16;s:5:"azcco";i:0;s:8:"contrast";i:2048;s:6:"wvalue";i:0;}&bMapVal="><img ismap alt='Set Black Value' width=8 length=512 border=0 src=pixselect.php?r=159196106&bVal=2048&wVal=0&minVal=0></a></td>
    <td width=8 length=512><a href="/viewFrames2.php?theState=a:7:{s:4:"xcen";s:3:"0.5";s:4:"ycen";s:3:"0.5";s:4:"zoom";s:1:"1";s:13:"autoZoomLevel";i:16;s:5:"azcco";i:0;s:8:"contrast";i:2048;s:6:"wvalue";i:0;}&wMapVal="><img ismap alt='Set White Value' width=8 length=512 border=0 src=pixselect.php?r=159196106&bVal=2048&wVal=0&maxVal=2048></a></td><td valign=top><table><tr><td><input type=submit name=subbieResetXYZ value='Reset Zoom and Center'></td></tr><tr><td><input type=submit name=subbieZoomIn value='Zoom In'> <input type=submit name=subbieZoomOut value='Zoom Out'></td></tr><tr><td><table border=1><tr><td align=right>Auto Zoom and Center:</td><td><input onClick='this.form.submit();' type=radio name=azcco value=0 checked></td></tr>
    <tr><td align=right>Center Only:</td><td><input onClick='this.form.submit();' type=radio name=azcco value=1 ></td></tr>
    </table></td></tr>

  • Unable to remove Default Search Provider in the Web Browser

    Hi Pros !!!
    My Default search provider is automatically updated by VenteeRo Search Provider. When I try to move it it is giving me the following error : 
    Please find the following image.

    This is normal behavior and you could not delete the default search provider. To resolve this problem, add another search provider and make it default, for example you could add Bing as your default search:
    http://www.iegallery.com/Addons/Details/16523
    When you click add, make sure to set it as default search engine and then open Manage Add-ons again and then delete the current search provider.

  • Web AS Java 6.40 sp11

    Hi All, any help you can give would be greatly appreciated, or indeed point me to the right place if this is not the correct forum, Thanks!
    I was installing sp11 from sp0 on an XI 6.40 system, following the sp11 install pdf documentation. I patched the kernel, imported the SAP BASIS 6.40 sp, changed relevant configuration (including updating the jdk from 1.4.2_05 to 1.4.2_07) but when I got to the section on SAP Web AS Java 6.40 support package I ran into an issue. I downloaded the relevent patches and unpacked with SAPCAR, ran SAPInst from the unpacked folders and all was working until it reached the phase "Deploy File System" directly following the phase "SDM Installation/Upgrade". I got an error dialog (Retry/View Log/Stop/Reset) and the log showed the following error:
    ERROR 2005-04-04 14:34:51
    MUT-02041  SDM call of j2eeenginestartstop mode=manual ends with returncode 16
    I also get this error if I run the above call on the command line, together with a java stack, which also appears in the logs:
    WARNING 2005-04-04 14:34:51
    Execution of the command "C:\j2sdk1.4.2/bin/java.exe '-Xmx256M' '-Djava.ext.dirs=C:\usr\sap/XI1/DVEBMGS00/SDM/program/lib;C:\j2sdk1.4.2/jre/lib/ext' '-jar' 'C:\usr\sap/XI1/DVEBMGS00/SDM/program/bin/SDM.jar' 'j2eeenginestartstop' 'mode=manual' 'sdmhome=C:\usr\sap/XI1/DVEBMGS00/SDM/program' 'logfile=C:\Program Files\sapinst_instdir\PATCH\MSS/callSdmViaSapinst.log'" finished with return code 16. Output:
    Starting SDM - Software Deployment Manager...
    tc/SL/SDM/SDM/sap.com/SAP AG/6.4011.00.0000.20050207154237.0000
    Initializing Network Manager (50017)
    Checking if another SDM is running on port 50018
    Caught Exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at com.sap.sl.util.cvers.impl.TableDescriptionFactory.getTableDescription(TableDescriptionFactory.java:73)
         at com.sap.sl.util.cvers.impl.CVersManager.loadTable(CVersManager.java:47)
         at com.sap.sl.util.cvers.impl.CVersManager.loadDBStructure(CVersManager.java:62)
         at com.sap.sl.util.cvers.impl.CVersManager.openDBSource(CVersManager.java:87)
         at com.sap.sl.util.cvers.impl.CVersManager.<init>(CVersManager.java:114)
         at com.sap.sl.util.cvers.impl.CVersFactory.createCVersManager(CVersFactory.java:46)
         at com.sap.sdm.app.cvers.wrapper.CVersFactory.createCVersManager(CVersFactory.java:69)
         at com.sap.sdm.app.cvers.deplobs.impl.CVersProxyImpl.updateCVers(CVersProxyImpl.java:133)
         at com.sap.sdm.persistency.RepositoryPersistor.persistRepository(RepositoryPersistor.java:54)
         at com.sap.sdm.control.command.decorator.RepositoryPersistor.execute(RepositoryPersistor.java:39)
         at com.sap.sdm.control.command.decorator.AssureStandaloneMode.execute(AssureStandaloneMode.java:53)
         at com.sap.sdm.control.command.decorator.AssureOneRunningSDMOnly.execute(AssureOneRunningSDMOnly.java:61)
         at com.sap.sdm.control.command.decorator.SDMInitializer.execute(SDMInitializer.java:52)
         at com.sap.sdm.control.command.decorator.GlobalParamEvaluator.execute(GlobalParamEvaluator.java:60)
         at com.sap.sdm.control.command.decorator.AbstractLibDirSetter.execute(AbstractLibDirSetter.java:46)
         at com.sap.sdm.control.command.decorator.ExitPostProcessor.execute(ExitPostProcessor.java:48)
         at com.sap.sdm.control.command.decorator.CommandNameLogger.execute(CommandNameLogger.java:49)
         at com.sap.sdm.control.command.decorator.AdditionalLogFileSetter.execute(AdditionalLogFileSetter.java:65)
         at com.sap.sdm.control.command.decorator.AbstractLogDirSetter.execute(AbstractLogDirSetter.java:54)
         at com.sap.sdm.control.command.decorator.SyntaxChecker.execute(SyntaxChecker.java:37)
         at com.sap.sdm.control.command.Command.exec(Command.java:42)
         at SDM.main(SDM.java:21)
    Severe (internal) error. Return code: 16
    I can't find anything in the sap notes about this, or in the other documentation, and am really stuck. I have tried checking if there is another sdm server running and there is not (if I start one I get a different error saying that there is already an SDM server running)
    If I really can't work out what to do I will have to go back to the last system backup I did because at the moment the J2EE engine won't even start and I can't get the SAPInst to go forward or backward to where I was before I ran it (e.g under j2ee/os_libs I have a folder "moved_by_sapinst" which remains even when I do a "reset" after the error and the Jlaunch exe has been moved there, and I think this may be why my j2ee server is not starting??)
    Many thanks for any help you can give,
    Cheers,
    Chris

    Hi all,
    Does anyone else have any suggections as to what I might try? I am still having this issue and have tried everything I can think of, I will keep trying but am running out of ideas.. The fact that the stack trace mentions CVERS table leads me to believe that the Web AS Java sp11 install is maybe looking for a component in my system that is not there, the only 4 things listed in my CVERS table are:
    PI_BASIS  2004_1_640 0008 X
    SAP_ABA   640        0011 S
    SAP_BASIS 640        0011 S
    SAP_BW    350        0011 W
    Could I be missing something vital or is this a red herring?!
    Thanks for any help you can provide,
    Chris

  • How call key Function in WEB Dynpro Java?

    Hi,
    Somebody know how to call key Function(F1, F2, ... F12) in WEB Dynpro Java to launch and Event?
    Thanks in advance.

    Hi,
    You can WDHotKey property to define the different keyboard shortcuts to enable the user to trigger events with key combinations.
    When the user presses the key board shortcut defined as the hotkey then onAction event is triggered.
    The keys F2, F3, F4, F5, F6, F7, F8 and F9 are not supported, they call predefined functions provided by the Web Dynpro Framework.
    The complete list of supported shortcuts is here:
    http://help.sap.com/saphelp_nwce711/helpdata/en/48/1f1d65deaf733fe10000000a42189b/frameset.htm
    http://help.sap.com/saphelp_nwce711/helpdata/en/62/832cf3cd35004aa4ea8a2378c8a2be/content.htm
    If your question is answered then mark it so.

  • " APPLICATION NOT FOUND"  while deploying Web dynpro java Application

    Hi, I am getting a message that "application not found " While deploying the web dynpro java application .......... please give me a solution for this .

    Hi Ram,
    This error comes generally when your webdynpro project does not have an application. To create an application in your webdynpro project follow the underlying steps:
    <Project>->WebDynpro->Applications ---> right click and create New Application.
    Follow the steps to create the application.
    Now if you create archive and deploy, it will not give you the error again.
    Best Regards,
    Ravi

  • Date format problem in web dynpro java

    Currently, the date format that gets displayed in our webdynpro java application is MMDDYYYY...i am assuming this is because the web dynpro application has language resource set to en_US as its Current locale in the web dynpro deployed content section.  Howver i want it to display as DDMMYYYY. I have changed the default properties in visual admin for web dynpro from en to en_GB however this has no impact what so ever as the current locale is always set to en_US even after the change so am wondering this property is hidden some where else.  Now the web dynpro i am talking about is a adobe portal application. Could you give me any pointers as to where else i can look for or how i can change the current locale properly ??
    Regards
    Kal

    The date format in the Web Dynpro Java Application depends upon locale. At runtime WDJ will do the following process to get the current locale for the date format to be determined.
    1. First the WDJ Application will check for the locale set for the user in UME.
    2. If there is no default locale in UME, then the it will check for the locale in the in the browser which in most cases by default is en-us.
    3. If not, then it will check for the sap.systemLocale in the Propertysheet default of Visual Admin
    4. If there no locale specified in Visual Admin, itu2019s taken from the WAS JVM
    Please check the below SAP Note
    http://help.sap.com/saphelp_nw04/helpdata/en/a0/58db515b95b64181ef0552dc1f5c50/frameset.htm
    Regards,
    Chandran S

  • Adding a field in Web dynpro java in Travel Request application

    Hi All,
    How to add a field in Web dynpro java in Travel Request application or can we copy the Web dynpro java application to Web dynpro ABAP and add a field. Experts, Can you please suggest me step by step in resolving the problem.
    Thanks & Regards,
    Kumar

    Hi Kumar,
    First, in order to customise the ESS webdynpro Java iViews you need to be aware that, you are about to change the SAP standard iviews. In order to avoid this you can make a copy of the SAP standard one's and then try to customise the copied one's.
    Now, you should have NetWeaver Development Infrastructure(NWDI) installed. Once it is installed you should also install the Netweaver Developer Studio (NWDS) on your computer.
    Once you have these two installed, you should deploy the ESS Business Package onto the NWDI by creating tracks. There is a cookbook available on SAP Service Marketplace for configuring NWDI for ESS.
    Once you have all the above mentioned tools, have a look at the following blog which clearly explains about the procedure of customising ESS iviews.
    /people/vinoth.murugaiyan/blog/2007/08/24/essmss-customization-150-make-it-simple
    Also check the following Wiki, this might be useful!
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/erphcm/employee%252bself%252bservice
    I hope this helps. Let me know if you have any issues.
    Dont forgett to contribute points if this is useful! All the Best.
    Regards,
    PG

Maybe you are looking for