Rmi remote reference lookup very slow in web start application

I have a little problem with the RMI communication in a web start test application.
It is a very simple program in which the client calls a remote object that returns a String.
Everything seems to be working fine when i'm running/debugging the client app in eclipse, but when i package my client project into a jar file and run it as a web start application (i'm providing the jnlp on a local webserver) the remote reference lookup takes about 15 seconds.
basically, what my client does is this:
Registry registry = LocateRegistry.getRegistry(address);
ServerTransaction st= (ServerTransaction) registry.lookup(name);
String result = st.test();
The server code looks like this:
String name = "ServerTransaction";
ServerTransaction engine = new DefaultServerTransaction();
ServerTransaction stub = (ServerTransaction) UnicastRemoteObject.exportObject(engine, 0);
Registry registry = LocateRegistry.createRegistry(Registry.REGISTRY_PORT);
registry.rebind(name, stub);
The server runs as a normal stand alone java application on my local machine as well.
And here the content of the jnlp file for the client application:
<resources>
     <jar href="WSTest.jar"/>
     <jar href="WSTestServer.jar"/>
     <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
     <property name="serverAddress" value="127.0.0.1" />
</resources>
<security>
     <all-permissions/>
</security>
<application-desc main-class="test.WSTest"/>
As i said, the whole thing works when run as a normal java application as well as with web start, with the difference that the remote reference lookup takes about 15 seconds with web start.
Can anyone tell me how i could go about this?

Meanwhile, i tried the same thing at home on my xp machine (i use vista at work), and even though my test at home basically does the same thing (invoking a simple remote method that just returns "hello world") it worked pretty fast, contary to the 15 second hang on vista.
So i can't really say where the problem is...
I also found these two rmi properties
sun.rmi.transport.connectionTimeout (1.1.6 and later)
The value of this property represents the period (in milliseconds) for which socket connections may reside in an "unused" state, before the Java RMI runtime will allow those connections to be freed (closed). The default value is 15000 milliseconds (15 seconds).
and
sun.rmi.transport.proxy.connectTimeout (1.1 and later)
The value of this property represents the maximum length of time (in milliseconds) that the Java RMI runtime will wait for a connection attempt (createSocket) to complete, before attempting to contact the server using HTTP. This property is only used when the http.proxyHost property is set and the value of java.rmi.server.disableHttp is false. The default value is 15000 milliseconds (15 seconds).
Hoping it would help (totally clueless) i tried to set these as system properties via System.setProperty(...) to a lower value (if that even works this was - please correct me if i am totally wrong here) but it didn't help.

