File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with AdviceClient

 
Veena Pointi
Ranch Hand
Posts: 442
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get following exception when I run AdviceClient.JDKBridge class is suppose to exists in j2ee.jar.But J2EE.jar contains com/sun/corba/ee/inte
rnal/util/JDKBridge not com/sun/corba/se/internal/util/JDKBridge.

Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/inte
rnal/util/JDKBridge
at com.sun.corba.ee.internal.core.IOR$LocalCodeBaseSingletonHolder.<clin
it>(IOR.java:79)
at com.sun.corba.ee.internal.core.IOR.<init>(IOR.java:218)
at com.sun.corba.ee.internal.iiop.messages.LocateReplyMessage_1_2.read(L
ocateReplyMessage_1_2.java:137)
at com.sun.corba.ee.internal.iiop.IIOPInputStream.unmarshalHeader(IIOPIn
putStream.java:126)
at com.sun.corba.ee.internal.iiop.IIOPConnection.getResponse(IIOPConnect
ion.java:670)
at com.sun.corba.ee.internal.iiop.IIOPConnection.send(IIOPConnection.jav

How can I get through this problem?

Thanks
Veena
 
Veena Pointi
Ranch Hand
Posts: 442
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it! Worked after setting rt.jar into classpath where JDKBridge was there.I thought JDKBridge it is reffering to in the exception existed in J2EE.jar file which i had already set in classpath.

I think this will be helpfull for any newbies who is trying to run AdviceClient.
 
Richard Rex
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Veena Point,

I added rt.jar in the CLASSPATH and was successfully removed the JDKBridge error however, I got another error saying...

Exception in thread "main" java.lang.NoSuchMethodError: loadClass0 at com.sun.corba.se.internal.util.JDKClassLoader.specialLoadClass(Native Method)

What's this JDKClassLoader and how do I fix this?
 
shweta bulbule
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi even i m getting the same error
Exception in thread "main" java.lang.NoSuchMethodError: loadClass0
at com.sun.corba.se.internal.util.JDKClassLoader.specialLoadClass(Native
Method)

but no explanation is given by anyone on this

can anyone suggest what may be the solution?
 
Richard Rex
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi shweta bulbule,

I have already ran this program. Thanks to all!

I just repeated everything. Uninstalled everything from my pc. Started all over again, from installation, setting the JAVA_HOME, J2EE_HOME, CLASSPATH, and PATH, and following the steps in the HFEJB Book. No rt.jar in CLASSPATH. Just the j2ee.jar and it worked fine.

Maybe you should do the same. Best of luck!
 
Bharathi Kongara
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Veena Point:
Got it! Worked after setting rt.jar into classpath where JDKBridge was there.I thought JDKBridge it is reffering to in the exception existed in J2EE.jar file which i had already set in classpath.

I think this will be helpfull for any newbies who is trying to run AdviceClient.


It worked for me too ... thanks Veena for your advice!
 
Bharathi Kongara
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by shweta bulbule:
Hi even i m getting the same error
Exception in thread "main" java.lang.NoSuchMethodError: loadClass0
at com.sun.corba.se.internal.util.JDKClassLoader.specialLoadClass(Native
Method)

but no explanation is given by anyone on this

can anyone suggest what may be the solution?


Does anybody have solution to the quoted problem? I recently ended up formatting my system and I now have only J2EE 1.3 and J2SE 1.3 and the corresponding environment variables .... and I came across the above error ... adding rt.jar doesn't solve the above problem!
 
Rajan Murugan
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which jdks are there in your system currently apart from jdk 1.3
 
Bharathi Kongara
Ranch Hand
Posts: 56
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just have J2EE 1.3 and J2SE 1.3 in my computer right now, but I do have the latest version of JRE ... but that shouldn't be causing the above problem?!
 
Rajan Murugan
Ranch Hand
Posts: 182
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please check the path.

You need to have JAVA_HOME AND J2EE_HOME env variables declared.

which jre is it accessing at runtime?
[ November 23, 2006: Message edited by: Rajan Murugan ]
 
Amol Jadhav
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Me too faced the problem, The java.exe use to run the AdviceClient was from wrong path. when used correct java.exe it worked

Not working

java -classpath C:\j2sdkee1.3.1\lib\j2ee.jar;AdviceAppClient.jar;. AdviceClient

Working

C:\j2sdk1.4.2_10\bin\java -classpath C:\j2sdkee1.3.1\lib\j2ee.jar;AdviceAppClient.jar;. AdviceClient
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic