JeditorPane maximun connection reatched

hi
I use the setpage(URL) from Jeditorpane. But i get the following message
java.net.SocketException: No buffer space available (maximum connections reached?): connect
i would like to know if setpage(URL) method close the connection at the end of each page.
thanks

From what I can make of the API docs: yes.

Similar Messages

  • BI Widget - uses too much connections

    Hi all,
    I'm using BI widgets and it is a very good tool but I cannot find a way in order to do not open a new connection after a Widget refresh. the problem here is the widgets does not close the connection used after each refresh.
    has anybody passed by this? I'm ussing BI widgets 3.1 SP3
    thanks in advance
    note: I know that this can be resolved by increasing the number of maximun connections or by deactivating this functionality but I was wondering if we can resolved this by a "nice way" without put our servers in risks.

    Perhaps if you stated the models of cameras. From what I've read if you're connecting the cameras to the CCK, there are sometimes settings on the cameras you need to change to make it work.
    I always use mine just with the SD card - saves my camera battery - and I've not had an issue.

  • Weblogic.jdbc.extensions.PoolDisabledSQLException

    Hi All,
    We have one of the ADF application running on our Production system. The ADF application is connecting to Database through ADF BC.
    We have configured the datasource on the WLS
    The Maximun connection pooling on the WLS is 50.
    The configurations on the AM is set to default
    The application was working fine for 4 months.
    But we suddenly encountered "weblogic.jdbc.extensions.PoolDisabledSQLException"
    Caused By: weblogic.jdbc.extensions.PoolDisabledSQLException: weblogic.common.resourcepool.ResourceDisabledException: Pool PNDBConnectionDS is Suspended, cannot allocate resources to applications..
    Any Idea as how to fix this issue so that we donot see this exception in the future.
    We have used Jdev11.1.1.4.0 for development.
    Thanks
    Krishnaveni

    Hi Timo,
    Thanks you for googling .
    The actual cause for the Issue was that Connection with database was lost could be due to some issue on the database.
    After the database came up,We started getting the Re: weblogic.jdbc.extensions.PoolDisabledSQLException.
    The issue was fixed bouncing the application to remove stale connections.
    But we still need to investigate as why the connections didn't work after the DB was restarted.
    Thanks
    Krishnaveni

  • [SOLVED] Maximun TCP open connections and Open File Descriptors

    Hi,
    back when I was using XP I needed to patch a system file to increase max amount of open TCP connections - you surely know about this. I'm wondering how do I do the same in GNU/Linux and if that's real important here.
    Also, by default open files are set to 1024, how do I change that? I'm running x86_64 + KDE SC 4.4.2
    Last edited by martin77 (2010-04-12 04:17:27)

    Thanks for replying.
    I mean "open file handler" or in a better GNU/Linux terminology "open file descriptors" aka the maximun number of files that can be accessed at a given time.
    For instance, VMWare will need you increase them to 4096 to work properly - and I presume something in the order of 5120 would be ok.
    Following The Arch Way, already found the solution and want to share it with all of you fellow n00bs:
    1. you need to open for edit /etc/security/limits.conf file with root privileges
    2. at the end of the file add:
    * soft nofile nn
    * hard nofile nn
    where nn is the number of open file descriptors you want. I set them to 8196 (probably too high) so for instance it should read:
    * soft nofile 8192
    * hard nofile 8192
    Read the embedded help for a better understanding of this crucial configuration file.
    As usual, thank you very much to this great community, devs and users, best!
    Last edited by martin77 (2010-04-12 04:18:47)

  • JEditorPane and Secure Connection failed

    Hello,
    I have created a simple application that shows the resulting HTML page from a URL connection using JEditorPane. This works fine except when I try to connect to a URL that needs a user name and password.
    Using a straing URL connection I am able to connect but when I try to use the JEditorPane there is no method, as far as I know to get the connection and pass it to the EditorPane to use. I have tried the following :
    context is with in a class that Extends the JEditorPane:
    setContentType("text/html");
    InputStream is = getSecureInputStream(username,password,tmpStr); // returns an input stream from
    // a URL connection
    HTMLDocument doc = (HTMLDocument)getDocument();
    this.read(is,doc); // try to get the JEditorPane to
    // read from the input stream
    I get the following error:
    error:Must insert new content into body element-
    java.lang.RuntimeException: Must insert new content into body element-
    at javax.swing.text.html.HTMLDocument$HTMLReader.generateEndsSpecsForMidInsert(HTMLDocument.java:1878)
    at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1854)
    at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1729)
    at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1724)
    at javax.swing.text.html.HTMLDocument.getReader(HTMLDocument.java:125)
    at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:228)
    at javax.swing.JEditorPane.read(JEditorPane.java:504)
    at javax.swing.JEditorPane.read(JEditorPane.java:478)
    at com.UrlChecker.EditorPane._$10273(EditorPane.java:98)
    Thank you

    i can't find how to fix in the See Secure Connection Failed page, that's why i post my question.someone helps me pls!!!

  • How do i make http connection  from an applet to  a servlet

    i am not able to make a http connection from the applet to servlet
    my code for servlet is as follows
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class newDatabaseServlet extends HttpServlet {
    //      Connection con;
    // Statement stmt;
         public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
              resp.setContentType("text/content");
              System.out.println("megha");
              String mthd[] = req.getParameterValues("event");
              System.out.println(mthd.length);
              System.out.println(mthd);
              System.out.println(req.getQueryString());
              // System.out.println("megha");
    PrintWriter fw = new PrintWriter(new FileOutputStream(new File("e:/JRun/servers/default/default-app/mycontent.txt")));
    String s = "this text comes from servlet";
    fw.print(s);
    fw.flush();
              if(mthd[0].equalsIgnoreCase("callEditor")) {
                   openEditor(req,resp);
    public void openEditor(HttpServletRequest req, HttpServletResponse resp) {
         /* try {
              Class.forName("oracle.jdbc.driver.OracleDriver");
         con = DriverManager.getConnection("jdbc:oracle:thin:@pc6:1521:oradba","test","test");
         catch(Exception e) {
              e.printStackTrace();
              try {
                   resp.sendRedirect("/RunApp1.html");
              catch(IOException e) {
                   e.printStackTrace();
    /*try {
         Class.forName("oracle.jdbc.driver.OracleDriver");
    con = DriverManager.getConnection("jdbc:oracle:thin:@pc6:1521:oradba","test","test");
         catch(Exception e) {
         e.printStackTrace();
         resp.setContentType("text/html");
         PrintWriter output = resp.getWriter();
         try {
    stmt = con.createStatement();
    String strContent = "select * from edTable where newsid = 2";
    ResultSet rs = stmt.executeQuery(strContent);
    if(rs.next()) {
                   String newsText = rs.getString(2);
    /* StringBuffer buf = new StringBuffer();
                   buf.append("<B>servlet</B>");
                   try {
                   resp.sendRedirect("RunApp");
              catch(IOException e) {
                   e.printStackTrace();
    //               output.println(buf.toString());
    //          output.close();
    my code for applet is
    import javax.swing.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import java.awt.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    public class EdApplet extends JApplet {
    public void init() {
         Container c;
         c = getContentPane();
    JPanel but = new JPanel();
    c.add(but,BorderLayout.NORTH);
    final JEditorPane je = new JEditorPane();
    JScrollPane jsp = new JScrollPane(je);
    HTMLEditorKit ht = new HTMLEditorKit();
    je.setEditorKit(ht);
    je.setEditable(true);
    HTMLDocument mdoc = (HTMLDocument)ht.createDefaultDocument();
    StyleSheet mcontext =mdoc.getStyleSheet();
    je.setDocument(mdoc);
    c.add(jsp,BorderLayout.CENTER);
    JPanel bot = new JPanel();
    c.add(bot,BorderLayout.SOUTH);
    JButton save = new JButton("save");
    but.add(save);
    String str = getInitialText();
         je.setText(str);
         String servletUrl="http://pc7:8100/servlet/newDatabaseServlet";
    try{
                   URL servletURL = new URL(servletUrl);
                   URLConnection servletConnection = servletURL.openConnection();
              servletConnection.setRequestProperty("event","saveText");
              servletConnection.setDoOutput(true);
              servletConnection.setUseCaches(false);
         catch(Exception e) {
    //          je.setText(e.printStackTrace());
         ActionListener lst = new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   String save = je.getText();
                   saveText(save,je);
         save.addActionListener(lst);
    //je.setText("<B>this</B>");
    //URLConnection servletConnection = null;
    /* try {
              String servletUrl="http://pc7:8100/servlet/newDatabaseServlet";
              URL myUrl = new URL(servletUrl);
              servletConnection = myUrl.openConnection();
              servletConnection.setDoOutput(true);
              servletConnection.setUseCaches(false);
         /*     BufferedReader br = new BufferedReader(new InputStreamReader(servletConnection.getInputStream()));
    String t = br.readLine();
    je.setText(t);
         catch(Exception e) {
              e.printStackTrace();
    /* ActionListener lst = new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   BufferedReader br = new BufferedReader(new InputStreamReader(servletConnection.getInputStream()));
                   String t = br.readLine();
    je.setText(t);
    click.addActionListener(lst);
    /*void String changeText(UrlConnection con) {
    BufferedReader br = new BufferedReader(new InputStreamReader(con.getInputStream));
    String t = br.readLine();
    return t;
    public String getInitialText()
         //String me = null;
         URLConnection textConnection = null;
         StringBuffer sb = new StringBuffer();
         try {
                   String textUrl="http://pc7:8100/mycontent.txt";
                   URL myUrl = new URL(textUrl);
                   textConnection = myUrl.openConnection();
                   textConnection.setDoInput(true);
                   textConnection.setUseCaches(false);
                   BufferedReader br = new BufferedReader(new InputStreamReader(textConnection.getInputStream()));
                   // me = (String)servletConnection.getContent();
                   String s = null;
                   while((s = br.readLine())!=null) {
                        sb.append(s);
              catch(Exception e) {
                             e.printStackTrace();
                   return sb.toString();
         public void saveText(String saveStr,JEditorPane je) {
              //String saveStr = je.getText();
              //String servletUrl="http://pc7:8100/servlet/newDatabaseServlet?event='saveText'&newsid='2'";
              //String servletGet="http://pc7:8100/servlet/newDatabaseServlet";
              String servletUrl="http://pc7:8100/servlet/newDatabaseServlet";
              //String servletUrl = servletGet + "?"
              //     + URLEncoder.encode("event") + "="
         // + URLEncoder.encode("saveText");
    //     je.setText(servletUrl);
              try {
              URL servletURL = new URL(servletUrl);
              URLConnection servletConnection = servletURL.openConnection();
         //     servletConnection.setRequestProperty("event","saveText");
         servletConnection.setRequestProperty(
         "User-Agent","Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
              //System.out.println("from applet");
              servletConnection.setDoOutput(true);
              servletConnection.setUseCaches(false);
              //Propertiew prop = new Properties();
         //     prop.put("event","saveText");
              PrintStream out = new PrintStream(servletConnection.getOutputStream());
    out.println("event");
    out.close();
         catch(IOException e) {
              je.setText(e.toString());
    kindly tell me what is the error
    what is the best method of doing this
    thanking u in anticipation
    megha sood

    omg O_o
    We cannot debug your code, but:
    Did you try the servlet directly from your browser? Does it work?
    Best regards from Germany,
    r.v.

  • I want to upgrade my Hard Drive to 1TB and more.  What is the maximun Hard Drive I can install for a MacBook Pro 2009 Yesterday, I tried a SEAGATE SSHD but my screen was always a showing a QUESTION MARK (?). It's not the cable because when I put back

    I want to upgrade my Hard Drive to 1TB and more.
    What is the maximun Hard Drive I can install for a MacBook Pro 2009
    Yesterday, I tried a SEAGATE SSHD but my screen was always a showing a QUESTION MARK (?). It's not the cable because when I put back the old original version, everything works...Any sugestion of brabnding or procédure to upgrade my hard drive?

    The largest 2.5" dia SATA drives available are 2 TB in capacity.
    Have you tried the Seagate SSHD connected externally to the MBP via USB?  The drive itself may be faulty.
    Ciao.
    Here is a good place to start looking for a replacement drive:
    http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/

  • Problem in displaying html page in JEditorPane....

    Hi All,
    i was trying to display a html page in a JEditorPane. i was able to do that when i'm displaying a html page from a local machine.. But when i try to get the page from some website, it giving me
    "exception access denied (java.net.SocketPermission www.java.sun.com resolve)"
    exception. But if i run the same code thru JBuilder, its working. But thru appletviewer or thru IE or Netscape its throwing the error.. Any suggestion or help is highly appreciated....
    Thanks
    Ragu

    Java Applets are very secure, what is good. Java applets are extremely secure
    what is bad. So Applet cannot open TCP connection to any host rather than its
    home host. So you cannot get the resources from any other server (what is common to
    HTTP).
    In JBuilder iit works cause JBuilder is used for development and security in deevelopment
    is not an issue. But it confuses then you see.
    vpanasenko_even

  • Connecting out to the Internet using Sockets

    Hi,
    My project is an Internet Connection Sharing project where a no of clients try to access the Internet through a single connection (d main server). I've got a basic Java Browser that simply sends on the URL address ("www.java.sun.com") typed into a textfield by the user to a Server when a button is clicked. This is done thru basic read & write methods using an ObjectInput & ObjectOutputStreams. I've also created a socket connection out to the Internet by passing in the URL on port 80, thus establishing a connection... here's the code:
    inet_SockCon = new Socket( InetAddress.getByName( str_Buffer ), 80 );
    System.out.println( "Connected to: " +
    inet_SockCon.getInetAddress().getHostName() );
    The next step is trying to get the URL page requested back to the server and from there to the client browser where it will be displayed. I'm using a JEditorPane() on my Browser which formats the HTML data. If anyone has any ideas as to how i can do this it would be gratefully appreciated.
    Thank you.

    Use a HttpURLConnection.

  • A shared Text editor - question about JEditorPane

    Hi there,
    I'm trying to make a shared Text Editor. So far I have the ability to pass messages across from one client to another. I have all the GUI elements in the "main" Class, and the Connection elements in separate Classes; in particular the receivedPacket method which listens for specific packets. Now I'm able to print in my Terminal window the received packets (via a simple System.out.println call). Is it possible to grab the packet information from the "main" Class and then append that information to the JEditorPane (which has been constructed in the main Class)? Or would it be better to create the JEditorPane in the Class with the receivedPacket and then add the information straight away to the editor window?
    Thanks
    :)

    Thanks for the guidance, I think you're right. Nice to hear you've done something similar.
    What I have up and running is:
    1) GUI elements created in the main class (Class Exchange)
    2) A Connection class that handles the connection to the server and adds packet listeners to the incoming packets (Class Connection)
    3) A class that filters and stores the packets (Class Comms)
    Now I'm using a protocol called Jabber (instant messaging protocol) so I'm using the JabberBeans library for all Jabber stuff (i.e. Connection and packet listeners etc..). Now the receivedPackets method within the Comms Class then extracts the <body> of what I want to another method within the Comms Class which then returns that String value. This works as it prints to the Terminal window when run and packets are received.
    What I'm having difficulty in understanding (although I think its straightforward) is why I can't take that returned value and have it update in my JEditorPane window (which is in the main Class (Exchange)), it doesnt like it for some reason and complains about something from the JabberBeans library.
    I'm unsure about how to update the JEditorPane; would it be to write a method in the main class that calls in the returned <body> String value (which is what I thought would be right)? Or is there something else I've missed. In the JabberBeans API the returned value is of type String, I'm guessing that maybe I need to move that into a StringBuffer for the sake of the JEditorPane.. Or is that just guessing?
    Thanks for the help, hope you get a moment..
    AB
    :)

  • Problem displaying Japanese char set in JEditorPane

    Hi ,
    I am using JEditorPane for displaying html content. If the content is in English
    it is getting displayed properly . In case of Japanese char set like Shift-JIS only square
    boxes is displayed .
    I have tried the following
    1.Installed Japanese font and set regional and language options.
    2.set content type of JEditorPane as text/html and char set=Shift-JIS
    3.Used InputSteamReader for reading html document .While constructing passed char set also.
    4.Used SetText to set html content.
    5.verified font.properties file
    I am Using JDK 1.4.2
    No positive results.
    Kindly help me to resolve this . If it known bug please inform.
    U can connect me at [email protected]
    Thanks in Advance,
    Polu

    Hi,
    Thanks,
    I have tried the approach has mentioned above but still no positive result,
    Pls can u guide me ,so as to what might be the problem,
    Cheers,

  • Trouble inserting text into JEditorPane

    Hello.
    I am trying to use a URL Connection and the read method to produce an HTML page in a JEditorPane.
         purlRec is a data record that contains information relating to the URL in question.
         pis is an input stream create from the URLConnection.getInputStream() method
    private void loadFromURL(UrlRecord purlRec, InputStream pis ) {
    URL url;
    String tmpStr = (String)purlRec.getUrlName();
    String baseUrl = (String)purlRec.getUrlName();
    setContentType("text/html");
    try {
    HTMLDocument doc = (HTMLDocument)getDocument();
    doc.setBase(new URL(baseUrl));
    this.read(is,doc);
    repaint();
    catch (Exception e) {
    System.err.println("Couldn't create URL: " + tmpStr);
    System.out.println("error:"+e.getMessage());
    I get the following when I execute the code. Am I not using this correctly or is there something I am missing? I am using the read from input stream so that I can connnect to url that require authentication. I know that the URL connection works because I am able to write the output of the stream to a text file in a test function.
    Couldn't create URL: http://www.google.com
    java.lang.RuntimeException: Must insert new content into body element-
         at javax.swing.text.html.HTMLDocument$HTMLReader.generateEndsSpecsForMidInsert(HTMLDocument.java:1878)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1854)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1729)
         at javax.swing.text.html.HTMLDocument$HTMLReader.<init>(HTMLDocument.java:1724)
         at javax.swing.text.html.HTMLDocument.getReader(HTMLDocument.java:125)
         at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:228)
         at javax.swing.JEditorPane.read(JEditorPane.java:504)
         at javax.swing.JEditorPane.read(JEditorPane.java:478)
         at com.UrlChecker.panels.HTML.EditorPane._$34246(EditorPane.java:105)
         at com.UrlChecker.panels.HTML.EditorPane.changeUrls(EditorPane.java:142)
         at com.UrlChecker.demo.UrlChecker.changeHtml(UrlChecker.java:131)
         at com.UrlChecker.panels.Report.URLTabView.mouseClicked(URLTabView.java:91)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:208)
         at java.awt.Component.processMouseEvent(Component.java:5096)
         at java.awt.Component.processEvent(Component.java:4890)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3598)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3439)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3174)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
         at java.awt.Window.dispatchEventImpl(Window.java:1585)
         at java.awt.Component.dispatchEvent(Component.java:3439)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    error:Must insert new content into body element-
    Thank you

    I tried using this, but I get an UNAUTHORIZED Status code (401) indicating request requires HTTP authentication. ( HttpServletResponse error code ). This is why the encoded authentication is used. It works when I try to just read from the url using an InputStream but not when I try passing the same InputStream to the JEditorPane.
    Any Idea of how to use JEditorPane.read(InputStream in , Object desc) or why it would work in one instance and not in the other?
    Thanks

  • Displaying a webpage in a JEditorPane from a JApplet

    Hi.
    I am trying to display a webpage in a JEditorPane from an a JApplet.
    I've tried.
    try {
            URL url = new URL("http://www.yahoo.com");
            jEditorPane1.setPage(url);
            } catch(Exception e) {e.printStackTrace();}But I got an AccessControlException:
    java.lang.RuntimeException: java.security.AccessControlException: access denied (java.net.SocketPermission www.yahoo.com:80 connect,resolve)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
         at java.net.HttpURLConnection.getResponseCode(Unknown Source)
         at javax.swing.JEditorPane.getStream(Unknown Source)
         at javax.swing.JEditorPane.setPage(Unknown Source)
         at DisplayDialog.<init>(DisplayDialog.java:21)
         at TestFrame.jButton2ActionPerformed(TestFrame.java:477)
         at TestFrame.access$200(TestFrame.java:15)
         at TestFrame$3.actionPerformed(TestFrame.java:432)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.security.AccessControlException: access denied (java.net.SocketPermission www.yahoo.com:80 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         ... 31 more
    I seem to recall something about an applet only being allowed to access pages on the same server. Is there any way to display an external webpage in a JEditorPane? Thanks.

    Unless you sign the applet's jar, you can only fetch urls from the same host as the applet was downloaded from. Part of the sandbox security restrictions.
    So go look up jarsigner for details.

  • Hyperlinks in a JEditorPane

    Hi,
    I have an application that connects to a database and retrieves results from the database and then displays the results in a JEditorPane - the results are in the form of a hyperlink - so when i click on the link then a web page is opened up inside of the JEditorPane.
    The question i have is, once i have clicked on the link how can i return to the original page, rather thn having to run the program from the start again ?
    Is there a pre - defined "back"/"previous page" method i can use, to go back to the previous page ?
    Any help would be much appreciated
    Thanks Again

    sjhori214,
    When you read from the database, if you put the contents ( presumably some html with hyperlinks etc) into a String object and store it somewhere (perhaps create a new object which you have a static instance of, and load it into a String variable of that object).
    Then, assuming you are using the correct editor kit (text/html), use the
    setText( myObject.HTMLfromDB )type of syntax to display this HTML page.
    If you also have a button (or other) somewhere in your app, whose actionListener() method calls
    setText( myObject.HTMLfromDB )this would re-load the HTML back into the JEditorPane, without re-loading form the Database.
    If you wanted to simply implament a "back" button, as supposed to a "home" button you could create a vector of myObject (see above) objects, and navigate back and forward in it and use the setText method to display its contents (of course you would have to add a HyperlinkListener object that fires on page moving and then use getText() to load the latest HTML into a new object.
    Hope this gives you some idea of how to proceed
    Guy

  • Source system settings DB Connect

    trying to change the IP settings for source system get message
    :Source system default settings are maximun values; input adjusted..
    Source system is DB connect, any idea how can change settings?
    It is correctly in BW : sbiw and spro set to correct level of 50 000.
    But somehow the IP says the settings max is 5 000.
    I need to increase this level as I have 10m records to load. .
    Please asssit.
    Thanks

    Follow OSS note 931226 for DBConnect datasource related packetsize setting.

Maybe you are looking for

  • Bypass Logon screen of the SAP R/3 system where WDA application resides

    Hi, I created an application in WDA. I have another appplication in WDJ. On one of the views of WDJ application, I created a link to URL UI elem and provided WDA application's URL to it as a reference. When I click on the link to URL,  I expect that

  • Having trouble viewing the print preview of sapscript

    Hi experts, I am currently developing a driver program that calls 13 different sapscript forms (which are also customized - has n existing standards). so basically, the whole program and the forms are all from scratch. I've already executed the call

  • How to get Customer Credit & Overdue balances?

    Hi All, We need to retrieve Customer account balances data from SAP and pass that data to another third-party system. We have to create either a Custom Report or a Custom BAPI for this. The required values are 'Credit Balance' and 'Overdue Balance' f

  • 2.0 upgrade/operation woes

    I installed the 2.0 upgrade to my 16 GB Touch last night, but not without difficulty and continuing problems. The attempted backup did not work, as some have noted. (My particular issue was an error -43.) I finally gave up and let it upgrade anyway,

  • Not Allow to Insert

    Hi : In My application there is table called baseline_effort where it contains Projects and Objects what i need is If project and object is already in the database if i try to reenter the same project it must show some message saying database already