RMI & Web Start Client (ClassNotFound)

Hi,
I've been using RMI with a client application and it works find but now I have tried to run the same application via web start I'm getting RMI issues. I've fixed all sorts of other issues but Im stuck on the RMI one. I get a ClassNotFound exception when Register.lookup() is called.
The code in the client is :
Registry registry = LocateRegistry.getRegistry("localhost", 1234);
// lookup the factory
universe = (IMyFactory) registry.lookup("rmi:///MyFactory");
The exception is thrown on the lookup. It can't find IMyFactory_stub. If I put the following line in after the Register creation :
register.list()
and dump the contents it has one entry
rmi:///MyFactory
I take it this implies that the web start client has talked to the server to get hold of the classes that have been bound. This appears to match exactly what I am looking up. So its not getting the interface file ! Im know RMI expert to why would this be the case with Web Start but not standalone ?
The MyFactory class is contained in a jar file declared in the jnlp file and available to the client. The IMyFactory and MyFactory_stub classes are in a jar file available to the server. MyFactory implements IMyFactory which is a Remote.
Oh also the jnlp file has all permisions set.
As I say it works fine as a stand alone client.
Any idea's what this could be ? Some setting unique to web start, different format for the url required (I tried using Naming.lookup() but this failed also).
The app seems to hang for a few seconds before the exceptions is thrown. If I give it a url to the wrong box it blows up str8 away.
The exception is :
java.rmi.UnmarshalException: error unmarshalling return; nested
exception is:
java.lang.ClassNotFoundException: com.me.MyFactory_Stub
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at com.me.getMyServer(getMyServer.java:116)
at com.me.main(agentsupport.java:6825)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.me.MyFactory_Stub
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at sun.rmi.server.LoaderHandler.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader$2.loadClass(Unknown Source)
at java.rmi.server.RMIClassLoader.loadClass(Unknown Source)
at sun.rmi.server.MarshalInputStream.resolveClass(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
... 21 more
Thanks for any help, I'm out of idea's and totally stuck.
Steve

Hi Kal,
since we're currently evaluating the software and haven't acquired a license, we cannot contact support.
I only need to know if this is a solved bug or not. Does it have to do with the classloading process (I cannot think of anything else)?
Thank you again very very much!
Cheers,
Paul.

Similar Messages

  • Web Start client for two Web Services

    Hello.
    I wrote a client application that uses two different web services.
    Both web services are created using Basic Authentication. They have different user_names and passwords, but must be deployed on the same application server. I must invoked methods of these web services one after another.The problem occures when I invokes mehods of second web service. No matter which of service would be first or second. The problem occurs on second calling. I got this exception:
    EXCEPTION: java.rmi.RemoteException: HTTP Status-Code 403: Access to the requested resource has been denied; nested exception is:
         HTTP Status-Code 403: Access to the requested resource has been denied
         at com.softlets.insurelet.security.InsureletSecurityServiceSEI_Stub.login(InsureletSecurityServiceSEI_Stub.java:89)
         at com.softlets.insurelet.test.TestRefundPolicy.main(TestRefundPolicy.java:61)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    IMPORTANT: Everything worked fine until I started to install this application using Java Web Start.
    MY ASSUMPTION: It's likely to me that web start executes my application in some environment where it caches the first web service's username and password and applies it to the second web service. Because, if I run both web services on my local machine and set ENDPOINT_ADDRESS_PROPERTY to different values (first - localhost:8080, second - 192.168.0.21:8080) everything works fine.
    CODE FRAGMENT:
    public static void main(String[] args) {
    try {          
    String user = "test"; String pass ="test";
    String host = "http://192.168.0.21:8080/insurelet-p/insurelet_p";
    Stub stub = (Stub)(new Insurelet_policies_Impl().getInsureletPoliciesServiceSEIPort()); stub1._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, host);
    stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, user);
    stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, pass);
    InsureletPoliciesServiceSEI ws = (InsureletPoliciesServiceSEI)stub;
    String officeid = "test1"; String operatorid = "test2"; String mct = "1";
    // FIRST WEB SERVICE CALLING
    boolean result = ws.makeRefund(officeid, operatorid, mct);
    String suser = "test"; String spass ="test";
    String shost = "http://192.168.0.21:8080/insurelet-s/insurelet_s";
    Stub stub1 = (Stub)(new Insurelet_security_Impl()).getInsureletSecurityServiceSEIPort();
    stub1._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY, suser);
    stub1._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY, spass);
    stub1._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, shost);
    InsureletSecurityServiceSEI ws1 = (InsureletSecurityServiceSEI)stub1;
    // SECOND WEB SERVICE CALLING
    OperatorTO to = ws1.login("softlets", "admin", "admin"); // EXCEPTION
    ENVIRONMENT: Both web services are deployed in a single enterprise application on Sun Java System Application Server 8.1.
    Java version: 1.5..0_02

    In case anyone's search leads them here, I've posted the solution at:
    *[http://www.pby.com/general.nsf/webarticles/dominowebservice01]*
    It is an exhaustive article (not "Hello World"!) that goes through several versions of the web service and client - hopefully explaining all* pieces of the puzzle:
    ~ web service code,
    ~ WSDLs
    ~ schema
    ~ thoroughly-documented clients that do and do not use JAXB
    ~ ... that use generated artifacts
    ~ ... that customize existing POJOs
    ~ the SOAP messages generated in each direction
    ~ the necessary JAXB annotations
    ~ explanations of how the code works
    ~ explanations of how namespaces affect the code
    ~ on and on and on...
    My constant goal was to write an uncomplicated solution that uses as few artifacts (two) and annotations as possible. The end result is a small, fast JAX-WS 2.0 client that uses JAXB to invoke and consume a secured Domino 7 (1.4.2 JVM + AXIS) web service, using RPC/literal SOAP messages.

  • How to get data passed back to server from Web Start client ?

    dear experts,
    my web application allows users to launch a web start window from the jsp page, after users enters some data in the web start page and press "OK", the data entered should be passed back server for process. i just have not much clue how to do this....
    thanks.

    Use the java networking library to send a request to a url that takes the arguments you want to pass in.
    Example:
    URL url = new URL("http://yourserver/yourhandler.do?arg1=foo&arg2=bar");
    HttpURLConnection conn = (HttpURLConnection) URL.openConnection(url);
    ... any output testing, etc...
    conn.disconnect();It's not the prettiest, but it ought to get the job done.
    You should probably (at least) use the BasicService to get the codebase back to the server that served up the jnlp file.
    -Mike

  • Unable to launch java web start

    We have already devloped an application based on java web start. Most of the client machines, we try to install java web start and run the developed app, it works fine. For one of the clients machine, we have an issue with java web start itself, it does not startup and bring up the application manager. When you start java web start, it shows up the splash screen 'java web start 1.0.1' after some time, it vanishes and does not bring up the application manager. I have installed java web start 1.0.1_01 (build 04) installed on Windows 2000 Professional, by default that has installed JRE 1.3.1_04 also.
    We verified the system, all the files being existing under c:\program files\java web start dir. And the JRE is also installed fine.
    Couple of times we uninstalled, rebooted and installed.
    Infact, we have even verified the file types for html, htm, which was set to msoffice, and we have changed to internet explorer. For jnlp file type it was already set to javaws.exe.
    Can you please let me know what could be the problem.
    Regards,
    Nagarjuna Rao Chakka

    There's nothing to stop you installing 1.4 or even 1.4.2, it's the jnlp file that specifies which runtime version gets used to run your application - web start can be used to happily switch runtimes like this. You'll just need to have 1.4 and 1.3 installed on each machine. It's a good idea to upgrade the web start client as the old 1.0 version doesn't work at all well with Windows XP, it's structure of storing all the files in c:\program files works against the security restrictions built into XP.
    Incidentally the config file you were looking for in under c:\program files\javaws\javaws.cfg, but this is different in later versions.
    Your problem is most likely being caused by web start not being able to find the Java runtime version it was installed with, the client may well have installed a newer (or older) version of 1.3 which has broken the configuration.. another reason to upgrade is the old versions are very fragile in this respect; 1.4.2 can find installed runtimes far more dynamically. Fixing the config file above should get things working again, otherwise delete the .javaws directory in the user profile and re-start web start.
    1.4.2 is the best at finding runtimes, but is marred by problems with the integration dialogs, locale always reported as en_US and some strange new behaviour with classloaders and malfunctioning auto installers.. jws 1.2 that comes with jre 1.4.1_x is far more reliable.
    - Richard

  • Java Web Start aborts after upgrading to 10.4.4

    After the upgrade to 10.4.4 Java Web Start (and any clients) aborts as soon as I try to launch them.
    I have two clients (CGoban2 and Pokerpages Poker Client) I think uses Java Web Start and they worked fine under Mac OS X 10.4.3.
    Even if I try to start Java Web Start directly - it aborts immediatly.
    I have not had any other problems with the Mac OS X upgrade. And webpages using Java works fine.
    Below is a log (long!!!!) from the crash if anyone knows how to interpret it.
    Grateful for any tips.
    /Dagge
    Date/Time: 2006-01-17 17:36:02.738 +0100
    OS Version: 10.4.4 (Build 8G32)
    Report Version: 3
    Command: Java Web Start
    Path: /Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/Java Web Start
    Parent: WindowServer [105]
    Version: 10.0.2 (10.0.2)
    Build Version: 1
    Project Name: JavaDeploy
    Source Version: 670000
    PID: 2816
    Thread: 3
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNINVALIDADDRESS (0x0001) at 0x20000000
    Thread 0:
    0 libSystem.B.dylib 0x9000b208 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b15c mach_msg + 60
    2 com.apple.CoreFoundation 0x9075d114 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x9075ca18 CFRunLoopRunSpecific + 268
    4 com.apple.HIToolbox 0x9318e1e0 RunCurrentEventLoopInMode + 264
    5 com.apple.HIToolbox 0x9318d874 ReceiveNextEventCommon + 380
    6 com.apple.HIToolbox 0x9318d6e0 BlockUntilNextEventMatchingListInMode + 96
    7 com.apple.AppKit 0x9368b104 _DPSNextEvent + 384
    8 com.apple.AppKit 0x9368adc8 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
    9 com.apple.AppKit 0x9368730c -[NSApplication run] + 472
    10 com.apple.AppKit 0x93777e68 NSApplicationMain + 452
    11 com.apple.WebStart 0x000045c8 0x1000 + 13768
    12 com.apple.WebStart 0x00002a70 0x1000 + 6768
    13 com.apple.WebStart 0x00002910 0x1000 + 6416
    Thread 1:
    0 libSystem.B.dylib 0x9000b208 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b15c mach_msg + 60
    2 com.unsanity.ape 0xc0002afc _apeinternal + 3300 (icplusplus.c:28)
    3 com.unsanity.ape 0xc0001910 _apeagent + 64 (icplusplus.c:28)
    4 libSystem.B.dylib 0x9002b200 pthreadbody + 96
    Thread 2:
    0 libSystem.B.dylib 0x9000b208 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b15c mach_msg + 60
    2 ...lagutin.audio_hijack.server 0x000ddc88 ahservloop + 88
    3 libSystem.B.dylib 0x9002b200 pthreadbody + 96
    Thread 3 Crashed:
    0 <<00000000>> 0x20000000 0 + 536870912
    1 libjvm.dylib 0x9641d600 jio_snprintf + 204952
    2 libjvm.dylib 0x9641d194 jio_snprintf + 203820
    3 libjvm.dylib 0x96414088 jio_snprintf + 166688
    4 libjvm.dylib 0x96413248 jio_snprintf + 163040
    5 libjvm.dylib 0x96412dc4 jio_snprintf + 161884
    6 libjvm.dylib 0x96412b48 jio_snprintf + 161248
    7 libjvm.dylib 0x964121a0 jio_snprintf + 158776
    8 libjvm.dylib 0x9641213c jio_snprintf + 158676
    9 libjvm.dylib 0x96408754 jio_snprintf + 119276
    10 libjvm.dylib 0x9640828c jio_snprintf + 118052
    11 libjvm.dylib 0x963e1f18 operator new(unsigned long) + 8072
    12 libjvm.dylib 0x963da23c JNICreateJavaVMImpl + 1584
    13 libjvm.dylib 0x963d9cc0 JNICreateJavaVMImpl + 180
    14 ...ple.JavaApplicationLauncher 0x94ff2260 startJavaApplication + 336
    15 com.apple.WebStart 0x0000a720 0x1000 + 38688
    16 com.apple.Foundation 0x928e66d4 forkThreadForFunction + 108
    17 libSystem.B.dylib 0x9002b200 pthreadbody + 96
    Thread 4:
    0 libSystem.B.dylib 0x9000b208 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000b15c mach_msg + 60
    2 libjvm.dylib 0x963e1d2c operator new(unsigned long) + 7580
    3 libjvm.dylib 0x963e1cc0 operator new(unsigned long) + 7472
    4 libjvm.dylib 0x963e1c44 operator new(unsigned long) + 7348
    5 libSystem.B.dylib 0x9002b200 pthreadbody + 96
    Thread 3 crashed with PPC Thread State 64:
    srr0: 0x0000000020000000 srr1: 0x000000004000d030 vrsave: 0x0000000000000000
    cr: 0x24004222 xer: 0x0000000000000004 lr: 0x0000000096413dc0 ctr: 0x0000000020000000
    r0: 0x0000000000000112 r1: 0x00000000f0182450 r2: 0x000000006e800230 r3: 0x000000006e800238
    r4: 0x0000000000000000 r5: 0x00000000a63efce8 r6: 0x00000000036ffef5 r7: 0x000000000000df45
    r8: 0x0000000001be8a8b r9: 0x00000000000d150f r10: 0x0000000001b1757c r11: 0x000000000362eaf8
    r12: 0x0000000020000000 r13: 0x0000000000000000 r14: 0x0000000000000000 r15: 0x00000000a63d82e4
    r16: 0x00000000a63db08c r17: 0x00000000a63e82e4 r18: 0x0000000000000000 r19: 0x0000000000000000
    r20: 0x0000000000000000 r21: 0x00000000f01827b0 r22: 0x00000000a63e2df8 r23: 0x0000000000000000
    r24: 0x0000000000000000 r25: 0x0000000004501090 r26: 0x0000000000000000 r27: 0x000000006e0000e0
    r28: 0x0000000000000000 r29: 0x000000006e0000e0 r30: 0x0000000004504a40 r31: 0x0000000096413cbc
    Binary Images Description:
    0x1000 - 0xcfff com.apple.WebStart 10.0.2 /Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/Java Web Start
    0xd9000 - 0xe0fff alexlagutin.audiohijack.server 1.3.1 /Library/Application Enhancers/Instant Hijack Server.ape/Contents/MacOS/Instant Hijack Server
    0x25d000 - 0x25efff com.apple.yourcocoabundle 1.0 /Users/dagge/Library/InputManagers/SparkPlug/SparkPlugInputManager.bundle/Conte nts/MacOS/SparkPlugInputManager
    0x262000 - 0x264fff com.pozytron.PlaintextPaste 0.2 /Users/dagge/Library/SparkPlugins/PlaintextPaste.bundle/Contents/MacOS/Plaintex tPaste
    0x268000 - 0x268fff org.xlife.InquisitorLoader 1.0 /Users/dagge/Library/InputManagers/Inquisitor/Inquisitor.bundle/Contents/MacOS/ Inquisitor
    0x8fe00000 - 0x8fe54fff dyld 44.2 /usr/lib/dyld
    0x90000000 - 0x901b3fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x9020b000 - 0x9020ffff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x90211000 - 0x90264fff com.apple.CoreText 1.0.1 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90291000 - 0x90342fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90371000 - 0x906aefff com.apple.CoreGraphics 1.256.30 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x9073a000 - 0x90813fff com.apple.CoreFoundation 6.4.4 (368.25) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x9085c000 - 0x9085cfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x9085e000 - 0x90960fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x909ba000 - 0x90a3efff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90a68000 - 0x90ad6fff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90aed000 - 0x90afffff libauto.dylib /usr/lib/libauto.dylib
    0x90b06000 - 0x90ddefff com.apple.CoreServices.CarbonCore 681.3 (671.2) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90e44000 - 0x90ec4fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90f0e000 - 0x90f4ffff com.apple.CFNetwork 10.4.4 (129.9) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x90f64000 - 0x90f7cfff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x90f8c000 - 0x9100dfff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x91053000 - 0x9107dfff com.apple.Metadata 10.4.4 (121.34) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x9108e000 - 0x9109cfff libz.1.dylib /usr/lib/libz.1.dylib
    0x9109f000 - 0x91262fff com.apple.security 4.3 (25966) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x91365000 - 0x9136efff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x91375000 - 0x9139cfff com.apple.SystemConfiguration 1.8.2 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x913af000 - 0x913b7fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x913bc000 - 0x913dcfff libmx.A.dylib /usr/lib/libmx.A.dylib
    0x913e2000 - 0x913eafff libbsm.dylib /usr/lib/libbsm.dylib
    0x913ee000 - 0x9146efff com.apple.audio.CoreAudio 3.0.2 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x914ad000 - 0x914adfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x914af000 - 0x914e7fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x91502000 - 0x915cffff com.apple.ColorSync 4.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x91624000 - 0x916b7fff com.apple.print.framework.PrintCore 4.3 (172.3) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x916fe000 - 0x917bbfff com.apple.QD 3.8.18 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x917f9000 - 0x91857fff com.apple.HIServices 1.5.1 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x91885000 - 0x918a9fff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x918bd000 - 0x918e2fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x918f5000 - 0x91937fff com.apple.LaunchServices 10.4.6 (168.3) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x91953000 - 0x91967fff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x91975000 - 0x919affff com.apple.ImageIO.framework 1.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x919c4000 - 0x91a8cfff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91ada000 - 0x91aeffff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91af4000 - 0x91b11fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91b16000 - 0x91b85fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91b9c000 - 0x91ba0fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91ba2000 - 0x91bd3fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91bd7000 - 0x91c1afff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91c21000 - 0x91c3afff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91c3f000 - 0x91c42fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91c44000 - 0x91c44fff com.apple.Accelerate 1.1.1 (Accelerate 1.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91c46000 - 0x91d30fff com.apple.vImage 2.0 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91d38000 - 0x91d57fff com.apple.Accelerate.vecLib 3.1.1 (vecLib 3.1.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91dc3000 - 0x91e28fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91e32000 - 0x91ec4fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91ede000 - 0x9246efff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x924b6000 - 0x927c6fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x927f3000 - 0x9287ffff com.apple.DesktopServices 1.3.1 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x928c1000 - 0x92aebfff com.apple.Foundation 6.4.2 (567.21) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92c09000 - 0x92ce7fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x92d07000 - 0x92df5fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92e07000 - 0x92e25fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92e30000 - 0x92e8afff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92ea8000 - 0x92ea8fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92eaa000 - 0x92ebefff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92ed6000 - 0x92ee6fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92ef2000 - 0x92f07fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92f19000 - 0x92fa0fff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x92fb4000 - 0x92fbffff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x92fc9000 - 0x92ff6fff com.apple.openscripting 1.2.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x93010000 - 0x93020fff com.apple.print.framework.Print 5.0 (190.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x9302c000 - 0x93092fff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x930c3000 - 0x93115fff com.apple.NavigationServices 3.4.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x93141000 - 0x9315efff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x93170000 - 0x9317dfff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x93186000 - 0x93498fff com.apple.HIToolbox 1.4.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x935e4000 - 0x935f0fff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x93623000 - 0x93627fff com.apple.JavaVM 11.2.0 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM
    0x93681000 - 0x93681fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x93683000 - 0x93cb6fff com.apple.AppKit 6.4.4 (824.33) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x94043000 - 0x940b3fff com.apple.CoreData 80 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x940ec000 - 0x941b6fff com.apple.audio.toolbox.AudioToolbox 1.4.1 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x9420a000 - 0x9420afff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x9420c000 - 0x94384fff com.apple.QuartzCore 1.4.5 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x943ce000 - 0x9440bfff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x94413000 - 0x94463fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x94605000 - 0x94614fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x9461c000 - 0x94628fff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x9466e000 - 0x94686fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x9468d000 - 0x948f7fff com.apple.QuickTime 7.0.3 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x94ff0000 - 0x95006fff com.apple.JavaApplicationLauncher 11.2.0 /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Versions/A/ JavaApplicationLauncher
    0x963d9000 - 0x96620fff libjvm.dylib /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjvm.dyl ib
    0x98bd3000 - 0x98beefff libjava.jnilib /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libjava.jn ilib
    0x98bf8000 - 0x98c02fff libverify.dylib /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libverify. dylib
    0x9b3ff000 - 0x9b40afff libzip.jnilib /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Libraries/libzip.jni lib
    0xc0000000 - 0xc000ffff com.unsanity.ape 1.5.1 /Library/Frameworks/ApplicationEnhancer.framework/Versions/A/ApplicationEnhance r
    Model: PowerBook6,1, BootROM 4.5.5f4, 1 processors, PowerPC G4 (3.3), 867 MHz, 640 MB
    Graphics: NVIDIA GeForce4 MX, GeForce4 MX, AGP, 32 MB
    Memory Module: DIMM0/BUILT-IN, 128 MB, built-in, built-in
    Memory Module: DIMM1/J31, 512 MB, DDR SDRAM, PC2100U-25330
    AirPort: AirPort Extreme, 404.2 (3.90.34.0.p16)
    Modem: MicroDash, Euro, V.92, 1.0F, APPLE VERSION 2.6.6
    Bluetooth: Version 1.7.0f18, 2 service, 1 devices, 1 incoming serial ports
    Network Service: Internt modem, PPP (PPPSerial), modem
    Network Service: AirPort, AirPort, en1
    Parallel ATA Device: MATSHITADVD-R UJ-815,
    Parallel ATA Device: HTS548060M9AT00, 55.89 GB
    USB Device: USB Device, , Up to 12 Mb/sec, 500 mA
    USB Device: Bluetooth HCI, , Up to 12 Mb/sec, 500 mA
    USB Device: Hub, , Up to 12 Mb/sec, 500 mA
    USB Device: EPSON Scanner, EPSON, Up to 12 Mb/sec, 500 mA
    USB Device: Kensington PocketMouse Pro, Kensington, Up to 1.5 Mb/sec, 500 mA
    USB Device: iMic USB audio system, Griffin Technology, Inc, Up to 12 Mb/sec, 500 mA

    Well my problem has disappeared
    But I don't know why. This i what happened.
    Today my powerbook freezed and a pane/window saying
    "You must restart your computer......" in four different languages.
    I did so a couple of times but it always frooze and showed the same message just after the login window appered.
    Someone told me that it was a "kernel panic" and that I should remove any attached devices and remove battery and power cord for some seconds.
    And then it was possible to login in the system seems fine again. Then I accidently started one of my Java Web start clients and it worked. And I started the next - also OK.
    So I don't know what has happened but everythings seems ok now.

  • Java Web Start and J2EE

    Can I use Java Web Start to launch an Application Client that interacts (through JBoss and the Enterprise Java Beans) with an Oracle database located in a remote server? Or the application must be pure J2SE, without implementing remote Enterprise Java Beans interfaces?

    No, you can do exactly what you want to do, i've done exactly the same thing with a web start client, talking to EJB's running on the Oracle 9i AS server talking to an Oracle database. It's all good fun.

  • Web-Start Question

    Hi all,
    I am invoking my application by using Web start in JDK1.4, it throws the following exceptions and it is working fine with jdk1.3. Herewith I have included all trace outs which was thrown in logs.
    General Tab:-
    An error occurred while launching/running the application.
    Category: Download Error
    Unable to load resource:
    http:/sachin:9090/../classes/NmsClientClasses.jar
    Launch File Tab:-
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <jnlp codebase="http://sachin:9090" href="conf/WebNMS.jnlp">
    <information>
    <title>WMS</title>
    <vendor>Commuzzt Inc.</vendor>
    <homepage href="help/index.html"/>
    <description>WMS version1.3 - Web Start Client</description>
    <icon href="images/icon.jpg"/>
    <offline-allowed/>
    </information>
    <resources>
    <j2se version="1.4+" initial-heap-size="100M" max-heap-size="200M"/>
    <jar href="../classes/NmsClientClasses.jar"/>
    </resources>
    <application-desc
    main-class="WMSClient">
    <argument>localhost</argument>
    <argument>9090</argument>
    </application-desc>
    </jnlp>
    Exception Tab:-
    JNLPException[category: Download Error : Exception: java.io.IOException:
    Unable to create temp. file for:
    http://sachin:9090/../classes/NmsClientClasses.jar : LaunchDesc: null ]
    at
    com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(Unknown
    Source)
    at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
    at com.sun.javaws.cache.DownloadProtocol.getResource(Unknown Source)
    at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
    at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
    at com.sun.javaws.Launcher.downloadResources(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    Wrapped Exception Tab:-
    java.io.IOException: Unable to create temp. file for:
    http://sachin:9090/../classes/NmsClientClasses.jar
    at com.sun.javaws.cache.DiskCache.getTempCacheFile(Unknown Source)
    at
    com.sun.javaws.cache.DownloadProtocol$RetrieveAction.actionDownload(Unknown
    Source)
    at com.sun.javaws.cache.DownloadProtocol.doDownload(Unknown Source)
    at com.sun.javaws.cache.DownloadProtocol.getResource(Unknown Source)
    at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
    at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
    at com.sun.javaws.Launcher.downloadResources(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    Kindly help me,
    Thanks,
    Best Regards,
    NMS

    java.io.IOException: Unable to create temp. file for:http://sachin:9090/../classes/NmsClientClasses.jar
    This is the problem you have to work on. Sorry I don't know the solution, or even whether the problem exists on the server or the client, but that's the root cause of the exception.

  • Using JNLP/Web Start to deploy console only applications (no gui)

    I have scanned the forums but have not found a good answer to this... I am looking to leverage the JNLP technology to help manage the deployment of server-based applications on thousands of servers.
    These servers do not have a Console (they are linux) - no X Windows, nothing. The Java program that I wish to deploy is basically a background server process.
    This program that I am deploying to thousands of locations has many Jar dependencies. It would be really great to use JNLP to deploy this app. So that on each server I could simply run "javaws http://someurl/app.jnlp" to execute the program. Unfortunately, I have found that the Java Web Start client requires a GUI - so that it can display download progress and the etc. The -Xnosplash and -silent options do not work for this.
    Otherwise, I have to manage and deploy all of my Jars on each my thousands of servers - what a pain!
    I have looked at NetX and OpenJNLP but these projects seem dead and out-dated.
    Any ideas?

    At this time all javaws applications are swing applications needing swing for the download dialog, error dialogs, and any security dialogs.
    There are RFEs filed to add support for non-gui apps, that may be implementated in JDK7
    /Andy

  • 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.

  • Java 7 Update 25 Client App Downloaded From Web Start Can't Connect Out

    Since Java 7 update 25, I have an issue where my client Java application, downloaded with Java Web Start, can no longer connect to a remote server. (The client uses remote EJB to connect various servers). The issue I believe is that the client application is being blocked by security features of this Java update.
    A very quick (random?) fix around the problem is to show the Java console. If the Java console is enabled to be shown, the client application can connect fine.
    Although showing the Java console is a quick fix, it's not one we particularly want to keep asking customers to do. I understand we may need to define the Codebase and Permissions in the manifest file as described here: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/no_redeploy.html..
    I have defined the Codebase and Permissions in the manifest of the client jar's we build ourselves. I believe this has worked as we no longer see "Missing Codebase manifest attribute for...." in the console for our own jar's. However, the application still cannot connect out. I'm stumbling around somewhat on this issue and trying various things in an attempt to get this to work. Assuming i'm on the right lines and the problem is some jars missing the Codebase and Permissions in their manifests, my question is, should I and how can I modify the manifest of 3rd party jars to include this information? For example, the client app requires many JBoss and EJB client jars - do I need to somehow modify the manifest of all of these jars to include the codebase and permissions?
    It goes without saying that all the jars are signed - the application would not start at all if there was a problem here. So the application starts with it's login box - but it simply cannot connect out to the servers.
    If anybody can offer any help on this issue i'd be most grateful. As a quick fix, is there a way to get this to work via adjusting Control Panel settings (other than showing the console)? I have played with a lot but not stumbled on a way to get this to work other than showing the console, although ideally i'd like to be able to get this to work without having to do any tweaks to clients Java control panel.

    We're also seeing this. The 7u25 update completely derailed a trial program we were conducting, because no one could log in to our application via WebStart once they upgraded Java.
    Our login code crashes because SwingUtilities.isEventDispatchThread() throws an NPE.
    We tried theskad81's fix but it didn't work for us. We worked around the issue by hosting u21 on our site and pointing our WebStart page there instead of at Oracle's update site.
    *** ORACLE: PLEASE FIX THIS ISSUE USING APPLE'S FIX (mentioned in an earlier post - see above) ***
    Slightly edited stack trace:
         javax.security.auth.login.LoginException: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.isDispatchThread(Unknown Source)
        at javax.swing.SwingUtilities.isEventDispatchThread(Unknown Source)
        at com.abc.ConsoleAuthUI.handle(ConsoleAuthUI.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
        at com.sun.proxy.$Proxy1.handle(Unknown Source)
        at com.abc.ms.rmi.MsLogin$1.handle(MsLogin.java:100)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(Unknown Source)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(Unknown Source)
        at com.abc.ms.auth.abcLoginModule.login(abcLoginModule.java:35)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.access$000(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
        at javax.security.auth.login.LoginContext.login(Unknown Source)
        at com.abc.ms.rmi.MsLogin.authenticate(MsLogin.java:111)
        at com.abc.ms.rmi.MsLogin.login(MsLogin.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at javax.security.auth.login.LoginContext.invoke(Unknown Source)
        at javax.security.auth.login.LoginContext.access$000(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at javax.security.auth.login.LoginContext$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.login.LoginContext.invokePriv(Unknown Source)
        at javax.security.auth.login.LoginContext.login(Unknown Source)
        at com.abc.ms.rmi.MsLogin.authenticate(MsLogin.java:111)
        at com.abc.ms.rmi.MsLogin.login(MsLogin.java:92)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at sun.rmi.transport.Transport$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
        at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
        at sun.rmi.server.UnicastRef.invoke(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
        at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
        at com.sun.proxy.$Proxy0.login(Unknown Source)
        at com.abc.abc.ui.console.Main.attemptLogin(Main.java:488)
        at com.abc.abc.ui.console.LoginDialog$7.run(LoginDialog.java:182)
        at com.abc.util.GrayTimer$GrayTimerTaskWrapper.run(GrayTimer.java:84)
        at java.util.TimerThread.mainLoop(Unknown Source)
        at java.util.TimerThread.run(Unknown Source)

  • Java Web Start and RMI

    Has anyone developed RMI with Java Web Start? If yes, show me how it works
    Thanks
    nton

    As you know, policy file is considered a resource in JAR file
    not a local machine one.
    How do you get policyfile to run application
    java -Djava.security.policy=<pathtopolicyfile> Client
    How do you handle the run above in jnlp file

  • RMI over SSL under Web Start can't find trusted certificate

    I have implemented RMI over SSL to get a Java EJB Client application talking to a JRun server over SSL. It works fine from the command line, but when I try to run it as a Web Start application, I get
    java.security.cert.CertificateException: Couldn't find trusted certificate
    (More complete stack trace below)
    I am using a test certificate, not one from a bona fide CA.
    I have tried putting the key store file in one of the jars used by the application, and adding:
    <argument>-Djavax.net.ssl.trustStore=jssecacerts</argument>
    and
    <argument>-Djavax.net.ssl.trustStore=jar:http://ip/app/xxx/lib/JarWithCacs.jar!/jssecacerts</argument>
    to no avail.
    If I copy the jssecacerts to Web Start's jre/lib/security directory, it works fine.
    I have seen other postings that say to use keytool to update the JRE used by Web Start, but that kind of defeats the purpose of Web Start: zero admin client. I can't touch each user's machine.
    I have seen other posts saying to implement a more relaxed trust manager, but that doesn't seem right either.
    I am using JDK 1.4.1_02b6 on Win2k. This should be irrelevant: JRun 4 sp1a.
    Is there a way to specify the jssecacerts file in the jnlp file so Web Start will recognize it?
    Thanks for any help,
    John

    I think I have an answer:
    1) Package the truststore file in the client JAR file
    2) Add code to the client to copy the truststore from the JAR file to the client hard drive
    3) Add code to the client to set the truststore properties to refer to the file on the client hard drive
    <<code>>
    private void setupTrustStore() {
    try {
    // save truststore file to local disk
    File homeDir = new File(System.getProperty("user.home"));
    File trustStoreFile = new File(homeDir, "mytruststore");
    URL url =
    this.getClass().getClassLoader().getResource("mytruststore");
    BufferedInputStream in =
    new BufferedInputStream(url.openStream());
    BufferedOutputStream out =
    new BufferedOutputStream(new FileOutputStream(trustStoreFile));
    while(true) {
    int data = in.read();
    if(data < 0) break;
    out.write(data);
    in.close();
    out.flush();
    out.close();
    // set truststore properties
    System.setProperty("javax.net.ssl.trustStore",
    trustStoreFile.getPath());
    System.setProperty("javax.net.ssl.trustStorePassword", "mypasswd");
    } catch(Exception e) {
    e.printStackTrace();
    }

  • RMI,Servlets and Java Web Start

    I am a new developer working on a java application. My java GUI will access one server where a user will have an account. This server will store data, execute programs and access other servers for information. I have completed the GUI and I am beginning to build the client-server communication with RMI. There appear to be several tools for doing client-server communication, and while I have read much, I don't understand which is the best to explore. For applets I have read that a good method to use is servlets with RMI. But is this also true for a stand-alone application? If not, what is the best/preferred method? What if I choose to use Java Web Start (which I have not read up on, yet) will the best method of client-server communication change?
    Thanks in advance, shawn

    It depends on your budget too. To me the optimim way to communicate is to use SERVLET/JSP combination for client/server communication.

  • Can a Web Start application run on client without write permission?

    Hello,
    we have a customer who operates a large number of Windows clients with an installed Java applications on it. The installation can only be done by an administrator, because the users have only write permission on temp directories and are not allowed to install something on their own. This of course leads to long rollout phases of new software releases.
    That's why we thought about deploying the application via Web Start, but we don't have experience in that field yet. But we assume that this would be the best way to go, since porting it to a browser-based web application is not easy due to the rich client gui.
    So my question is - can Web Start operate in such a scenario, where there is only write permission on temp directories for the user?
    By operating I mean the deployment and starting of the application - the application itself does not have to write anything on disk.
    Thanks for any help,
    regards, Geziefer

    ..the users have only write permission on temp directories ..Can the location of the Java cache be set to those temp directories by the administrator?

  • Can Web Start call earlier installed versions on client machine?

    Can Web Start invoke earlier installed versions of the
    JRE on a client machine, without invoking a download?
    I ask because I have tried to so, unsuccessfully,
    using the versions attribute of the j2se element.
    In the usenet thread 'Jar test, with 1.4 VM?',
    Usenet Message ID:
    [email protected]
    http://groups.google.com/groups?selm=1170640609.025666.236030@s48g2000cws.googlegroups.com
    (follow the Google link at the top, to the thread)
    I was attempting to confirm that a Jar file I
    was deploying, was 1.4 compatible.
    The test failed, because despite that the (1)
    user who attempted it had a working 1.4.2 install,
    the JNLP file (which declared version='1.4'),
    was prompting for a download. The user was
    not prepared to do that, understandably -
    that was exactly what I was trying to avoid
    doing, myself.
    Since then, I did further testing locally -
    trying to get a 1.5 launch when my current
    Java is 1.6 - I have a number of 1.5 versions.
    No request for '1.5', '1.5.0_08' or '1.5*' worked
    (OK - that last one was just a WAG*), every time
    I was prompted for download (which also failed,
    as an aside!).
    What am I getting wrong?
    Do I misunderstand the intent of the j2se element
    finding earlier verions? Is it only versions that
    were installed by web start?
    Is my understanding of how to use the version
    attribute, incorrect?
    * Where are the detailed instructions on the
    allowable forms of the version attribute?
    Neither the spec. nor developers guide seem
    to go into it in any detail. Some of the forms
    I have seen around the forum were (AFAIR)..
    <!-- Suggests 1.4 preferred? -->
    version="1.4 1.5+"
    <!-- Suggests 1.4 only? -->
    version="1.4"
    <!-- Suggests 1.4.2 preferred, if microversion
    13+ is found, else 1.5+? -->
    version="1.4.2_13+ 1.5+"FWIW - here is the JNLP I am currently using
    for the test, it is 'live and public'..
    <?xml version='1.0' encoding='UTF-8' ?>
    <!--
    If you see this message in your browser, it means the
    browser is not correctly set up to handle the JNLP file
    type, that launches Java applications within a secure
    environment, that cannot access your computer, or data.
    To get the browser (and PC) correctly set up to handle
    this type of file, visit ..
      http://www.java.com/
    ..to install the free, secure, Java Plug-In made
    by Sun Microsystems.
    -->
    <jnlp spec='1.0'
        codebase='http://www.athompson.info/family/'
        href='thompson-1.4.jnlp'>
      <information>
        <title>Thompson Family Genealogy</title>
        <vendor>Andrew Thompson</vendor>
        <description kind='one-line'>
          The ancestors of William Robert Ramshaw Thompson
        </description>
        <offline-allowed />
        <shortcut online='false'>
          <desktop/>
        </shortcut>
      </information>
      <resources>
        <j2se
          version="1.4"
          href="http://java.sun.com/products/autodl/j2se" />
        <jar href='genj-applet.jar' main='true' />
      </resources>
      <applet-desc
        main-class='genj.applet.Applet'
        name='genealogy'
        codebase='./index.html'
        width='300'
        height='170'
        >
          <param name='GEDCOM' value='thompson.ged' />
          <param name='ZIP' value='thompson.zip' />
      </applet-desc>
    </jnlp>

    Using your tips, I was able to find the 1.5
    JRE's listed in the Java control panel
    (of an XP Pro box) and see they had no
    checkmark for 'enabled'.
    After enabling 1.5.0_08, I was successfully
    able to launch the application (OK - applet
    really) using the 1.5.0_08 JRE.
    Thanks.
    As an aside, I had to specify '1.5.0_08'
    exactly to get that JRE. This is fine for
    local testing, but sometimes it is handy
    to ask others to help test via the web,
    and it would be nice if I could make it less
    specific (e.g. '1.5', to get any installed
    and enabled JRE that is a 1.5 variant)
    Do I understand wrong? Should that work,
    to specify '1.5' and get a '1.5.0_08' JRE that
    is installed and enabled?

Maybe you are looking for

  • Can anyone help with PaintComponent???

    Can someone give me a bit of backgroubd on the paintComponent method in a JPanel? I am under the impression that it is called by paint(), and that paint is only called when the screen needs to be refresed. However, in my program, paintComponenet is c

  • G/l upload

    how  can upload the initial balance in to particular a/c? plz give me t-code( non sap to sap)

  • Restart of failed jobs while export of a SAP instance

    Hi, I am performing export of a source system for unicode conversion. 8 parallel processes have been configured. 40 jobs completed and 3 jobs failed in export with an error "Unable to extend tempfile". Now that tempfile has been added. My questions i

  • Do we require OC4J started before running reports

    I noticed that starting and stopping OC4J path in Developer Forms and Reports is the same. For Forms I have to start the OC4J before running forms. Is that a requirement even for reports or it't not necessary. The reason I was curious is, because, if

  • Free Business Catalyst Developer Tips & Tricks / Screencasts

    Hey gang! I'm a front-end developer at Simpleflame and I've recently launched my own personal blog which will consist of Business Catalyst developer tips and tricks. The screencasts will be geared towards development mainly. Please swing by and check