Similar Messages

  • Java web start application runs too slow...

    Hello,
    I am new to Java Web Start. I have created a java web start application and when i enable web start from local Execution, then it works perfectly well. But when i upload it on server and then download the application, then it is too too slow...i mean it takes minutes to get the output on clicking some button....my jnlp file is as under:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <jnlp codebase="http://(web server code base)" href="launch.jnlp" spec="1.0+">
    <information>
    <title>ERD</title>
    <vendor>Deepika Gohil</vendor>
    <homepage href="http://appframework.dev.java.net"/>
    <description>A simple java desktop application based on Swing Application Framework</description>
    <description kind="short">ER Deign Tools</description>
    </information>
    <update check="always"/>
    <security>
    <all-permissions/>
    </security>
    <resources>
    <j2se version="1.5+"/>
    <jar href="ERD_1_2.jar" main="true"/>
    <jar href="lib/appframework-1.0.3.jar"/>
    <jar href="lib/swing-worker-1.1.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/jaxb1-impl.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    <jar href="lib/ant-contrib-1.0b3.jar"/>
    <jar href="lib/jaxb-impl.jar"/>
    <jar href="lib/jaxb-xjc.jar"/>
    <jar href="lib/FastInfoset.jar"/>
    <jar href="lib/gmbal-api-only.jar"/>
    <jar href="lib/http.jar"/>
    <jar href="lib/jaxws-rt.jar"/>
    <jar href="lib/jaxws-tools.jar"/>
    <jar href="lib/management-api.jar"/>
    <jar href="lib/mimepull.jar"/>
    <jar href="lib/policy.jar"/>
    <jar href="lib/saaj-impl.jar"/>
    <jar href="lib/stax-ex.jar"/>
    <jar href="lib/streambuffer.jar"/>
    <jar href="lib/woodstox.jar"/>
    <jar href="lib/jaxws-api.jar"/>
    <jar href="lib/jsr181-api.jar"/>
    <jar href="lib/jsr250-api.jar"/>
    <jar href="lib/saaj-api.jar"/>
    <jar href="lib/activation.jar"/>
    <jar href="lib/jaxb-api.jar"/>
    <jar href="lib/jsr173_api.jar"/>
    </resources>
    <application-desc main-class="erd.screen1">
    </application-desc>
    </jnlp>
    I dont understand the reason. Could you please help me out.
    Thank you,
    Deepika Gohil.

    Check your web server's access logs to see how many requests web start is sending for each jar. After you've loaded the application the first time, for each subsequent launch, if you've got everything configured right, you should only see requests for the JNLP file and maybe some gifs because web start should load everything else out of the cache (if you're using the version-based download protocol). Or if you're using the basic download protocol, then you might see requests for each jar file, but even in this case, if your web server is prepared to evaluate the last-updated attribute for each jar request and for jars that have not changed, respond with no actual payload and a header value of Not-Modified, then that should run almost as fast.
    You might also want to consider changing the "check" attribute of the "update" element from "always" to "background" for a couple of reasons. It should allow your app to start sooner (but this means that you might have to launch once or twice after an update is applied to the web server before the update shows up on the workstation). Also, my impression is that "always" is broken and prevents web start from ever checking to see if your jnlp file has been updated if you launch your app from a web start shortcut - launching from a browser is less likely to have this problem, depending on how often your browser is configured to check for updated resources.

  • 5800Xm very slow when is starting

    Hello folks,
    Anybody can help me, suddenly my phone began to be very slow when is starting, take 5 minute to start the main screen.
    notice that  I take out the microsd card, inmediately run and star the well.
    What cain i do?
    Solved!
    Go to Solution.

    You can thank me by clicking the green star
    If you want to thank someone, just click on the blue star at the bottom of their post

  • Can't paste text in a Web-started application

    I am facing a problem with a limited (but growing) number of users: they are
    unable to paste a block of text into a text field. Apparently the problem
    occurs in Windows 7 only that seems to isolate the Web-start application into
    a sandbox. What is strange is that the application is signed and requires
    full access to resources. Since I am not a windows 7 user I can't reproduce
    the problem, also with other Windows 7 users things work fine, what's curious.
    I can't determine if the program would also be trapped in other I/O operation
    cause registration (for which paste is needed) is first step and user can't
    proceed any more.
    Did anybody else have incur in the same problem. Do anybody know what user
    shall do to unlock the paste operation?
    I am sure there is some solution otherwise any RIA application deployed with
    Java Web Start would be excluded by all future (Windows 7) market, but I don't
    know what to tell my user to proceed.
    Thanks very much to whoever can help.

    Andrew,
    I think I spotted the problem, but unhappily got no confirmation from user (despite my kind request to perform a new test with modified code). The issue is probably not related Windows 7 but to the kind of mail program is used to "cut" the text. Some mail program encode it as plain text, others as rich text and still others (like Firebird I use) as html. I perceived this using your code and I was surprised (I was expecting text/plain). This explains why only certain users report the problem.
    What is strange is that Java, under JNLP is unable to convert text/xxxx to text/plain when pasting in a text component, as it does if desktop-started. I am already sure it is text/xxxx because in a previous situation I asked user to perform a paste into a notepad and it worked fine, it doesn't paste only into a JText component. Probably when Java is not webstart-launched it uses native conversion and when web-started it considers MIME type. If not plain text returns an empty string.
    I basically used your code, but considered only first MIME type and, if not text, I reject paste and ask user to go though a plain text editor. In my case it does not make sense trying to manage HTML or RTF: that would be an overkill.
    Let's wait and see next case, anyway the inability to paste text/xxxx into text components this is a considerable limitation of web-started programs.
    The good news I discovered during tests is that (apart new logo), deployment has really improved, at least timestamp is correctly handled. Until few months ago I had to start the application 2-3 times to have jnlp perceived that some jar were updated.

  • How can I enable java applet plug-in and Web Start applications via terminal?

    Since the last Java update to Snow Leopard, I have found that the system periodically disables the Java applet plug-in after a period of disuse.  I know I can go to /Applications/Utilities/Java Preferences and just click to re-enable Java.  But I want to write a script which will do this periodically for a couple hundred Mac users where I work. 
    My question is - how can I reenable the Java applet plug-in and web start applications via Terminal command?  Is this possible?  Is there a plist file that can be modified, etc.?
    Bob Reed

    It is my understanding that Apple's most recent Java update automatically disables Java after a certain period of time that it hasn't been used.  We don't want users to have to keep re-enabling it.  So we wanted to find a way to do this via script either run by a Casper JSS server or stored locally on each workstation.   With the guidance provided by Mark Jalbert above and some text from a script written by Rich Trouton, I was able to make a script (with some minor changes) and a launch agent to re-run the script upon login.  So the preference is always enabled.
    For your reference, the script content is:
    #!/bin/sh
    # DYNAMICALLY SET THE UUID FOR THE BYHOST FILE NAMING
    if [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` == "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c51-62 | awk {'print tolower()'}`
    elif [[ `ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-50` != "00000000-0000-1000-8000-" ]]; then
    MAC_UUID=`ioreg -rd1 -c IOPlatformExpertDevice | grep -i "UUID" | cut -c27-62`
    fi
    # Set the the "Enable applet plug-in and Web Start Applications" setting in the Java Preferences for the current user.
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsEnabled" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsEnabled bool true" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Delete :GeneralByTask:Any:WebComponentsLastUsed" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    /usr/libexec/PlistBuddy -c "Add :GeneralByTask:Any:WebComponentsLastUsed real $(( $(date "+%s") - 978307200 ))" /Users/$USER/Library/Preferences/ByHost/com.apple.java.JavaPreferences.${MAC_UU ID}.plist
    The launch agent plist content is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Disabled</key>
              <false/>
              <key>Label</key>
              <string>org.XXXXX.enableJavaPlugin</string>
              <key>ProgramArguments</key>
              <array>
                        <string>sh</string>
                        <string>/Library/Scripts/XXXXX/enableJava_plugin.sh</string>
              </array>
              <key>RunAtLoad</key>
              <true/>
              <key>StartOnMount</key>
              <true/>
    </dict>
    </plist>
    I hope this is helpful to anyone wishing to keep the Java web plugin enabled.
    Bob
    Message was edited by: Robert Reed2

  • Java Web Start application failing on my user account

    Hi All,
    I've been tearing my hair out over this for a while and haven't been able to get anywhere wiht it. I've finally cracked and decided to post a plea for help in here.
    Basically, I have a web start application that will not start under my user profile but will under a new account I created. If I try and start it from the terminal with javaws I get "Bus Error" and that's all. Double clicking it gives me a crash dialoge box and the details can be seen here:
    http://pastebin.com/m77b1111f
    As I said before, running it in the other account works fine as does "sudo javaws /path/to/app.jnlp" but I really don't want to have to do that every single time.
    I've deleted the JavaCache folder as well as any ~/Library/Preferences/java.plist all without any joy. Also, I'd like to add that there are a number of other Web Start apps that run without any problems.
    Any ideas?

    Thing is, if there was corruption of something that was system wide, it wouldn't work under a different profile, right?
    Unpredictable as to how lomg it would work on a new account.
    Is this usually the case for a safe boot?
    Yes, it runs fsck_hfs -fy on the whole drive, dumps several caches & so on, the next boot will also take longer than usual as it rebuilds caches & so on.

  • Java Web Start application doesn't run in Tomcat

    I successfully did a Java Web Start example for me to learn then I tried another one where I encountered an error:
    This is what Tomcat 6.0.18 says. The deploy is successful but when I try to run the web start application
    with this htmlcode
    <A href="http://localhost:8080/ConvertorValutar/app/launch.jnlp">I get this error witch leads me to think that it can't find the jar correct ?
    type Status report
    message /convertorvalutar/
    description The requested resource (/convertorvalutar/) is not available.Appendix:
    This is how I am doing the JAR
    jar cfvm convertorvalutar.jar myManifest2.mf Java*.class IRata*.class The myManifest2.mf is
    Main-class: JavaWebStart_Convertor witch is the main class
    This way I am doing the WAR:
    del *.war /F /Q
    jar cfv convertorvalutar.war app/* WEb-INF/*This is the correct directory structure
    &#9474;   faWar.bat
    &#9474;   convertorvalutar.war
    &#9474;
    &#9500;&#9472;&#9472;&#9472;app
    &#9474;       ConvertorValutar.jar
    &#9474;       launch.jnlp
    &#9474;
    &#9492;&#9472;&#9472;&#9472;WEB-INF
        &#9474;   web.xml
        &#9474;
        &#9492;&#9472;&#9472;&#9472;lib
                jnlp-servlet.jarThis is the web.xml
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <!-- Standard Action Servlet Configuration (with debugging) -->
    <web-app>
         <servlet>
              <servlet-name>JnlpDownloadServlet</servlet-name>
              <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>JnlpDownloadServlet</servlet-name>
              <url-pattern>*.jnlp</url-pattern>
         </servlet-mapping>
    </web-app>
    </web-app>This is the jnlp:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp codebase="http://localhost:8080/convertorvalutar/app">
    <information>
         <title>Convertor Valutar</title>
         <vendor>remus.dragos</vendor>
         <description>Simple Java Web Start Example</description>
    </information>
    <resources>
         <j2se version="1.5+"/>
         <jar href="ConvertorValutar.jar"/>
    </resources>
    <application-desc main-class="JavaWebStart_Convertor"/>
    </jnlp>Where is the problem?
    Edited by: remus.dragos on Dec 9, 2008 7:14 PM

    I did checked the names again and I found that the makeJar.bat had an "issue".
    It missed the del *.jar and I had 2 uppercase letters like ConvertorValutar, instead of convertorvalutar.jar.
    After that I rebuild the war and deployed and it works :)
    Thanks.

  • Unable to launch web start application

    Hi Please can any one help me.
    I have a problem in launching the web start application.
    As i am the beginner i need help from you people.
    I have created three class files as below.
    Aeon_PManager.java
    SimpleSerial.java
    SimpleSerialNative.java.
    We have to create a SimpleSerialNative.dll in the same folder where we are saving all the class files.
    The jnlp file that i have written is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- JNLP File for Aeon HHBM Manager Application -->
    <jnlp spec="1.0+" codebase="http://zycomm:8080" href="Aeon.jnlp">
    <information>
    <title>Aeon HHBM Manager</title>
    <vendor>ME</vendor>
    <description>Aeon HHBM Manager</description>
    </information>
    <offline_allowed/>
    <resources>
    <j2se version="1.4+"/>
    <jar eager="true" href="SimpleSerialNative.jar" main="true"/>
    <jar href="lib/Aeon_PManger.jar"/>
    <jar href="lib/simpleSerialNative.jar"/>
    <jar href="lib/simpleSerialNatived.jar"/>
    <jar href="lib/simpleSerial.jar"/>
    </resources>
    <application-desc main-class="Aeon_PManager.Main" />
    <component-desc/>
    </jnlp>
    I am using Tomact6.0 server.
    I am saving the jnlp file and jar files in the path below
    tomcat6.0/webapps/root
    Is it wrong to do so. If it is then what should i do to launch the application.
    Is it necessary for me to create jar files for all classes seperately.
    should i create jar file for simpleSerialNative.dll also.
    These are the error messages that I am getting:
    In general tab:
    An error occured while launching/running the application
    Title:Aeon HHBM Manger
    Vendor:Me
    Category:DownloadError
    Unable to load resource http://zycomm:8080/Aeon_PManager.jar
    Exception tab:
    jnlp exception[category download error: exception: java io.ioexception:http response 404 launchdesc:null]
    at com.sun.javaws.cache.DownloadProtocol.doDownload(Unkown Source)
    at com.sun.javaws.cache.DownloadProtocol.getDownload(Unkown Source)
    at com.sun.javaws.LaunchDownload.downloadJarFiles(Unkown Source)
    at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unkown Source)
    at com.sun.javaws.Launcher.downloadResources(Unkown Source)
    at com.sun.javaws.Launcher.handleApplicationDescUunkown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unkown Source)
    at com.sun.javaws.Launcher.Run(Unkown Source)
    at java.lang.Thread.run(Unkown Source)
    Wrapped Exception Tab
    java io.IOexception:HTTP response 404
    at com.sun.javaws.cache.DownloadProtocol.doDownload(Unkown Source)
    at com.sun.javaws.cache.DownloadProtocol.getDownload(Unkown Source)
    at com.sun.javaws.LaunchDownload.downloadJarFiles(Unkown Source)
    at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unkown Source)
    at com.sun.javaws.Launcher.downloadResources(Unkown Source)
    at com.sun.javaws.Launcher.handleApplicationDescUunkown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unkown Source)
    at com.sun.javaws.Launcher.Run(Unkown Source)
    at java.lang.Thread.run(Unkown Source)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    1) I totally agree with Andrew
    2) You have 3 classes and 5 jars, how's that?
    3) Either you don't respect naming conventions and have uppercase packages or you don't know the difference between a jar and a package. Are you really a Java programmer?
    4) You jnlp names out lib/Aeon_PManger.jar while your stack trace claims not to find http://zycomm:8080/Aeon_PManager.jar (the lib path is missing and Manager is not missing any 'a'). How badly did you mess pasting?
    5) You're asking if you should package simpleSerialNative.dll without giving out any detail, do you suppose we have a universal knowledge of all existing APIs? Anyway you already got an answer to this in your other post.
    6) You're a lucky man, 'cause I really love dukes, so I'll tell you what you should do (and I expect to give out 10 dukes on both posts): have a single jar within everything in it and execute it as stand alone app. Command: *java -jar YourJar.jar* (if you declare main class in manifest), or *java -cp YourJar.jar YourClassFullName*. Once you get it working you'll be ready for JWS deploy issues. If you can't get even there, take this advice: give up java (and maybe the all programming staff)!
    Bye.

  • Singleton web start application 1.4 ?

    is there a way to configure a web start application to be singleton in the JNLP1.4 ?

    You can do this in 1.5. For ealier version you will need to do it yourself by using JNI to switch to the singleton. Or you can open a ServerSocket and open a port and if that port is in use tell the user that they need to switch to the already running application.

  • Looking for a good Javascript to let me know if the "Enable applet plug-in and Web Start Applications is enabled" is disabled or enabled within Java Preferences?

    If this code could work on Snow Leopard as well, that would be awesome. I have a code to tell if Java is enable or disabled on any web browser, but it does not detect if the Java Preferences "Enable applet plug-in and Web Start Applications is enabled" is enabled or disabled. Just looking for a specific code to tell if this option is disabled or enabled.
    Thank you

    Launch Applications/Utilities/Java Preferences.app by double-clicking.
    EDIT; But I think you are confusing this with JavaScript which has nothing to do with it.

  • No option to Enable the Java applet plug-in and Web Start applications

    How do I Enable the Java applet plug-in and Web Start applications
    Their is no option under java preferences General Tab
    The options i get their are
         Run appelts
              in their own proccess
              Within the browser process
              (Defaut most compatible)
    Under the network tab im told
    By default java applets and web start applications use network settings in the system network preferences. Only advanced users should modify these settings
    Any ideas on why it is like this?

    Mac OS 10.6.8
    This happend once before when I was running 10.5.8 I fixed it but for the life of me i can't remember how i did it.

  • Latest Java 7 update 25 prevents JMF from working in Web Start application

    Has anyone else had a problem getting the JMF to work in a Web Start application since updating to Java 7 update 25?
    I can successfully run our application on my local machine via Eclipse and the webcam image loads. When I run my application from Web Start it does not load any image and errors out with the following error:
    java.lang.NullPointerException
        at javax.swing.RepaintManager.currentManager(Unknown Source)
        at javax.swing.RepaintManager.currentManager(Unknown Source)
        at javax.swing.RepaintManager.currentManager(Unknown Source)
        at javax.swing.JComponent.repaint(Unknown Source)
        at java.awt.Component.repaint(Unknown Source)
        at java.awt.Component.repaint(Unknown Source)
        at com.sun.media.renderer.video.AWTRenderer.doProcess(AWTRenderer.java:236)
        at com.sun.media.renderer.video.BasicVideoRenderer.process(BasicVideoRenderer.java:118)
        at com.sun.media.BasicRendererModule.processBuffer(BasicRendererModule.java:727)
        at com.sun.media.BasicRendererModule.scheduleBuffer(BasicRendererModule.java:499)
        at com.sun.media.BasicRendererModule.doProcess(BasicRendererModule.java:400)
        at com.sun.media.RenderThread.process(BasicRendererModule.java:1114)
        at com.sun.media.util.LoopThread.run(LoopThread.java:135)
    Any help would be appreciated
    Thanks,
    Mike

    Hi - I have exactly the same issue. Referring to Java 1.7_25 release note, i have also included permissions/codebase attributes in jmf jar manifest file but it did not help. With the permissions attributes i dont see the warning missing permissions, but it not solve the actual problem. JMF throws following NPE exception in my case
    Exception in thread "JMF thread: SendEventQueue: com.sun.media.content.unknown.Handler" java.lang.NullPointerException
        at sun.awt.image.FetcherInfo.getFetcherInfo(Unknown Source)
        at sun.awt.image.ImageFetcher.add(Unknown Source)
        at sun.awt.image.InputStreamImageSource.startProduction(Unknown Source)
        at sun.awt.image.InputStreamImageSource.addConsumer(Unknown Source)
        at sun.awt.image.InputStreamImageSource.startProduction(Unknown Source)
        at sun.awt.image.ImageRepresentation.startProduction(Unknown Source)
        at sun.awt.image.ImageRepresentation.prepare(Unknown Source)
        at sun.awt.SunToolkit.prepareImage(Unknown Source)
        at java.awt.Component.prepareImage(Unknown Source)
        at java.awt.ImageMediaEntry.startLoad(Unknown Source)
        at java.awt.MediaEntry.getStatus(Unknown Source)
        at java.awt.ImageMediaEntry.getStatus(Unknown Source
    Please let me know if you have any solution for the above problem. Appreciated your help.
    Thanks
    Sri

  • How to send image from web start application to my servlet

    Hi all,
    I have uploaded image in my web start application and now i want to send that image to my servlet. I have created URL connection and using output stream i am able to send data in String as well as numeric format but i have to send image also.
    please help.
    thanks in advance.

    I have done it. contact [email protected]

  • Ldap group lookups very slow

    We are currently testing Solaris 11 on one of our servers. We are encountering the problem that
    ldap group lookups are very slow. This didn't occur under Solaris 10. The ldap information is held
    in Active Directory with all unix information held in a relatively small separate branch, except for passwd information,
    which is held in the main very large part of AD (using the same user object for unix as used for the equivalent Windows user but
    with the added unix posixAccount attributes). What appears to be happening is that the first search is very
    quick when it accesses posixGroup information from the unix branch but it then tries to perform a memberOf
    search which must be using the passwd search base which then searches the whole of the AD and it is this
    part which is extremely slow. Is there any way of disabling the memberOf search ?
    The following snoop information is an example of the problem search ....
    LDAP: Operation *[APPL 3: Search Request]
    LDAP: [Base Object]
    LDAP: ou=uol,dc=livad,dc=liv,dc=ac,dc=
    LDAP: uk
    LDAP: [Scope]
    LDAP: wholeSubtree
    LDAP: [DerefAliases]
    LDAP: derefAlways
    LDAP: [SizeLimit]
    LDAP: [TimeLimit]
    LDAP: [TypesOnly]
    LDAP: Extensible Match *[9]
    LDAP: MatchingRule [1]
    LDAP: 1.2.840.113556.1.4.1941
    LDAP: Type [2]
    LDAP: memberOf
    LDAP: MatchValue [3]
    LDAP: CN=eme,OU=Group,OU=Unix,OU=UOL
    LDAP: ,DC=livad,DC=liv,DC=ac,DC=uk
    LDAP: dnAttributes [4]
    LDAP: *[Sequence]
    LDAP: [OctetString]
    LDAP: sAMAccountName
    LDAP: [OctetString]
    LDAP: objectClass
    LDAP: Controls List *[0]
    LDAP: *[Control]
    LDAP: [LDAP OID]
    LDAP: 1.2.840.113556.1.4.473
    LDAP: [Criticality]
    LDAP: [Control value]
    LDAP: *[Control]
    LDAP: [LDAP OID]
    LDAP: 2.16.840.1.113730.3.4.9
    LDAP: [Criticality]
    LDAP: [Control value]
    This is our ldap_client_file
    NS_LDAP_FILE_VERSION= 2.0
    NS_LDAP_AUTH= simple
    NS_LDAP_OBJECTCLASSMAP= shadow:shadowAccount=user
    NS_LDAP_OBJECTCLASSMAP= passwd:posixAccount=user
    NS_LDAP_OBJECTCLASSMAP= group:posixGroup=group
    NS_LDAP_SEARCH_BASEDN= ou=unix,ou=uol,dc=livad,dc=liv,dc=ac,dc=uk
    NS_LDAP_CREDENTIAL_LEVEL= proxy
    NS_LDAP_SERVICE_SEARCH_DESC= passwd:ou=uol,dc=livad,dc=liv,dc=ac,dc=uk?sub
    NS_LDAP_SERVICE_SEARCH_DESC= group:ou=Group,ou=unix,ou=uol,dc=livad,dc=liv,dc=ac,dc=uk?sub
    NS_LDAP_BIND_TIME= 5
    NS_LDAP_SEARCH_SCOPE= sub
    NS_LDAP_SERVERS= bhdc01.livad.liv.ac.uk
    NS_LDAP_ATTRIBUTEMAP= passwd:gecos=cn
    NS_LDAP_ATTRIBUTEMAP= passwd:uid=sAMAccountName
    NS_LDAP_ATTRIBUTEMAP= passwd:homedirectory=unixHomeDirectory
    NS_LDAP_ATTRIBUTEMAP= shadow:uid=sAMAccountName
    NS_LDAP_SEARCH_TIME= 8
    NS_LDAP_CACHETTL= 0

    Are you testing on the same machine?? or you're testing the SQL*Plus on the database machine directly??
    Tony

  • Backup to the remote stages is very slow

    Hello!
    I am facing with the following problem for DB Backup to the remote stage.
    If I plan the ALL ONLINE-Backup, then the backup is takes very slow, backups two or more files and aborts.
    I have checked the appropriate  BTC WP and saw that the WP is holding/waitng.
    The reason is RFC.
    How can the problem be solved?
    Thank you very much!
    regards
    Thom

    Without logs of the backups we can just guess, what is wrong.
    Post the log of a failed remote backup here and let´s see then.
    Markus

Maybe you are looking for

  • How Can You Change the Look and Feel of Charts in OBIEE 11g

    How Can You Change the Look and Feel of Charts in OBIEE 11g? Edited by: user11973122 on Jul 18, 2012 12:13 AM

  • Unable to send or receive sms from non iPhone users

    I am unable to send or receive text messages from non iPhone users. I can get and send MMS but no SMS... I have an iPhone 6 +

  • My iphone5 won't turn on!

    My iphone5 won't turn on!? Do I need to leave it to charge for 12 hours?! It ran out of batter a couple of days ago but I had no charger with me at the time as I was away from home and forgot my charger, so I had to wait until I was home (today) to c

  • My Original Thread of Dyanamic Array

    Hello Everyone, I can't give any size to the array because this array will be increased during run time.The entries are entered by the User into the form(or frame) will be inserted into the database. Then, all the records will be fetched from the dat

  • Need page numbers starting with chapter numbers.

    Hello  every one, I'm in the work of making  user manual with different autonumber paragraph headings.(eg.1.xyz,2.abc,......).I have applied a running head header and has to apply a footer with page number in the format paragraph heading autonumber.