Java.lang.ClassNotFoundException: boolean
I came accross a problem with a specific version of the sun jdk : 1.3.1_11
I didn't see anything in forums about it, or in the bug database, so I thought I would share it here :
the following program runs perfectly with 1.3.1_03 or 1.4 or JRockit JVM, but on 1.3.1_11-b02 (at least the linux version), it generates the exception that is in the subject of this post.
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Method;
public class TestSerMain {
public static void main(String[] args) throws Exception {
Class c = TestSerMain.class;
Method[] m = c.getMethods();
for (int i=0; i<m.length; i++) {
if ("myMethod".equals(m.getName())) {
Class[] params = m[i].getParameterTypes();
displayClassArray("orignal",params);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream os = new ObjectOutputStream(bos);
os.writeObject(params);
byte[] serialized = bos.toByteArray();
System.out.println("serialized in "+serialized.length+" bytes.");
ByteArrayInputStream bis = new ByteArrayInputStream(serialized);
ObjectInputStream is = new ObjectInputStream(bis);
Class[] deserialized = (Class[]) is.readObject();
displayClassArray("deserialized",params);
private static void displayClassArray(String string, Class[] params) {
System.out.println("************");
System.out.println(string);
for (int i=0; i<params.length; i++) {
System.out.println(params[i]);
public void myMethod(String s, boolean b) {}
well, just found out, that it's bug # 4171142
and there's a workaround for it: overriding ObjectInputStream (!)
Similar Messages
-
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 -
Java.lang.ClassNotFoundException: access
Hi,i typed in a code and started compiling it,it got compiled but while running its giving
the following error
Unable to create MIDlet access
java.lang.ClassNotFoundException: access
at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
at com.sun.midp.midlet.Selector.run(+22)
i tried the methods which i found in this forum but it did not work for me pls help me out of this error.........
import java.io.*;
import javax.microedition.io.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
import javax.microedition.midlet.MIDletStateChangeException;
public class AccessUrl extends MIDlet{
private Display display;
String url = "http://localhost:8080";
public AccessUrl(){
display = Display.getDisplay(this);
public void startApp(){
try{
connection(url);
} catch (IOException e){
System.out.println("IOException " + e);
e.printStackTrace();
public void pauseApp(){}
public void destroyApp(boolean unconditional){}
void connection(String url) throws IOException{
StreamConnection sc = null;
InputStream is = null;
StringBuffer buffer = new StringBuffer();
TextBox access;
try{
sc = (StreamConnection)Connector.open(url);
is = sc.openInputStream();
int chars;
while((chars = is.read()) != -1){
buffer.append((char) chars);
System.out.println(buffer.toString());
access = new TextBox("Access Text", buffer.toString(), 1024, 0);
}finally{
if(is != null){
is.close();
if(sc != null){
sc.close();
display.setCurrent(access);
the above is the code pls help me outSeems you have typed your MIDlet name as access whereas it should be AccessUrl in the tool (ktoolbar / eclipseme / netbeans)you are using for executing.
Edited by: Atul.Moglewar on Mar 23, 2009 8:01 AM -
Java.lang.ClassNotFoundException: javax.swing.JFrame
i have developed a program in java and it is working fine in windows xp, but when i try to execute it in redhat linux, the ff errors are generated:
Exception in thread "main" java.lang.InternalError: Unexpected exception while defining class WESMOMP$1: java.lang.ClassNotFoundException: javax.net.ssl.HostnameVerifier
at 0x00362ca3: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x00355b1e: java.lang.Error.Error(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x00363086: java.lang.VirtualMachineError.VirtualMachineError(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x003574be: java.lang.InternalError.InternalError(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x00354abf: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int, java.security.ProtectionDomain) (/usr/lib/./libgcj.so.3)
at 0x003548a3: java.lang.ClassLoader.defineClass(java.lang.String, byte[], int, int) (/usr/lib/./libgcj.so.3)
at 0x003ebd96: java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x003420f7: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x00354794: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/./libgcj.so.3)
at 0x003427fc: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
at 0x0033ec6d: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
at 0x0033549f: _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/./libgcj.so.3)
at 0x0032b7c7: _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/./libgcj.so.3)
at 0x00323a64: _Jv_PrepareClass(java.lang.Class) (/usr/lib/./libgcj.so.3)
at 0x00341f88: java.lang.ClassLoader.linkClass0(java.lang.Class) (/usr/lib/./libgcj.so.3)
at 0x00354b43: java.lang.ClassLoader.resolveClass0(java.lang.Class) (/usr/lib/./libgcj.so.3)
at 0x003403fc: java.lang.Class.initializeClass() (/usr/lib/./libgcj.so.3)
at 0x0033ec94: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
at 0x0033ed2f: java.lang.Class.forName(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x003a6e81: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
at 0x00349aec: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
at 0x0031682c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
at 0x08048930: ?? (??:0)
at 0x006f778a: __libc_start_main (/lib/tls/libc.so.6)
at 0x080486e1: ?? (??:0)I think that java cannot see the javax package.
also i tried to execute a java program that uses mysql connector, it generated this error:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at 0x00362ca3: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x00355b62: java.lang.Exception.Exception(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x00355218: java.lang.ClassNotFoundException.ClassNotFoundException(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x003ebdb9: java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x003420f7: gnu.gcj.runtime.VMClassLoader.findClass(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x003547af: java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/./libgcj.so.3)
at 0x00342839: _Jv_FindClass(_Jv_Utf8Const, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
at 0x0033ec6d: java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/./libgcj.so.3)
at 0x0033ed2f: java.lang.Class.forName(java.lang.String) (/usr/lib/./libgcj.so.3)
at 0x0047d007: ffi_call_SYSV (/usr/lib/./libgcj.so.3)
at 0x0047cfc7: ffi_raw_call (/usr/lib/./libgcj.so.3)
at 0x0032a658: _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
at 0x0032af64: _Jv_InterpMethod.run(ffi_cif, void, ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/./libgcj.so.3)
at 0x00328474: _Jv_InterpMethod.run_normal(ffi_cif, void, ffi_raw, void) (/usr/lib/./libgcj.so.3)
at 0x0047ce7c: ?? (??:0)
at 0x0033cd68: gnu.gcj.runtime.FirstThread.call_main() (/usr/lib/./libgcj.so.3)
at 0x003a6e91: gnu.gcj.runtime.FirstThread.run() (/usr/lib/./libgcj.so.3)
at 0x00349aec: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
at 0x0031682c: _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/./libgcj.so.3)
at 0x08048930: ?? (??:0)
at 0x0074c78a: __libc_start_main (/lib/tls/libc.so.6)
at 0x080486e1: ?? (??:0)how to install the mysql jdbc connector?
please help...thxFirst: Check java version
$java -version
Second: Run your program with explicit classpath declaration
$java -cp yourjdbcdriver.jar;yourprogram.jar com.you.program.ClassContainingMainMethodI'm not sure what to use for jar's delimeter semicolon, or colon. Try both. -
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) -
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 -
When trying to connect, java.lang.ClassNotFoundException;
I can't seem to resolve this error:
SearchServlet.java [48:1] unreported exception java.lang.ClassNotFoundException; must be caught or declared to be thrown
db.connect();
^
=========The error is in the following Servlet:
SinglesSearch.Database db=new SinglesSearch.Database();
db.connect(); //this line throws the exception
=========
I've searched the web for servlets connecting to the database, but couldn't find anything that would help me figure out this issue.
Can you help ?
thanks,
Dennis
P.S.
My database helper class.
* Database.java
package SinglesSearch;
import java.sql.*;
import java.io.*;
public class Database {
//Helper Class -- Takes care of DB connections and SQL
/** Creates a new instance of Database */
public String dbURL = "jdbc:mysql://localhost/singles";
public String dbDriver = "com.mysql.jdbc.Driver";
private Connection dbCon;
public Database() {
super();
public boolean connect() throws ClassNotFoundException,SQLException
{ //Connect to DB
Class.forName(dbDriver);
dbCon = DriverManager.getConnection(dbURL,"test", "test");
return true;
public void close() throws SQLException
{ //Close connection to DB
dbCon.close();Why is writing a servlet is so tough ?
It seems it must be simpler. .. I mean I had to specify every last exception handling.
I mean compare these 4 lines:
Class.forName(dbDriver);
dbCon = DriverManager.getConnection(dbURL,"xxx", "xxx");
Statement stmt= dbCon.createStatement();
ResultSet rs = stmt.executeQuery(sql);
To the monster (in P.S.) I had to write, just for the thing to compile !!
Is that supposed to be like that ? Or am I missing something ?
thanks,
Dennis
P.S.
//Start connection to the database
Connection dbCon=null;
Statement stmt=null;
try {
Class.forName("com.mysql.jdbc.Driver");
} catch(ClassNotFoundException cne) {
//Exception handling here
out.println(cne);
try {
dbCon = DriverManager.getConnection("jdbc:mysql://localhost/singles","singles", "zaq123");
} catch(SQLException sqle) {
out.println(sqle);
ResultSet rs = null ;
try {
stmt= dbCon.createStatement(); }
catch(SQLException cne) {
out.println(cne);
try { rs = stmt.executeQuery("SELECT libnum FROM profiles"); }
catch(SQLException cne) {
out.println(cne);
if (rs == null)
out.println("<P>NOTHING in the database</P>");
else
try {
while(rs.next())
out.println("<BR>");
out.println( rs.getString("libnum") );
} catch(SQLException cne) {
out.println(cne);
} -
Runtime exception java.lang.ClassNotFoundException on executing Stored Proc
I am getting the below error when I try to execute a stored proc in Pointbase from weblogic.
java.sql.SQLException: The external "DbLog::insLog" routine had the following runtime exception "java.lang.ClassNotFoundException: DbLog"
import java.sql.*; import com.pointbase.jdbc.*; public class DbLog { static Connection conn = null; static Statement m_stmt; static Statement l_stmt; static CallableStatement m_callStmt = null; public boolean logPreAuth() { try { String I_URL = "jdbc:pointbase:server://localhost:9093/weblogic_eval"; conn = DriverManager.getConnection(I_URL, "PBSYSADMIN", "PBSYSADMIN"); /*String SQL_CREATE_PROC = "CREATE PROCEDURE insLog(IN P1 VARCHAR(30))" + " LANGUAGE JAVA" + " SPECIFIC insLog" + " DETERMINISTIC" + " NO SQL" + " EXTERNAL NAME \"DbLog::insLog\"" + " PARAMETER STYLE SQL"; m_stmt = conn.createStatement(); m_stmt.executeUpdate(SQL_CREATE_PROC); m_stmt.close(); */ Commented out because it throwed error saying, The routine "INSLOG" in schema "PBPUBLIC" already exists in system table SYSROUTINES. m_callStmt = conn.prepareCall("{ call insLog(?) }"); m_callStmt.setString(1, "Success!!"); m_callStmt.execute(); } catch (Exception e) { logger.error("Error in logPreAuth method" + e); } return true; } public static void insLog(String test) { try { l_stmt = conn.createStatement(); l_stmt.executeUpdate("Insert into logs values('" + test + "')"); l_stmt.close(); conn.close(); } catch (Exception e) { } }
Please let me know how to solve this.I setted the classpath in commEnv.cmd as follows,
set POINTBASE_HOME=%WL_HOME%\common\eval\pointbase
set POINTBASE_CLIENT_CLASSPATH=%POINTBASE_HOME%\lib\pbclient57.jar
set POINTBASE_CLASSPATH=%POINTBASE_HOME%\lib\pbembedded57.jar;%POINTBASE_CLIENT_CLASSPATH%;C:\bea\user_projects\workspaces\work1\utility\build\classes
set POINTBASE_TOOLS=%POINTBASE_HOME%\lib\pbtools57.jar
My DbLog class in the path, C:\bea\user_projects\workspaces\Work1\util\build\classes\net\local\util\common
FYI, net\local\util\common is the package.
But when I try to execute the page which calls RequestFilter.java, I am getting the following error,
Error 500--Internal Server Error
java.lang.NoClassDefFoundError: Could not initialize class net.local.util.common.DbLog
Please find the code below,
--RequestFilter.java
import net.local.util.common.DbLog;
public final class RequestFilter {
public void log() {
DbLog dblog = new DbLog();
dblog.logPreAuth();
} --DbLog.java
package net.local.util.common;
import java.sql.*;
import org.apache.log4j.Logger;
import com.pointbase.jdbc.*;
public class DbLog {
private static final Logger logger = Logger.getLogger(DbLog.class);
private static boolean DEBUGGING = logger.isDebugEnabled();
private Connection conn = null;
private Statement m_stmt;
private Statement l_stmt;
private CallableStatement m_callStmt = null;
//static ResultSet l_rs = null;
public DbLog() {
logger.info("DbLog constructor called");
init();
public void init() {
logger.info("DbLog init called");
public void logPreAuth() {
try {
logger.info("Inside logPreAuth method");
String I_URL = "jdbc:pointbase:server://localhost:9093/weblogic_eval";
Class.forName("com.pointbase.jdbc.jdbcUniversalDriver").newInstance();
//Class.forName("com.pointbase.jdbc.jdbcDataSource");
conn = DriverManager.getConnection(I_URL, "PBPUBLIC", "PBPUBLIC");
String SQL_CREATE_PROC = "CREATE PROCEDURE insLog(IN P1 VARCHAR(30))"
+ " LANGUAGE JAVA"
+ " SPECIFIC insLog"
+ " DETERMINISTIC"
+ " NO SQL"
+ " EXTERNAL NAME \"DbLog::insLog\""
+ " PARAMETER STYLE SQL";
m_stmt = conn.createStatement();
m_stmt.executeUpdate(SQL_CREATE_PROC);
m_stmt.close();
m_callStmt = conn.prepareCall("{ call PBPUBLIC.insLog(?) }");
m_callStmt.setString(1, "Success!!");
m_callStmt.execute();
catch (Exception e) {
logger.error("Error in logPreAuth method" + e);
public void insLog(String test)
try {
l_stmt = conn.createStatement();
l_stmt.execute("Insert into logs values('" + test + "')");
l_stmt.close();
conn.close();
catch (Exception e) {
} -
Hi
I am trying to use type 4 driver to connect to my Oracle 9i Rel2 database. I downloaded the odbc14.jar from oracle and added in the C:\Oracle9i\jdbc\lib path. As on the website, I setup my environment:
Setting Up Your Environment
On Win95/Win98/NT:
- Add [ORACLE_HOME]\jdbc\lib\classes111.zip and
[ORACLE_HOME]\jdbc\lib\nls_charset11.zip to your CLASSPATH.
(Add classes12.zip and nls_charset12.zip if JDK 1.2.x or 1.3 is
used. Add ojdbc14.jar and nls_charset12.zip if JDK 1.4 is used.)
- Make sure [ORACLE_HOME]\bin is in your PATH.
Still I am getting the following error during runtime:
Exception in thread "main" java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at jdbc.InsertQueryEx.main(InsertQueryEx.java:11)
Below is the source code:
import java.sql.*;
import java.io.*;
public class InsertQueryEx {
public static void main(String[] args)throws Exception{
Class.forName("oracle.jdbc.OracleDriver");
Connection con = DriverManager.getConnection("jdbc:oracle:thin:@Prashy:1521:orcl", "scott", "tiger");
DataInputStream din = new DataInputStream(System.in);
Statement stmt = con.createStatement();
while(true){
try{
System.out.println("enter emp name");
String name = din.readLine();
System.out.println("enter emp no");
int no = Integer.parseInt(din.readLine());
System.out.println("enter emp salary");
float sal = Float.parseFloat(din.readLine());
System.out.println("enter emp address");
String addr = din.readLine();
int count = stmt.executeUpdate("insert into myemp values("+no+",'"+name+"',"+sal+",'"+addr+"')");
if(count>0)
System.out.println("Record added");
else
System.out.println("Failed");
catch (Exception e){
System.err.println("Exception: "+e.getMessage());
Any help is appreciated
Thanks
PrashantI am sorry but I did add those in the classpath but still getting this error:
This is what I have for user variable in classpath:
.;C:\Oracle9i\jdbc\lib\ojdbc14.jar;C:\Oracle9i\jdbc\lib\nls_charset12.jar
error is:
java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at jdbc.InsertQueryEx.main(InsertQueryEx.java:14)
Thanks -
Java.lang.ClassNotFoundException when deploy application on Weblogic 10.3
Hi all, when I deploy an application on Weblogic 10.3 the following error occurs
the following detail is shown on the summary screen when I deploy the application via control
An error occurred during activation of changes, please see the log for details.
weblogic.application.ModuleException:
com.excellence.exoa.sso.SsoSessionListener
The deployment has been successfully installed
the following detail is shown on the log
Could not load user defined listener: com.excellence.exoa.sso.SsoSessionListener
java.lang.ClassNotFoundException: com.excellence.exoa.sso.SsoSessionListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:54)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:35)
at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:117)
at weblogic.servlet.internal.EventsManager.registerPreparePhaseListeners(EventsManager.java:65)
at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1765)
at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1126)
at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:449)
at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:424)
at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:16)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
the following listener is configured in the web.xml
<listener>
<listener-class>com.excellence.exoa.sso.SsoSessionListener</listener-class>
</listener>
and the SsoSessionListener class is packaged in the mainframe.jar. there are two mainframe.jar in this ear, the first which include SsoSessionListener in the souce directory and the other mainfrain.jar which extend the SsoSessionListener is in the ./extend/mainframe.jar
How can I fix this error ? any suggestion?
Thanks
Jayson
Edited by: Jayson on Feb 12, 2009 3:37 AM
Edited by: Jayson on Feb 12, 2009 3:54 AMI have in log:
2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
l setLifecycleContextBuilder
WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
lize
INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
sourceProvider <init>
INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
trap add
INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
tchCredential
WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
mains\base_domain\config\oracle.
2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
Exception
WARNING: Incomplete connection information
Edited by: Debuger on Mar 26, 2009 11:18 AM -
Every time I try to run a java program: Java.lang.ClassNotFoundException?
I downloaded the JDK version 6 successfully for my laptop which runs windows 7 (64bit). I'm trying to run programs that I have successfully run at school on my computer put it doesn't work. I pull up the command prompt and enter javac "program name".java and it compiles fine. Then, when I type java "program name" it gives me the Java.lang.ClassNotFoundException. Can anyone please help me??
Try:
java -cp . ClassNameNote the dot. -
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).
-
Hello,
Whenever I try to visit websites that have a java applet I get a dialogue with the following error:
java.lang.ClassNotFoundException: loader.class.
I have tried uninstalling/reinstalling java, and also adding the -xmx and -xms parameters for java applet runtime setting in control panel with various values from 128m to 1g.
The applet at http://www.java.com/en/download/installed.jsp?detect=jre&try=1 does work and reports "CONGRATULATIONS, you have the Latest version of Java!", "Java Runtime Version 1.6.0."
I have been experiencing this problem ever since I installed Windows Vista Home Premium a day or two ago. Any help is appreciated.
Regards
Greg
=====================================
Full output from Java Console
=====================================
Java Plug-in 1.6.0
Using JRE version 1.6.0 Java HotSpot(TM) Client VM
User home directory = C:\Users\Greg Taylor
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
p: reload proxy configuration
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 loader.class not found.
java.lang.ClassNotFoundException: loader.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 more
java.lang.ClassNotFoundException: loader.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 10 moreive been having the same problems, if youve resolved this problem, please tell me.
all help is appreciated -
"Java Concurrent Program" java.lang.ClassNotFoundException:
I am creating one Concurrent Program Type "Java Concurrent Program",
I followed steps as notes "250964.1"
Deployed the java file to specific Directory in $JAVA_TOP
Bounce the apache.
I am getting this issue?
java.lang.ClassNotFoundException: oracle.apps.fnd.cp.sample.Hello
at java.net.URLClassLoader.findClass(URLClassLoader.java:376)
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:442)
at java.lang.ClassLoader.loadClass(ClassLoader.java:502)
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:180)
at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
I am not getting this issue OA Framework Classes (CO, AM ....)
Looking for this solution ? This is urgent to me.
Let us know what may be issue?
Thanks, AvaneeshAvaneesh,
What do you mean by "
I am not getting this issue OA Framework Classes (CO, AM ....)"?
Did you test your java code on command line?
--Shiv
Maybe you are looking for
-
Transfer of Pictures from PC to MacBook Pro
Two questions. I recently bought a MacBook Pro and successfully transferred pictures from our PC. Although photographs in IPhoto retain the dates on which they were originally taken, those in Pictures only have the date on which they were transferred
-
Error loading external library
I have created a library in Oracle using a C library test.so in sun solaris. This library contains string manipulation and memory management functions. When I call a function in this library through PL/SQL I get the error ORA-06520: PL/SQL: Error loa
-
Dashcode for application like iPhone User Guide
Apple's iPhone User Guide at http://help.apple.com/iphone/guide was created, at least in part, using Dashcode. This is evident when you examine the source code. However, I've not figured out what they might have used to create the XML files that make
-
Recommended way for Oracle SDO_GEOMETRY
I'm going to be using coldfusion<>oracle spatial db to retrieve location data. Oracle does this with an SDO_GEOMETRY data type which holds location data, in my case somewhere in there will be point data which will have a longitude and latitude. since
-
Add buttons to transaction LT10
Hi )) I don't see and use 'sort' buttons on the screen in transaction LT10 (( Can I add these buttons ? Help me, please.....