Help! I am a Natural Programmer who has recently had EntireX Java RPC tester installed on my PC. I usually write the “stub” that is called by the Java RPC application to extract data from the Adabas files and return it to the Java team… we have had a problem with some of the data not being returned once it gets back to the Java IDL… I write the data out to a file BEFORE returning through RPC and the data all looks fine… But what they get on their side is different. I am trying to CAPTURE the data in a text file once it is returned so I can store it for future comparison… As it is now, the RPC TESTER will show me the data in a window, but I want to CAPTURE it… Is this possible?
Thanks!
Dan Cantrell
Florida State College at Jacksonville
(Formally FCCJ - Florida Community College at Jacksonville)
I tried running the Tester in batch (hoping it somehow knew my “classpath” as a default)… no such luck. Then I took a wild-guess at the classpath by entering the name that was in the “Server:” window in th eRPC Tester- which was RPC/SRV3/CALLNAT
According to the link you sent me the command looks like:
java -classpath T -batch
My library is LIB1 and my program is PROG1 so my command looked like this:
I question that “T” that is stuck in the middle of the Library and the Program…? Is that the correct syntax? - I mean assuming I can figure out what the classpath is…
Thanks Again!
Dan Cantrell
Florida State College at Jacksonville
java.lang.NoClassDefFoundError: orioonwebTstaw30n3/class
Caused by: java.lang.ClassNotFoundException: orioonwebTstaw30n3.class
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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: orionwebTstaw30n3.class. Program will exit.
Exception in thread “main”
java.lang.NoClassDefFoundError: OrionwebTstaw30n3 (wrong name: staw30n3/OrionwebTstaw30n3)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: OrionwebTstaw30n3. Program will exit.
Exception in thread “main”
java.lang.NoClassDefFoundError: OrionwebTstaw30n3
Caused by: java.lang.ClassNotFoundException: OrionwebTstaw30n3
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 sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread “main”
I re-directed standard out using the normal >myfile.txt and errors using 2>myerrors.txt - but the subprogram has INPUT statements in it which I tried to redirect using <myinput.txt but it didn’t pick it up…
Oops - I was wrong - it’s not INPUT statements, it’s data in the PARAMETER DATA area of the subprogram… any way to fill in the data before the batch call? Or am I pushing my luck now?
I can always hard-code teh values for testing and then take the values out later - but it would be icing-on-the-cake to be able to feed the data to the subprogram as part of the batch-call…
Thanks for your help! We have been able to trace down the problem we had thanks to the tips you gave me…
One final question. When running java with the -batch option like we were doing are we actually running through RPC or through BATCH?
I guess the real question is "Is it running through the same process it would if we were running through the RPC Tester?