Java.lang.ClassNotFoundException: long. JpdProxy call
I'm migrating a Weblogic Integration 8.5 sp5 application to Weblogic Integration 9.2 MP1. The application makes call to different JPDs through JPDProxies in java service class as follow:
WorkflowRequest wfAdmissibility = (WorkflowRequest)JpdProxyImpl.create(WorkflowRequest.class,serviceUri,null,Boolean.FALSE)
try {
wfAdmissibility.clientRequest(new Long(activity.getId()), command, new Long(userId));
WfData wfdata = wfAdmissibility.clientReturn();
return wfdata;
} catch (Exception e) {
log.info("exception", e);
throw new WorkflowException(e);
I deploy my application without problems on a cluster containing one member which is a managed server.
Everything works fine until the jpd is called at runtime. With some debug I identify that the error occurs when calling the clientRequest method in the preceding code exemple. I changed the parameters of the method from type long to Long but it's exactly the same error. I now think of a classLoader problem but I'm not familiar enough with those things. I really can't find solutions nor documentation (every doc about jpdProxy is for WLI 8.15 not 9.2).
Here is the beginning of the stack trace:
<Class=long not found using cl=weblogic.utils.classloaders.GenericClassLoader@de7687 finder: weblogic.utils.classloaders.CodeGenClassFinder@18eaa7c annotation: [email protected]
java.lang.ClassNotFoundException: long
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:286)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:158)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.><init>(AnnotatedClassV2.java:212)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.readAnnotatedClass(AnnotatedClassV2.java:52)
at com.bea.wli.knex.runtime.core.dispatcher.LoadContext.ensureAnnotatedClass(LoadContext.java:796)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.ensureAnnotatedClass(AnnotatedClassV2.java:37)
at com.bea.wli.transform.runtime.DtfDispClass.getDtfDispClass(DtfDispClass.java:130)
at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:78)
at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:55)
at com.bea.wli.bpm.runtime.JpdDispFile.createPrimaryDispClass(JpdDispFile.java:381)
at com.bea.wli.knex.runtime.core.dispatcher.DispFile.<init>(DispFile.java:154)
at com.bea.wli.knex.runtime.jws.dispatcher.JwsDispFile.<init>(JwsDispFile.java:24)
at com.bea.wli.bpm.runtime.JpdDispFile.<init>(JpdDispFile.java:107)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.loadDispFile(DispUnit.java:219)
at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.<init>(DispUnit.java:153)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:624)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1025)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:946)
at com.bea.wli.bpm.proxy.ProxyDispatcherBean.getDispFile(ProxyDispatcherBean.java:169)
at com.bea.wli.bpm.proxy.ProxyDispatcherBean.invoke(ProxyDispatcherBean.java:99)
at com.bea.wli.bpm.proxy.ProxyDispatcher_9it87k_EOImpl.invoke(ProxyDispatcher_9it87k_EOImpl.java:60)
at com.bea.wli.bpm.proxy.ProxyDispatcher_9it87k_EOImpl_WLSkel.invoke(Unknown Source)
I have some problums.....
Pls solve...
Java Plug-in 1.6.0_13
Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
load: class StreamingApplet.RTApplet.class not found.
java.lang.ClassNotFoundException: StreamingApplet.RTApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:https://strade.sharekhan.com/rmmweb/applet/StreamingApplet/RTApplet/class.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: StreamingApplet.RTApplet.class
Similar Messages
-
Java.lang.ClassNotFoundException: long
I'm migrating a Weblogic Integration 8.5 sp5 application to Weblogic Integration 9.2 MP1. The application makes call to different JPDs through JPDProxies in java service class as follow:
WorkflowRequest wfAdmissibility = (WorkflowRequest)JpdProxyImpl.create(WorkflowRequest.class,serviceUri,null,Boolean.FALSE)
try {
wfAdmissibility.clientRequest(new Long(activity.getId()), command, new Long(userId));
WfData wfdata = wfAdmissibility.clientReturn();
return wfdata;
} catch (Exception e) {
log.info("exception", e);
throw new WorkflowException(e);
I deploy my application without problems on a cluster containing one member which is a managed server.
Everything works fine until the jpd is called at runtime. With some debug I identify that the error occurs when calling the clientRequest method in the preceding code exemple. I changed the parameters of the method from type long to Long but it's exactly the same error. I now think of a classLoader problem but I'm not familiar enough with those things. I really can't find solutions nor documentation (every doc about jpdProxy is for WLI 8.15 not 9.2).
Here is the beginning of the stack trace:
<Class=long not found using cl=weblogic.utils.classloaders.GenericClassLoader@de7687 finder: weblogic.utils.classloaders.CodeGenClassFinder@18eaa7c annotation: [email protected]
java.lang.ClassNotFoundException: long
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:286)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:158)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.<init>(AnnotatedClassV2.java:212)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.readAnnotatedClass(AnnotatedClassV2.java:52)
at com.bea.wli.knex.runtime.core.dispatcher.LoadContext.ensureAnnotatedClass(LoadContext.java:796)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.ensureAnnotatedClass(AnnotatedClassV2.java:37)
at com.bea.wli.transform.runtime.DtfDispClass.getDtfDispClass(DtfDispClass.java:130)
at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:78)
at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:55)
at com.bea.wli.bpm.runtime.JpdDispFile.createPrimaryDispClass(JpdDispFile.java:381)
at com.bea.wli.knex.runtime.core.dispatcher.DispFile.<init>(DispFile.java:154)
at com.bea.wli.knex.runtime.jws.dispatcher.JwsDispFile.<init>(JwsDispFile.java:24)
at com.bea.wli.bpm.runtime.JpdDispFile.<init>(JpdDispFile.java:107)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.loadDispFile(DispUnit.java:219)
at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.<init>(DispUnit.java:153)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:624)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1025)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:946)
at com.bea.wli.bpm.proxy.ProxyDispatcherBean.getDispFile(ProxyDispatcherBean.java:169)
at com.bea.wli.bpm.proxy.ProxyDispatcherBean.invoke(ProxyDispatcherBean.java:99)
at com.bea.wli.bpm.proxy.ProxyDispatcher_9it87k_EOImpl.invoke(ProxyDispatcher_9it87k_EOImpl.java:60)
at com.bea.wli.bpm.proxy.ProxyDispatcher_9it87k_EOImpl_WLSkel.invoke(Unknown Source)I'm migrating a Weblogic Integration 8.5 sp5 application to Weblogic Integration 9.2 MP1. The application makes call to different JPDs through JPDProxies in java service class as follow:
WorkflowRequest wfAdmissibility = (WorkflowRequest)JpdProxyImpl.create(WorkflowRequest.class,serviceUri,null,Boolean.FALSE)
try {
wfAdmissibility.clientRequest(new Long(activity.getId()), command, new Long(userId));
WfData wfdata = wfAdmissibility.clientReturn();
return wfdata;
} catch (Exception e) {
log.info("exception", e);
throw new WorkflowException(e);
I deploy my application without problems on a cluster containing one member which is a managed server.
Everything works fine until the jpd is called at runtime. With some debug I identify that the error occurs when calling the clientRequest method in the preceding code exemple. I changed the parameters of the method from type long to Long but it's exactly the same error. I now think of a classLoader problem but I'm not familiar enough with those things. I really can't find solutions nor documentation (every doc about jpdProxy is for WLI 8.15 not 9.2).
Here is the beginning of the stack trace:
<Class=long not found using cl=weblogic.utils.classloaders.GenericClassLoader@de7687 finder: weblogic.utils.classloaders.CodeGenClassFinder@18eaa7c annotation: [email protected]
java.lang.ClassNotFoundException: long
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:286)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:158)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.<init>(AnnotatedClassV2.java:212)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.readAnnotatedClass(AnnotatedClassV2.java:52)
at com.bea.wli.knex.runtime.core.dispatcher.LoadContext.ensureAnnotatedClass(LoadContext.java:796)
at com.bea.wli.knex.runtime.core.metadata.AnnotatedClassV2.ensureAnnotatedClass(AnnotatedClassV2.java:37)
at com.bea.wli.transform.runtime.DtfDispClass.getDtfDispClass(DtfDispClass.java:130)
at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:78)
at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:55)
at com.bea.wli.bpm.runtime.JpdDispFile.createPrimaryDispClass(JpdDispFile.java:381)
at com.bea.wli.knex.runtime.core.dispatcher.DispFile.<init>(DispFile.java:154)
at com.bea.wli.knex.runtime.jws.dispatcher.JwsDispFile.<init>(JwsDispFile.java:24)
at com.bea.wli.bpm.runtime.JpdDispFile.<init>(JpdDispFile.java:107)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.loadDispFile(DispUnit.java:219)
at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.<init>(DispUnit.java:153)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnit(DispCache.java:624)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1025)
at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:946)
at com.bea.wli.bpm.proxy.ProxyDispatcherBean.getDispFile(ProxyDispatcherBean.java:169)
at com.bea.wli.bpm.proxy.ProxyDispatcherBean.invoke(ProxyDispatcherBean.java:99)
at com.bea.wli.bpm.proxy.ProxyDispatcher_9it87k_EOImpl.invoke(ProxyDispatcher_9it87k_EOImpl.java:60)
at com.bea.wli.bpm.proxy.ProxyDispatcher_9it87k_EOImpl_WLSkel.invoke(Unknown Source) -
My web page uses a Java Applet to allow my visitors to replay chess games; the Chess Viewer Deluxe applet was written by Nikolai Pilafov some time ago and has been working properly for some time (until recently). I don't monitor this part of my site regularly so I am not sure when it began to fail. On his web site [http://chesstuff.blogspot.com/2008/11/chess-viewer-deluxe.html] he has a link to check LiveConnect object functionality (which fails for OBJECT tags). His recommendation is to "seek platform specific support which might be available from the JRE developers for your platform".
I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Until I checked the LiveConnect object functionality, I was unable to identify the source of the console error messages. This does seem to be the smoking gun.
Is Apple aware of this problem? Are these classes no longer supported? Has anyone else had this problem? You can attempt to recreate the problem locally by going to my web page: http://donsmallidge.com/DonSmallidgeChess.html
Thanks in advance for any help you can provide!
Abbreviated Java Console output:
Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
load: class ZeroApplet.class not found.
java.lang.ClassNotFoundException: ZeroApplet.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
at sun.applet.AppletPanel.run(AppletPanel.java:368)
at java.lang.Thread.run(Thread.java:680)
load: class JavaToJS.class not found.
java.lang.ClassNotFoundException: JavaToJS.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
at sun.applet.AppletPanel.run(AppletPanel.java:368)
at java.lang.Thread.run(Thread.java:680)I just went up to check the LiveConnect object functionality page AND IT WORKED THIS TIME! I must confess, this is very mysterious. I will do some more checking and reply here if I can determine why it is working now (and more importantly, why it didn't work before).
-
Problem using a jar file : java.lang.ClassNotFoundException: ApiConn
Hi everyone.
i am running a form that use a bean_area to call a jar.
but i am getting this error, thanks in advnce for any tip.
Java Plug-in 1.6.0_33
Using JRE version 1.6.0_33-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\user1
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
java.lang.ClassNotFoundException: ApiConn
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Dumping class loader cache...
Live entry: key=http://192.168.10.100:7778/forms/java/,frmall.jar,siberia_jpg.jar,ApiConn.jar,Hasher.jar,ReadCommand.jar,WriteCommand.jar,libAPI.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://192.168.10.100:7778/forms/java/-threadGroup,maxpri=4]
Done.
in my form i have created a bean_area and used as implementation class :ApiConn
in my formsweb.cfg i used this configuration: archive=frmall.jar,siberia_jpg.jar,ApiConn.jar,Hasher.jar,ReadCommand.jar,WriteCommand.jar,libAPI.jar
in my forms/java i have placed my jar files listed in the frmall.jar
i guess i am missing something but i dont know what it is.
here is my ApiConn.java from wich i generate my jar file:
package libAPI;
* This contains connection. Everything should be here,
* should operate with this class only
import java.io.*;
import java.net.*;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.logging.Level;
import java.util.logging.Logger;
* @author janisk
public class ApiConn extends Thread {
private Socket sock = null;
private DataOutputStream out = null;
private DataInputStream in = null;
private String ipAddress;
private int ipPort;
private boolean connected = false;
private String message = "Not connected";
private ReadCommand readCommand = null;
private WriteCommand writeCommand = null;
private Thread listener = null;
LinkedBlockingQueue queue = new LinkedBlockingQueue(40);
* Constructor of the connection class
* @param ipAddress - IP address of the router you want to conenct to
* @param ipPort - port used for connection, ROS default is 8728
public ApiConn(String ipAddress, int ipPort) {
this.ipAddress = ipAddress;
this.ipPort = ipPort;
this.setName("settings");
* State of connection
* @return - if connection is established to router it returns true.
public boolean isConnected() {
return connected;
public void disconnect() throws IOException{
listener.interrupt();
sock.close();
private void listen() {
if (this.isConnected()) {
if (readCommand == null) {
readCommand = new ReadCommand(in, queue);
listener = new Thread(readCommand);
listener.setDaemon(true);
listener.setName("listener");
listener.start();
* to get IP address of the connection. Reads data from socket created.
* @return InetAddress
public InetAddress getIpAddress() {
return sock == null ? null : sock.getInetAddress();
* returns ip address that socket is asociated with.
* @return InetAddress
public InetAddress getLocalIpAddress() {
return sock == null ? null : sock.getLocalAddress();
* Socket remote port number
* @return
public int getPort() {
return sock == null ? null : sock.getPort();
* return local prot used by socket
* @return
public int getLocalPort() {
return sock == null ? null : sock.getLocalPort();
* Returns status message set up bu class.
* @return
public String getMessage() {
return message;
* sets and exectues command (sends it to RouterOS host connected)
* @param s - command will be sent to RouterOS for example "/ip/address/print\n=follow="
* @return
public String sendCommand(String s) {
return writeCommand.setCommand(s).runCommand();
* exeecutes already set command.
* @return returns status of the command sent
public String runCommand() {
return writeCommand.runCommand();
* Tries to fech data that is repllied to commands sent. It will wait till it can return something.
* @return returns data sent by RouterOS
* @throws java.lang.InterruptedException
public String getData() throws InterruptedException {
String s = (String) queue.take();
return s;
* returns command that is set at this moment. And will be exectued if runCommand is exectued.
* @return
public String getCommand() {
return writeCommand.getCommand();
* set up method that will log you in
* @param name - username of the user on the router
* @param password - password for the user
* @return
public String login(String name, char[] password) {
this.sendCommand("/login");
String s = "a";
try {
s = this.getData();
} catch (InterruptedException ex) {
Logger.getLogger(ApiConn.class.getName()).log(Level.SEVERE, null, ex);
return "failed read #1";
if (!s.contains("!trap") && s.length() > 4) {
String[] tmp = s.trim().split("\n");
if (tmp.length > 1) {
tmp = tmp[1].split("=ret=");
s = "";
String transition = tmp[tmp.length - 1];
String chal = "";
chal = Hasher.hexStrToStr("00") + new String(password) + Hasher.hexStrToStr(transition);
chal = Hasher.hashMD5(chal);
String m = "/login\n=name=" + name + "\n=response=00" + chal;
s = this.sendCommand(m);
try {
s = this.getData();
} catch (InterruptedException ex) {
Logger.getLogger(ApiConn.class.getName()).log(Level.SEVERE, null, ex);
return "failed read #2";
if (s.contains("!done")) {
if (!s.contains("!trap")) {
return "Login successful";
return "Login failed";
@Override
public void run() {
try {
InetAddress ia = InetAddress.getByName(ipAddress);
if (ia.isReachable(1000)) {
sock = new Socket(ipAddress, ipPort);
in = new DataInputStream(sock.getInputStream());
out = new DataOutputStream(sock.getOutputStream());
connected = true;
readCommand = new ReadCommand(in, queue);
writeCommand = new WriteCommand(out);
this.listen();
message = "Connected";
} else {
message = "Not reachable";
} catch (UnknownHostException ex) {
connected = false;
message = ex.getMessage();
ex.printStackTrace();
} catch (IOException ex) {
connected = false;
message = ex.getMessage();
ex.printStackTrace();
}I need your help again, i think this is a minor thing.
i have compiled the class file that i needed and i signed it too. but now it is giving me a new error and need your tip.
here is the java console loyout and my java file ((i think here is the problem in java file, something must be missing)).
thanks in advance for any help.
Java Plug-in 10.17.2.02
Using JRE version 1.7.0_17-b02 Java HotSpot(TM) Client VM
User home directory = C:\Users\Administrator
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
network: Connecting http://192.168.10.100:7778/forms/lservlet;jsessionid=c0a80a6430d6e191eded93774f2f8d1bed73056e66ef.e3mObhiMbxeKe34PahiKbx4Nbh90n6jAmljGr5XDqQLvpAe with proxy=DIRECT
security: Validate the certificate chain using CertPath API
security: The certificate hasnt been expired, no need to check timestamping info
security: Cannot find jurisdiction list file
security: The CRL support is disabled
security: The OCSP support is disabled
security: This OCSP End Entity validation is disabled
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment permanent certificate store
basic: updateValidationResultsForApplet update
cache: Mark prevalidated: http://192.168.10.100:7778/forms/java/ApiConn.jar true tm=1363335797289 cert=1371107987000
basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
java.lang.InstantiationException: oracle.forms.siberia.ApiConn
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
network: Connecting http://192.168.10.100:7778/forms/lservlet;jsessionid=c0a80a6430d6e191eded93774f2f8d1bed73056e66ef.e3mObhiMbxeKe34PahiKbx4Nbh90n6jAmljGr5XDqQLvpAe with proxy=DIRECT
Exception in thread "Forms-DialogThread2" java.lang.NullPointerException
at oracle.forms.handler.JavaContainer.onDestroy(Unknown Source)
at oracle.forms.engine.Runform.destroyHandlers(Unknown Source)
at oracle.forms.handler.DialogThread.doAlert(Unknown Source)
at oracle.forms.handler.DialogThread.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Dumping class loader cache...
Live entry: key=http://192.168.10.100:7778/forms/java/,frmall.jar,siberia_jpg.jar,ApiConn.jar,ConcealTextField.jar, refCount=1, threadGroup=sun.plugin2.applet.Applet2ThreadGroup[name=http://192.168.10.100:7778/forms/java/-threadGroup,maxpri=4]
Done.
here is my java file
* To change this template, choose Tools | Templates
* and open the template in the editor.
package oracle.forms.siberia;
* This contains connection. Everything should be here,
* should operate with this class only
import java.io.*;
import java.net.*;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.logging.Level;
import java.util.logging.Logger;
import oracle.forms.*;
* @author janisk
public class ApiConn extends Thread {
private Socket sock = null;
private DataOutputStream out = null;
private DataInputStream in = null;
private String ipAddress;
private int ipPort;
private boolean connected = false;
private String message = "Not connected";
private ReadCommand readCommand = null;
private WriteCommand writeCommand = null;
private Thread listener = null;
LinkedBlockingQueue queue = new LinkedBlockingQueue(40);
* Constructor of the connection class
* @param ipAddress - IP address of the router you want to conenct to
* @param ipPort - port used for connection, ROS default is 8728
public ApiConn(String ipAddress, int ipPort) {
this.ipAddress = ipAddress;
this.ipPort = ipPort;
this.setName("settings");
* State of connection
* @return - if connection is established to router it returns true.
public boolean isConnected() {
return connected;
public void disconnect() throws IOException{
listener.interrupt();
sock.close();
private void listen() {
if (this.isConnected()) {
if (readCommand == null) {
readCommand = new ReadCommand(in, queue);
listener = new Thread(readCommand);
listener.setDaemon(true);
listener.setName("listener");
listener.start();
* to get IP address of the connection. Reads data from socket created.
* @return InetAddress
public InetAddress getIpAddress() {
return sock == null ? null : sock.getInetAddress();
* returns ip address that socket is asociated with.
* @return InetAddress
public InetAddress getLocalIpAddress() {
return sock == null ? null : sock.getLocalAddress();
* Socket remote port number
* @return
public int getPort() {
return sock == null ? null : sock.getPort();
* return local prot used by socket
* @return
public int getLocalPort() {
return sock == null ? null : sock.getLocalPort();
* Returns status message set up bu class.
* @return
public String getMessage() {
return message;
* sets and exectues command (sends it to RouterOS host connected)
* @param s - command will be sent to RouterOS for example "/ip/address/print\n=follow="
* @return
public String sendCommand(String s) {
return writeCommand.setCommand(s).runCommand();
* exeecutes already set command.
* @return returns status of the command sent
public String runCommand() {
return writeCommand.runCommand();
* Tries to fech data that is repllied to commands sent. It will wait till it can return something.
* @return returns data sent by RouterOS
* @throws java.lang.InterruptedException
public String getData() throws InterruptedException {
String s = (String) queue.take();
return s;
* returns command that is set at this moment. And will be exectued if runCommand is exectued.
* @return
public String getCommand() {
return writeCommand.getCommand();
* set up method that will log you in
* @param name - username of the user on the router
* @param password - password for the user
* @return
public String login(String name, char[] password) {
this.sendCommand("/login");
String s = "a";
try {
s = this.getData();
} catch (InterruptedException ex) {
Logger.getLogger(ApiConn.class.getName()).log(Level.SEVERE, null, ex);
return "failed read #1";
if (!s.contains("!trap") && s.length() > 4) {
String[] tmp = s.trim().split("\n");
if (tmp.length > 1) {
tmp = tmp[1].split("=ret=");
s = "";
String transition = tmp[tmp.length - 1];
String chal = "";
chal = Hasher.hexStrToStr("00") + new String(password) + Hasher.hexStrToStr(transition);
chal = Hasher.hashMD5(chal);
String m = "/login\n=name=" + name + "\n=response=00" + chal;
s = this.sendCommand(m);
try {
s = this.getData();
} catch (InterruptedException ex) {
Logger.getLogger(ApiConn.class.getName()).log(Level.SEVERE, null, ex);
return "failed read #2";
if (s.contains("!done")) {
if (!s.contains("!trap")) {
return "Login successful";
return "Login failed";
@Override
public void run() {
try {
InetAddress ia = InetAddress.getByName(ipAddress);
if (ia.isReachable(1000)) {
sock = new Socket(ipAddress, ipPort);
in = new DataInputStream(sock.getInputStream());
out = new DataOutputStream(sock.getOutputStream());
connected = true;
readCommand = new ReadCommand(in, queue);
writeCommand = new WriteCommand(out);
this.listen();
message = "Connected";
} else {
message = "Not reachable";
} catch (UnknownHostException ex) {
connected = false;
message = ex.getMessage();
ex.printStackTrace();
} catch (IOException ex) {
connected = false;
message = ex.getMessage();
ex.printStackTrace();
} -
Hi there Masters
I am new in Java and I would need your help please..
I am calling a function in Java passing 1 parameter and returning an XML back but at the point of execution I get an error below... At the end I have attached my java code...PLEASE HELP
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/XMLParseException
at oracle.xdb.XMLTypeFactory.create(XMLTypeFactory.java:78)
at oracle.sql.OPAQUE.toClass(OPAQUE.java:328)
at oracle.sql.OPAQUE.toJdbc(OPAQUE.java:278)
at oracle.sql.OPAQUE.toJdbc(OPAQUE.java:259)
at oracle.jdbc.driver.NamedTypeAccessor.getObject(NamedTypeAccessor.java:190)
at oracle.jdbc.driver.NamedTypeAccessor.getObject(NamedTypeAccessor.java:117)
at oracle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:1578)
at oracle.jdbc.driver.OracleCallableStatementWrapper.getObject(OracleCallableStatementWrapper.java:815)
at hospitaltool.RunAsnIn.runAsnIn(RunAsnIn.java:41)
at hospitaltool.HospitalTool.main(HospitalTool.java:38)
Caused by: java.lang.ClassNotFoundException: oracle.xml.parser.v2.XMLParseException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 10 more
=====================JAVA CODE====================================
package hospitaltool;
import java.sql.*;
import oracle.jdbc.*;
import oracle.xdb.XMLType;
public class RunAsnIn {
public void runAsnIn(Connection con, Boolean fam) throws SQLException {
System.out.println("RunASNIn Section");
String messStatus;
int numRecs = 0; //to hold the number of Records processed
int totRecs = 0; //to hold the number of total records processed
ResultSet rs = null;
Statement stmt = null;
stmt = con.createStatement();
//Delete all already caused messages
try {
rs = stmt.executeQuery("DELETE FROM asnin WHERE message_num IN(SELECT message_num FROM asnin MINUS SELECT message_num FROM hospital WHERE family = 'ASNIn')");
//Select all the uncaused messages
rs = stmt.executeQuery("SELECT message_num FROM hospital WHERE family = 'ASNIn' and rownum <= 1 MINUS SELECT message_num FROM asnin");
//Go thru the uncaused messages
} catch (Exception e) {
while (rs.next()) {
String messageNum = rs.getString(1);
// System.out.println("tableName=" + messageNum);
System.out.println(messageNum);
//Get the XMLDoc
XMLType xml = null;
//Get the XML Doc
CallableStatement cs1 = null;
//CallableStatement proc = con.prepareCall("? {call rmsauto.hospitaltool.getmessagedoc(?)}");
try {
cs1 = con.prepareCall("{? = call rmsauto.hospitaltool.getmessagedoc(?)}");
cs1.registerOutParameter(1, OracleTypes.OPAQUE, "SYS.XMLTYPE");
cs1.setString(2, messageNum);
cs1.execute();
} catch (Exception e) {
xml = (XMLType) cs1.getObject(1);
System.out.println(xml.getStringVal());
}I did google this and found that I needed a specific jar file called xmlparserv2.jar and I did download it and loaded it on as part of my Libraries the I got a new error... I am using NetBeans
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/binxml/BinXMLMetadataProvider
at oracle.xdb.XMLTypeFactory.create(XMLTypeFactory.java:78)
at oracle.sql.OPAQUE.toClass(OPAQUE.java:328)
at oracle.sql.OPAQUE.toJdbc(OPAQUE.java:278)
at oracle.sql.OPAQUE.toJdbc(OPAQUE.java:259)
at oracle.jdbc.driver.NamedTypeAccessor.getObject(NamedTypeAccessor.java:190)
at oracle.jdbc.driver.NamedTypeAccessor.getObject(NamedTypeAccessor.java:117)
at oracle.jdbc.driver.OracleCallableStatement.getObject(OracleCallableStatement.java:1578)
at oracle.jdbc.driver.OracleCallableStatementWrapper.getObject(OracleCallableStatementWrapper.java:815)
at hospitaltool.RunAsnIn.runAsnIn(RunAsnIn.java:41)
at hospitaltool.HospitalTool.main(HospitalTool.java:38)
Caused by: java.lang.ClassNotFoundException: oracle.xml.binxml.BinXMLMetadataProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 10 more
Java Result: 1 -
BarcodeEncoder class: java.lang.ClassNotFoundException
Hi, I am trying to add barcoding capability to our XML Publisher based report. We are trying to use Code128 barcode font and I have gone through the drill detailed out by Monsieur Dixter (thanks to him) on his blog and the XML Publisher documentation. Initially, I had been successful .. this was around 3 months ago in our DEV environment, when my template was under initial stages of development on the layout/format side. I was able to scan the barcode using a scanner. So, I froze the code and migrated the jar files to other test environments. But once the code got to other environments, the barcode stopped working. I suspected that one reason could be that the JVM couldnt find my class, which is what has been happenning. Even though I got the new instance bounced several times, the error keeps occuring and I am unable to scan the barcode.
Would appeciate if could provide me some pointers.
Thanks
Vikram
XMLP Version: 5.6.3
EBiz: 12.0.4
Below is the error .. The referred barcode class is placed in the custom java classpath, $XXMMX_TOP/java/classes configured by our DBA's. Other custom classes/jar placed in this classpath are being picked up, such those done for OA Framework customizations.
I have turned the XDO Debug ON and could extract the following log:-
===================================================================================
[070909_053458413][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): oa-date-validation: null
[070909_053458420][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): xdo.TemplateValidation: null
[070909_053458420][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): template validation is on
[070909_053458482][][STATEMENT] TemplateHelper.runProcessTemplate() called
[070909_053458482][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[070909_053458482][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[070909_053458482][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[070909_053458482][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[070909_053458482][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[070909_053458482][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[UTF8]
[070909_053458482][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
[070909_053458482][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[070909_053458488][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[070909_053458488][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=dd100-d.mmx.com)(PORT=1525)))(CONNECT_DATA=(SID=DEV)))]
[070909_053458488][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
[070909_053458488][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[070909_053458488][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
[070909_053458488][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
[070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[070909_053458488][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
[070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[070909_053458488][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[070909_053458489][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[070909_053458489][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[070909_053458489][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
[070909_053458489][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[070909_053458489][][EXCEPTION] [DEBUG] [APPLTMP]:[mmx/dev/applinst/apps/DEV_hpxda100/appltmp]
[070909_053458489][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
[070909_053458489][][EXCEPTION] [DEBUG] [java.protocol.handler.pkgs]:[oracle.apps.xdo.common.net.protocol]
[070909_053458489][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/IA64N]
[070909_053458489][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0.04 jinteg:07.27.06-16:18 IA64]
[070909_053458489][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
[070909_053458489][][EXCEPTION] [DEBUG] [dbcfile]:[mmx/dev/applinst/apps/DEV_hpxda100/appl/fnd/12.0.0/secure/DEV.dbc]
[070909_053458489][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Hewlett-Packard Company]
[070909_053458489][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://www.hp.com/go/Java]
[070909_053458489][][EXCEPTION] [DEBUG] [path.separator]:[:]
[070909_053458489][][EXCEPTION] [DEBUG] [APPLCSF]:[mmx/dev/applinst/apps/DEV_hpxda100/logs/appl/conc]
[070909_053458489][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
[070909_053458489][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[070909_053458489][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[unknown]
[070909_053458489][][EXCEPTION] [DEBUG] [user.dir]:[mmx/dev/applinst/apps/DEV_hpxda100/logs/appl/conc/log]
[070909_053458489][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[070909_053458490][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0.04-_27_jul_2006_10_52]
[070909_053458490][][EXCEPTION] [DEBUG] [CLIENT_PROCESSID]:[11676]
[070909_053458490][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
[070909_053458490][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]
[070909_053458490][][EXCEPTION] [DEBUG] [os.arch]:[IA64N]
[070909_053458490][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[mmx/dev/applinst/apps/DEV_hpxda100/appl/fnd/12.0.0/secure/DEV.dbc]
[070909_053458490][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[var/tmp/]
[070909_053458490][][EXCEPTION] [DEBUG] [line.separator]:[
[070909_053458490][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[070909_053458490][][EXCEPTION] [DEBUG] [os.name]:[HP-UX]
[070909_053458490][][EXCEPTION] [DEBUG] [XDO_TOP]:[mmx/prod/applbin/apps/apps_st/appl/xdo/12.0.0]
[070909_053458490][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[070909_053458490][][EXCEPTION] [DEBUG] [sun.java2d.fontpath]:[]
[070909_053458490][][EXCEPTION] [DEBUG] [cpid]:[262016]
[070909_053458490][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[8859_1]
[070909_053458490][][EXCEPTION] [DEBUG] [oracle.apps.fnd.common.Pool.leak.mode]:[stderr:off]
[070909_053458490][][EXCEPTION] [DEBUG] [java.library.path]:[/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/IA64N:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/IA64N/server:/mmx/dev/applbin/apps/tech_st/10.1.3/ap
psutil/jdk/jre/../lib/IA64N:/mmx/dev/applbin/apps/tech_st/10.1.3/lib32:/mmx/dev/applbin/apps/tech_st/10.1.3/lib:/mmx/dev/applbin/apps/apps_st/appl/cz/12.0.0/bin:/mmx/dev/applbin/apps/apps_st/appl/iby/12.0.0/bin:/mmx/dev/applbin/apps/app
s_st/appl/pon/12.0.0/bin:/mmx/dev/applbin/apps/tech_st/10.1.3/lib32:/mmx/dev/applbin/apps/tech_st/10.1.3/lib:/mmx/dev/applbin/apps/apps_st/appl/cz/12.0.0/bin:/mmx/dev/applbin/apps/apps_st/appl/iby/12.0.0/bin:/mmx/dev/applbin/apps/apps_s
t/appl/pon/12.0.0/bin:/usr/lib]
[070909_053458490][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[070909_053458490][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
[070909_053458491][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Server Compiler]
[070909_053458491][][EXCEPTION] [DEBUG] [os.version]:[B.11.23]
[070909_053458491][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
[070909_053458491][][EXCEPTION] [DEBUG] [user.home]:[home/appldev]
[070909_053458491][][EXCEPTION] [DEBUG] [user.timezone]:[America/New_York]
[070909_053458491][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.print.PSPrinterJob]
[070909_053458491][][EXCEPTION] [DEBUG] [file.encoding]:[8859_1]
[070909_053458491][][EXCEPTION] [DEBUG] [java.specification.version]:[1.5]
[070909_053458491][][EXCEPTION] [DEBUG] [CACHEMODE]:[DISTRIBUTED]
[070909_053458491][][EXCEPTION] [DEBUG] [user.name]:[appldev]
[070909_053458491][][EXCEPTION] [DEBUG] [java.class.path]:[/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/lib/dt.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/lib/tools.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/j
re/lib/rt.jar:/mmx/dev/applbin/apps/apps_st/comn/java/lib/appsborg2.zip:/mmx/dev/applbin/apps/apps_st/comn/java/classes]
[070909_053458491][][EXCEPTION] [DEBUG] [DBCFILE]:[mmx/dev/applinst/apps/DEV_hpxda100/appl/fnd/12.0.0/secure/DEV.dbc]
[070909_053458491][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
[070909_053458491][][EXCEPTION] [DEBUG] [java.home]:[mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre]
[070909_053458491][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
[070909_053458491][][EXCEPTION] [DEBUG] [user.language]:[en]
[070909_053458491][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
[070909_053458491][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
[070909_053458492][][EXCEPTION] [DEBUG] [logfile]:[mmx/dev/applinst/apps/DEV_hpxda100/logs/appl/conc/log/FNDOPP262016.txt]
[070909_053458492][][EXCEPTION] [DEBUG] [java.version]:[1.5.0.04]
[070909_053458492][][EXCEPTION] [DEBUG] [java.ext.dirs]:[mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/ext]
[070909_053458492][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/rt.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i18n.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/app
sutil/jdk/jre/lib/sunrsasign.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jsse.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/jce.jar:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/charsets.jar
:/mmx/dev/applbin/apps/tech_st/10.1.3/appsutil/jdk/jre/classes]
[070909_053458492][][EXCEPTION] [DEBUG] [java.vendor]:[Hewlett-Packard Co.]
[070909_053458492][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
[070909_053458492][][EXCEPTION] [DEBUG] [file.separator]:[]
[070909_053458492][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://www.hp.com/go/Java]
[070909_053458492][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeBig]
[070909_053458492][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[big]
[070909_053458493][][EXCEPTION] [DEBUG] [APPLOUT]:[out]
[070909_053458493][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[ia64r0]
[070909_053458493][][STATEMENT] TemplateHelper.runProcessTemplate(): Configuration file :null
[070909_053458499][][STATEMENT] TemplateHelper.runProcessTemplate(): user-variable.OA_MEDIA property not found in the property list.
[070909_053458501][][STATEMENT] TemplateHelper.runProcessTemplate(): APPS_FRAMEWORK_AGENT profile found. Setting it to user-variable.OA_MEDIA property : http://dev.mmx.com:8004/OA_MEDIA
[070909_053458501][][STATEMENT] TemplateHelper.runProcessTemplate(): Setting the locale info to xslt._XDOLOCALE property : en-US
[070909_053458503][][STATEMENT] TemplateHelper.runProcessTemplate(): Profile CLIENT_TIMEZONE found : America/New_York Setting it to xslt._XDOTIMEZONE property
[070909_053458529][][STATEMENT] TemplateHelper.runProcessTemplate(): Calling FOProcessor.
[070909_053458529][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
[070909_053458529][][STATEMENT] Logger.init(): LogDir=/mmx/dev/applbin/apps/apps_st/appl/xdo/12.0.0/temp
[070909_053458536][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor constructor is called.
[070909_053458536][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor has been initialized without default config.
[070909_053458536][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setData(InputStream) is called.
[070909_053458537][][STATEMENT] Logger.init(): *** DEBUG MODE IS ON. ***
[070909_053458537][][STATEMENT] Logger.init(): LogDir=/mmx/dev/applbin/apps/apps_st/appl/xdo/12.0.0/temp
[070909_053458537][oracle.apps.xdo.template.FOProcessor][STATEMENT] Log file 'xdo_070909_053458537_fo_data_181.xml' is created.
[070909_053458571][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setTemplate(InputStream)is called.
[070909_053458571][oracle.apps.xdo.template.FOProcessor][STATEMENT] Log file 'xdo_070909_053458537_fo_data_182.xsl' is created.
[070909_053458587][oracle.apps.xdo.template.FOProcessor][STATEMENT] Log file 'xdo_070909_053458537_fo_out83.out' is created.
[070909_053458587][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutput(OutputStream)is called.
[070909_053458587][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setLocale is called with 'en-US'.
[070909_053458587][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.setOutputFormat(byte)is called with ID=1.
[070909_053458588][oracle.apps.xdo.template.FOProcessor][STATEMENT] FOProcessor.generate() called.
[070909_053458588][oracle.apps.xdo.template.FOProcessor][STATEMENT] createFO(Object, Object) is called.
[070909_053458591][oracle.apps.xdo.template.fo.datatype.AttrKey][STATEMENT] WARNING: Found undetermined AttrKey: xdofo:in-table
[070909_053459583][][ERROR] java.lang.ClassNotFoundException: xxmmx.oracle.apps.xdo.template.rtf.util.barcoder.IDAutoBarcodeEncoder
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:168)
at oracle.apps.xdo.template.rtf.util.XDOBarcodeUtil.registerVendor(XDOBarcodeUtil.java:101)
at oracle.apps.xdo.template.rtf.XSLTFunctions.register_barcode_vendor(XSLTFunctions.java:2725)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.xdo.parser.v2.XSLExtFunctions.callStaticMethod(XSLExtFunctions.java:111)
at oracle.xdo.parser.v2.XPathExtFunction.evaluateMethod(XPathExtFunction.java:307)
at oracle.xdo.parser.v2.XPathExtFunction.evaluate(XPathExtFunction.java:226)
at oracle.xdo.parser.v2.XSLValueOf.processAction(XSLValueOf.java:101)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:147)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLForEach.processAction(XSLForEach.java:147)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLResultElement.processAction(XSLResultElement.java:180)
at oracle.xdo.parser.v2.XSLNode.processChildren(XSLNode.java:417)
at oracle.xdo.parser.v2.XSLTemplate.processAction(XSLTemplate.java:191)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:512)
at oracle.xdo.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:489)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:271)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:155)
at oracle.xdo.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:624)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:421)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:233)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1659)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:969)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5916)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3452)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3541)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:244)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)I wrote a blog entry about how jdev version match wls versions here http://tompeez.wordpress.com/2011/09/14/jdeveloper-versions-vs-weblogic-server-versions/
Timo -
"java.lang.ClassNotFoundException" when creating a CFC instance inside a webservice
This question is also up on stack overflow: http://stackoverflow.com/questions/10089962/coldfusion-web-service-failing-to-see-componen t
I've got a CFC that I'm going to access with ?wsdl as a SOAP webservice.
If I call the CFC directly in a browser, my results render fine:
http://server/webservice/calc.cfc?method=doStuff&foo=bar
If I try to access it as a web service:
ws = CreateObject("webservice", 'http://server/webservice/calc.cfc?wsdl');
result = ws.doStuff('bar');
I get an error:
Cannot perform web service invocation doStuff.
The fault returned when invoking the web service operation is:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :
com.calculations.calc][java.lang.NullPointerException : null]]
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException: [coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :
com.calculations.calc][java.lang.NullPointerException : null]]
at coldfusion.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton.java:733)
at coldfusion.xml.rpc.CFComponentSkeleton.__convertOut(CFComponentSkeleton.java:359)
at webservice.calc.doStuff(/var/www/vhosts/server/httpdocs/webservice/calc.cfc)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.r... ''
The problem is because the doStuff function is declaring an instance of a CFC inside it:
remote struct function doStuff(foo) {
var objReturn = {};
objReturn.msg = 'A message';
// do a calculation
var objCalc = new com.calculations.calc(foo);
objReturn.calc = objCalc;
return objReturn;
So my CFC that I'm using as a webservice has got another CFC being declared inside a function. Browsing directly to my webservice CFC works fine, but trying to call it using the CreateObject/webservice route fails, as it can't create an instance of the **com.calculations.calc** component.
It doesn't error, wierdly, if I comment out the objReturn.calc = objCalc line. So it seems I can create the instance, but the error isn't thrown till I assign it to my return struct.
Also I've found, If I refresh the page a few times, sometimes the error changes to:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :
com.calculations.calc][coldfusion.xml.rpc.CFCInvocationException :
returnType must be defined for remote CFC functions.]]
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:coldfusion.xml.rpc.CFCInvocationException:
[coldfusion.xml.rpc.CFCInvocationException : [java.lang.ClassNotFoundException :
com.calculations.calc][coldfusion.xml.rpc.CFCInvocationException :
returnType must be defined for remote CFC functions.]]
at coldfusion.xml.rpc.CFComponentSkeleton.__createCFCInvocationException(CFComponentSkeleton.java:733)
at coldfusion.xml.rpc.CFComponentSkeleton.__convertOut(CFComponentSkeleton.java:359)
at webservices.TaxCalc.feed.getTaxCalc(/var/www/vhosts/server/httpdocs/webservice/calc.cfc)
at sun.reflect.Nat... ''
Message was edited by: PeteComcar - impvoed code formatting and added returntype updateDear All Technology Expert's,
I have a query related to Coldfusion SOAP services, that is most commonly asked in all the forum's but NONE of them has got answer.
If there is NO solution so I think Adobe has to come up with some patches so developer can able to do some customization.
I like to share with you all, in all other language ( PHP, JAVA, .NET etc) this option is available and you can customize the error.
Ok let me again explain the very basic error:
SOAP Request:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
</soapenv:Body>
</soapenv:Envelope>
SOAP Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>java.lang.Exception: Body not found.</faultstring>
<detail>
<ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.lang.Exception: Body not found.
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)...</ns1:s tackTrace>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">Coldfusion Error</ns2:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
HOW we can customize the error, in all other languages you can simple customize the error like
Other languages SOAP response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>BODY_NOT_FOUND</faultcode>
<faultstring>Body is missing in your request</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
But the same is NOT possible in Coldfusion, right?
AS you know it is vulnerability to display exception messages in the response.
We are developing this web service to access from other language website (PHP, .NET).
We are also planning to upgrade server the Coldfusion 11, but do you think there is any solution with latest Coldfusion version.
Please response only if you know about these issue's or solution.
Thanks
Niyaz -
I've been building some HTTP servlets and to ease up on the typing I've created a ServletUtilities file and class for repetitve tasks. I then added this file to my core package. However once I made a call to my ServletUtilites class from the other classes I've been getting:
HTTP Status 500 - Exception Report
java.lang.ClassNotFoundException:FactoryClass org.apache.catalina.loader. WebappClassLoader. loadClass(WebappClassLoader.java:1453)You're right, you posted a new thread, but . . .
This whole forum is dedicated to Messaging Server
You might want to find the correct forum to post your question . . . . . . . . . . -
Help:java.lang.ClassNotFoundException
we have one application.We are calling ejb through applet.
We have sybase EAServer3.6.1 and jaguar 3.6.1.Java code is in jdk118 and ejb1.0.
Our architacture is: applet<->ejb<->server.
Our ejb is deployed on server.That we are calling our ejb through applet.Whole code for applet and ejb is lying on server.When we run our application through browser from different m/c we are getting two errors.
1)com.ms.security.SecurityExceptionEx.
2)powersoft.powerj.jaguar.InitialContextException: javax.naming lookup failed for component: HelloEJBPackage/HelloEJB
Exception: [Root exception is [Root exception is java.lang.ClassNotFoundException: java.rmi.Remote]javax.naming.NamingException]javax.naming.NamingException.
When I set classpath on each m/c.
i.e (c:/prog/sybase/shard/sun/jdk118/lib/classes.zip) my application is running fine it just gives warning for securiety not for lookup method failed.
Our system is in production.We can not make setting for individual clients.We need our applet should take classes from server not from client m/c.
Can anybody help me to solve this problem?If the client is created using powerj, pl cross verify the code for the lookup() in the client with component properties in the jaguar server.
check the component properties , in the installed packages of the jaguarCTS , under jaguar manager of the sybase central java edition.
kar -
7u40 or 7u21 mixed code java.lang.ClassNotFoundException
I have a simple applet which shows a graph; this applet has two jar file, the main jar file is signed by a trusted CA and the other jar file is unsigned
in the manifest for the signed jar file, I have added
Trusted-Library value="true"
Whe applet starts from the java console when it tries to invoke a create object on the class from the unsigned jar file, I get java.lang.ClassNotFoundException for the given class from the unsigned jar.
I have tried this on window 7 Chrome and Internet explorer based on variety of Java 7 release (40, 21 on internet explorer and release 6 on Chrome)
It does not work.
If I signed the second jar file, it works fine.
Please notice, I do not want to bypass the check for mix code from java configuration.
Any idea or hint will be highly apprecieated.This is confirmed by the post https://forums.oracle.com/thread/2280127
and it is confirmed by Oracle http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mixed_code.html#trusted_library
"Code in a jar file that is to be marked with the Trusted-Library manifest attribute may need to be modified slightly if it uses calls that are class loader dependent [...]
Code in a Trusted-Library can look up the normal loader by invoking Thread.currentThread().getContextClassLoader().[...]
Generally, care must be taken to ensure that the code in the trusted library is written in a careful and secure manner and is otherwise compatible with being loaded in a separate class loader instance from any remaining jars which are part of the application and are loaded by the normal loader."
"Thread.currentThread().getContextClassLoader().[...]"
I just did a simple test to call a method from a trusted jar into sandbox jar, I used reflection to do that and it worked.
It seems for every usage of any sandbox jar file classes in the trusted jar file, we have to use reflection ( load the class, invoke the required method ). Is this the way forward. Can somebody confirm this.
private void useReflection()
try
// using normal class loader
Class<?> clazz = Class.forName("com.abc.bla.bla.SandBox", true, Thread.currentThread().getContextClassLoader());
Constructor<?> constructor = clazz.getConstructor();
Object obj = constructor.newInstance(new Object[] {});
Method method = clazz.getMethod("sayHello", new Class[] {});
method.invoke(obj, new Object[] {});
catch (Exception ex)
ex.printStackTrace(); -
Java.lang.ClassNotFoundException: FirstImpl_Stub
I get the following error:
Server RemoteException; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: FirstImpl_Stub
on running my first server class to check rmi calls.Presumably this is occuring on the client. You have not included the rimc generated stub files in the client application's classpath.
Dave. -
Java.lang.InternalError: Werent current caller
I'm running the J2EE Sample for JDeveloper 9i.
The EJB.jpr project compiles without errors. orderItems run without error.
Running SampleorderItemsClient.java gives a java.lang InternalError.
See server stacktrace:
com.evermind.server.rmi.OrionRemoteException: java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
java.lang.Exception com.evermind.server.ejb.EJBUtils.getUserException(java.lang.Throwable, boolean)
void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
at connection to localhost/127.0.0.1 as admin
void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
void __Proxy1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void SampleorderItemsClient.main(java.lang.String[])
Nested exception is:
java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
at connection to localhost/127.0.0.1
void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()
void com.evermind.server.rmi.OrionRemoteException.receive(java.net.InetAddress, java.lang.String)
void com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse()
void com.evermind.server.rmi.RMIConnection.run()
void java.lang.Thread.run()
Process exited with exit code 0.
Can you tell me what this means?
ThxChris,
The problem is that both clients and EJBs are in the same server and you are using RMIInitialContextFactory. You have to use default context and package this client in the same EAR. Please look at http://otn.oracle.com/sample_code/tech/java/oc4j/htdocs/oc4jsamplecode/oc4j-demo-ejb.html#CMP for samples. Also some EJB/client sample programs are packaged with Oc4J disand you can find at $IAS_HOME/j2ee/home/demo/cmp distribution ctory.
However the client program should work fine if your client and EJBs are running on different Oc4J containers.
regards
Debu
Hi Debu,
the client is a java application. Here is the code:
[...in main method...]
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.SECURITY_PRINCIPAL, "admin");
env.put(Context.SECURITY_CREDENTIALS, "admin");
env.put(Context.PROVIDER_URL, "ormi://CHRISTIANE/statful");
Context ctx = new InitialContext(env);
PersonHome personHome = (PersonHome)ctx.lookup("Person");
Person person;
person = personHome.create( 14261026 );
CU, Chris -
I am sorry in advance, because I know this topic has been posted many times, but I think after reading all the solutions and trying everything I may have messed myself up worse.
I am trying to run this simple script to connect to my SQL database
import java.sql.*;
* Microsoft SQL Server JDBC test program
public class Test {
public Test() throws Exception {
// Get connection
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://<Host>:1433","<UID>","<PWD>");
if (connection != null) {
System.out.println();
System.out.println("Successfully connected");
System.out.println();
// Meta data
DatabaseMetaData meta = connection.getMetaData();
System.out.println("\nDriver Information");
System.out.println("Driver Name: "
+ meta.getDriverName());
System.out.println("Driver Version: "
+ meta.getDriverVersion());
System.out.println("\nDatabase Information ");
System.out.println("Database Name: "
+ meta.getDatabaseProductName());
System.out.println("Database Version: "+
meta.getDatabaseProductVersion());
} // Test
public static void main (String args[]) throws Exception {
Test test = new Test();
}I have set "PATH" in environmental variables (running windows)to be
C:\Program Files\Java\jdk1.6.0_04\bin;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jarSo when i Compile i get the error..
C:\SQLcode>javac Test.java
Test.java:9: package com.microsoft.jdbc.sqlserver does not exist
com.microsoft.jdbc.sqlserver.SQLServerDriver());Additionally, when i run
java com.microsoft.jdbc.sqlserver.SQLServerDriver
I get
Exception in thread "main" java.lang.NoClassDefFoundError: com/microsoft/jdbc/sq
lserver/SQLServerDriver
Caused by: java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLSer
verDriverFinally, I have even ran javac -classpath "C:\Program Files\Microsoft SQL Server 2000 Driver f
or JDBC\lib\;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msba
se.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserve
r.jar;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar"
Test.java Which will compile correctly! However when I run the same command just with the java command as opposed to the javac command, I get
Exception in thread "main" java.lang.NoClassDefFoundError: Test/java
Caused by: java.lang.ClassNotFoundException: Test.java
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) While there is a Class file in the directory.. Sorry for such a long post but I have been trying to fix this for two days now.. thank youOk well i tried a number of combinations..
My code lets say is in a folder C:\SQLCode which was successfully compiled using the command above..
I tried doing what you suggested and got
C:\SQLcode>java -cp .;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC
\lib\;C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msbase.jar;
C:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\mssqlserver.jar;C
:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib\msutil.jar Test
Exception in thread "main" java.lang.NoClassDefFoundError: Files\Microsoft
Caused by: java.lang.ClassNotFoundException: Files\Microsoft
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)I also tried without the direct links to the .jar files (just put the DIR) and got the same result.Any other suggestions? -
7u21 mixed code warning java.lang.ClassNotFoundException
Initially with Java 7u21 when I tried to invoke the browser dialog when trying to import records through applet I got the following error:
"Liveconnect call for Applet ID 1 is not allowed in this JVM instance"
It used to work fine with earlier versions of Java.
In order to fix it I have updated manifest file of applet, added the following entry for mixed code warning:
Trusted-library: true
I am self - signing the jars. It runs fine if I donot sign the jars, but if I self sign the jars
then I see the following exception in Java console:
Protocol: https
codeBase.getPort(): -1
appletConfig.getPort(): 443
Exception in thread "Thread-15" java.lang.NoClassDefFoundError: com/l2fprod/common/swing/JDirectoryChooser
at com.sjm.pcs.sneakernet.applet.ScanApplet$JavaScriptEventListener.run(ScanApplet.java:803)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.l2fprod.common.swing.JDirectoryChooser
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 moreAny idea what might be going wrong.
Any idea what is going wrong?
Thanks!This is confirmed by the post https://forums.oracle.com/thread/2280127
and it is confirmed by Oracle http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/mixed_code.html#trusted_library
"Code in a jar file that is to be marked with the Trusted-Library manifest attribute may need to be modified slightly if it uses calls that are class loader dependent [...]
Code in a Trusted-Library can look up the normal loader by invoking Thread.currentThread().getContextClassLoader().[...]
Generally, care must be taken to ensure that the code in the trusted library is written in a careful and secure manner and is otherwise compatible with being loaded in a separate class loader instance from any remaining jars which are part of the application and are loaded by the normal loader."
"Thread.currentThread().getContextClassLoader().[...]"
I just did a simple test to call a method from a trusted jar into sandbox jar, I used reflection to do that and it worked.
It seems for every usage of any sandbox jar file classes in the trusted jar file, we have to use reflection ( load the class, invoke the required method ). Is this the way forward. Can somebody confirm this.
private void useReflection()
try
// using normal class loader
Class<?> clazz = Class.forName("com.abc.bla.bla.SandBox", true, Thread.currentThread().getContextClassLoader());
Constructor<?> constructor = clazz.getConstructor();
Object obj = constructor.newInstance(new Object[] {});
Method method = clazz.getMethod("sayHello", new Class[] {});
method.invoke(obj, new Object[] {});
catch (Exception ex)
ex.printStackTrace(); -
I have installed correctly JServer as is specified in the Note:156477.1
I have configured the listener and MTS server for session-based IIOP communication.
sess_sh:
sess_sh -user sys -password nedbahok -service sess_iiop://sb450:2815:db3 -useServiceName
javax.naming.CommunicationException: Unknown service: :session1 [Root exception
is javax.naming.CommunicationException: Unknown service: 172.24.65.210:2815:db3
listener_log:
20-SEP-2001 14:05:58 * SUCCESS * (ADDRESS=(PROTOCOL=tcp)(HOST=172.24.75.125)(PORT=1927))
* establish * giop * 0
AND:
bdump/db3_s000_20225 (server process):
*** SESSION ID:(7.23278) 2001-09-20 14:06:27.924
java.lang.ClassNotFoundException: oracle.aurora.server.SGiopServer in <SYS>
at oracle.aurora.rdbms.DbmsJava.classForNameAndSchema(DbmsJava.java)
at oracle.aurora.rdbms.DbmsJava.classForNameInSystemSchema(DbmsJava.java)
at oracle.aurora.net.Presentation.getHandlerOfClass(Presentation.java)
at oracle.aurora.net.Presentation.getHandler(Presentation.java)
at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
at oracle.aurora.net.Presentation.handleRequest(Presentation.java)
oracle.aurora.net.NoPresentationException: Class does not exist in SYSTEM schema: oracle.aurora.server.SGiopServer
at oracle.aurora.net.Presentation.getHandlerOfClass(Presentation.java)
at oracle.aurora.net.Presentation.getHandler(Presentation.java)
at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
at oracle.aurora.net.Presentation.handleRequest(Presentation.java)
jox_call_java_pres_: caught
ORA-29532: Java call terminated by uncaught Java exception: oracle.aurora.net.NoPresentationException: Class does not exist in SYSTEM schema: oracle.aurora.server.SGiopServer
What is a problem ?
I have reinstalled Jserver some times.
HELP !!!Have you run the script initjvm.sql? This script configures your
SYSTEM tablespace with Java objects.
Maybe you are looking for
-
Adobe after effects won't open on new computer
I recently bought the MacBook Pro A few months a you days ago I purchased Adobe after effects were installed onto my computer it would not run it said new software had to be installed on my Mac book but it is running at its best with no updates it sa
-
How to create a new library for my wife's iPod
Hi all, I've been trying to get the right answer to this for a long time, but I seem to be continually coming up against very complicated solutions that are too intricate for me to actually try. I hope someone will have the knowledge (and the patien
-
Embed HTTPService in a visual component
I want to create a visual component with a top element <mx:Canvas>. This component needs to retrieve some data from a remote server, however <mx:Canvas> can not contain <mx:HTTPService>. Which components can contain <mx:HTTPService>? I know <mx:Appli
-
Regarding Configuration Settings for invoice tranfering
Hi, I am new to MM.I want to be transfer Invoices from MM to SRM.Apart from this where i need to configuration settings has to be done(for different vendors). Can any one give me the solution for this? Thanks in Advance, regards, kishore. Edit
-
Help with PhotoAlbum programm using swings (editing)
i have the pictures ready and are place in the correct workshop folder* but when i click on the labels, nothing show up Please help :) import javax.swing.; import java.awt.*; import java.awt.event.*; public class photoAlbum extends JFrame implements