Problem Running Hello.java
Hi All,
I am facing problem to run Hello.java.
The following exception accurs when I try to run it.
java.lang.RuntimeException: RegOpenKeyEx: The system cannot find the file specified. (2)
at com.ibm.speech.recognition.RecoImpl.initialize(Native Method)
at com.ibm.speech.recognition.RecoImpl.<init>(RecoImpl.java:163)
at com.ibm.speech.recognition.RecoImpl.make(RecoImpl.java:103)
at com.ibm.speech.recognition.IBMEngineCentral.makeModes(IBMEngineCentral.java:112)
at com.ibm.speech.recognition.IBMEngineCentral.createEngineList(IBMEngineCentral.java:179)
at javax.speech.Central.availableRecognizers(Central.java:455)
at javax.speech.Central.createRecognizer(Central.java:343)
at hello.Hello.main(Hello.java:170)
java.lang.NullPointerException
at hello.Hello.main(Hello.java:171)
Can any body tell me what should I do.
Thanks in advance,
Regards,
Haider Ali
The solution is simple, but only once have I seen it up in the forums, so I am on a campaign to put it in a couple more places.
Solution: download the via voice runtime from IBM's Alphaworks website. I don't have the link handy, but it is pretty easy to find. Something like http://alphaworks.ibm.com.
Just make sure you not only get all of the SDKs and such, but also the ACTUAL runtime. They say something about needing the runtime on the download page, but it is in the fine print. It is 'VVRTDUS10.ZIP' and is around 170MB or so. Once installed, if you still have a problem, try putting the 'bin' directory in the via voice folder in your PATH (not CLASSPATH) environment variable.
That did the trick for me.
Bye now.
Similar Messages
-
Problem running a Java program
Hi...I'm developing a CORBA project and I'm using java to implement it. I wrote a Hello World program and I could compile all my files (IDL files and all the generated .java files). But when I try to run my Server program I get the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: HelloApp/_HelloImplBase
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at HelloStringifiedServer.main(HelloStringifiedServer.java:24)
Can anyone please help me!
Thanks in advanceSure, here is the Server code:
// HelloStringifiedServer.java, stringified object reference version
import java.io.*;
import org.omg.CORBA.*;
import HelloApp.*;
public class HelloStringifiedServer {
class HelloServant extends _HelloImplBase
public String sayHello()
return "\nHello world !!\n";
public static void main(String args[])
try{
// create and initialize the ORB
ORB orb = ORB.init(args, null);
// create servant and register it with the ORB
HelloServant helloRef = new HelloServant();
orb.connect(helloRef);
// stringify the helloRef and dump it in a file
String str = orb.object_to_string(helloRef);
String filename = System.getProperty("user.home")+
System.getProperty("file.separator")+"HelloIOR";
FileOutputStream fos = new FileOutputStream(filename);
PrintStream ps = new PrintStream(fos);
ps.print(str);
ps.close();
// wait for invocations from clients
java.lang.Object sync = new java.lang.Object();
synchronized (sync) {
sync.wait();
} catch (Exception e) {
System.err.println("ERROR: " + e);
e.printStackTrace(System.out);
I get the previous error message when I try to run this file. Other files are those generated by the IDL compiler
PS: Are you familiar with CORBA? -
Problem running Hello World tutorial from Embedded OC4J Server in JDev
Hi All,
I am trying to setup my JDeveloper 9i to run the toolbox tutorial projects. I setup the JDEV_USER_HOME, .dbc file, database connection and added the proper responsibilities for the user used in runtime connection, and am not able to successfully run the Hello World page. I get the following error after I click on the link in the test_fwktutorial.jsp. Can anyone please help me out?
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SQL_PLSQL_ERROR. Tokens: ROUTINE = createSession(int, String)(userid=6','0CB08790D63136AEE044080020884BA737960692413709198236595623945829'); REASON = java.sql.SQLException: ORA-06550: line 1, column 49:
PLS-00306: wrong number or types of arguments in call to 'CREATESESSION'
ORA-06550: line 1, column 43:
PL/SQL: Statement ignored
; ERRNO = 6550;
at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:974)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:866)
at oracle.apps.fnd.framework.webui.OAPageBean.validateUser(OAPageBean.java:4710)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:704)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
at OA.jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-06550: line 1, column 49:
PLS-00306: wrong number or types of arguments in call to 'CREATESESSION'
ORA-06550: line 1, column 43:
PL/SQL: Statement ignored
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:866)
at oracle.apps.fnd.framework.webui.OAPageBean.validateUser(OAPageBean.java:4710)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:704)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
at OA.jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-06550: line 1, column 49:
PLS-00306: wrong number or types of arguments in call to 'CREATESESSION'
ORA-06550: line 1, column 43:
PL/SQL: Statement ignored
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2176)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2050)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2959)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:726)
at oracle.apps.fnd.common.WebAppsContext.createSession(WebAppsContext.java:2698)
at oracle.apps.fnd.common.WebAppsContext.createSession(WebAppsContext.java:2615)
at oracle.apps.fnd.common.WebAppsContext.createSession(WebAppsContext.java:2561)
at oracle.apps.fnd.common.WebAppsContext.createAnonymousSession(WebAppsContext.java:4768)
at oracle.apps.fnd.common.WebRequestUtil.setGuestSession(WebRequestUtil.java:1246)
at oracle.apps.fnd.framework.webui.OAPageBean.validateUser(OAPageBean.java:4708)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:704)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
at OA.jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
oracle.apps.fnd.framework.OAException: Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-06550: line 1, column 49:
PLS-00306: wrong number or types of arguments in call to 'CREATESESSION'
ORA-06550: line 1, column 43:
PL/SQL: Statement ignored
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:980)
at oracle.apps.fnd.framework.OACommonUtils.processAOLJErrorStack(OACommonUtils.java:866)
at oracle.apps.fnd.framework.webui.OAPageBean.validateUser(OAPageBean.java:4710)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:704)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
at OA.jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-06550: line 1, column 49:
PLS-00306: wrong number or types of arguments in call to 'CREATESESSION'
ORA-06550: line 1, column 43:
PL/SQL: Statement ignored
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2176)
at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2050)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2959)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:726)
at oracle.apps.fnd.common.WebAppsContext.createSession(WebAppsContext.java:2698)
at oracle.apps.fnd.common.WebAppsContext.createSession(WebAppsContext.java:2615)
at oracle.apps.fnd.common.WebAppsContext.createSession(WebAppsContext.java:2561)
at oracle.apps.fnd.common.WebAppsContext.createAnonymousSession(WebAppsContext.java:4768)
at oracle.apps.fnd.common.WebRequestUtil.setGuestSession(WebRequestUtil.java:1246)
at oracle.apps.fnd.framework.webui.OAPageBean.validateUser(OAPageBean.java:4708)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:704)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
at OA.jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
Thank you,
KittyPlease note, you will not get ORA-xxx error if database connection is not established.
You might be using either wrong dbc file(may be dbc of other instance) or wrong jdeveloper version.
To find out correct jdeveloper version, refer the following link.
http://prasanna-adf.blogspot.com/2008/11/new-to-oaf.html
--Prasanna -
Problems running any Java applets
I have tried uninstalling, and re-installing the latest version of Java...
any time I try and run an applet I get this error...
The publisher cannot be verified by a trusted source. Code will be treated as unsigned.
Name: loader
Java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
at com.sun.deploy.security.ImmutableCertStore.load(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at com.sun.deploy.security.TrustDecider.isAllPermissionGranted(Unknown Source)
at sun.plugin.security.PluginClassLoader.getPermissions(Unknown Source)
at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at 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)
I tried looking at the java control pannel, and when I clicked on security, then certificates and I got this error
General Exception
java.io.EOFException
at java.io.DataInputStream.readInt(Unknown Source)
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.security.DeploySigningCertStore.loadCertStore(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
at com.sun.deploy.security.DeploySigningCertStore.load(Unknown Source)
at com.sun.deploy.panel.CertificatesInfo.reset(Unknown Source)
at com.sun.deploy.panel.CertificatesInfo.<init>(Unknown Source)
at com.sun.deploy.panel.CertificatesDialog.<init>(Unknown Source)
at com.sun.deploy.panel.SecurityPanel.certsBtnActionPerformed(Unknown Source)
at com.sun.deploy.panel.SecurityPanel.access$000(Unknown Source)
at com.sun.deploy.panel.SecurityPanel$1.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.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.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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)
The only way I am able to run a java applet is Unsigned...I am having this same exact problem and receiving the same error anytime I try to run a java appet within any browser.
I cannot locate a keystore file or any other security certificate files. Also under Control Panel, If I run the Java Control Panel and then select the Security tab/certificates. I see a similar error and do not see any certificates. Any ideas on how to correct this. -
Problems running ImageExample.java
I'm trying to run ImageExample.java
The file compiles but when I want to execute the class I keep getting the same error:
java.lang.NoClassDefFoundError: oracle.sql.CustomDatum
I checked my CLASSPATH and it seems ok, I've included ordim817.zip, runtime.zip and classes111.zip.
What can be wrong?
Thanx
nullCustomDatum.class is included in classes111.zip. Double-check your CLASSPATH, making sure the path for your classes111.zip comes before other library paths.
-
Some differences in Java settings giving me problems running a java program
Hello,
We have a Java app in our web-site. We haven't done that app our self and it has been working for quite some time.
Now on my computer the java app loads just nicely.
But for other users there java app crashes. So basically there has to be somekind of settings problem between.
But we have checked the settings and I simply can't find the difference.
The other users keep getting error that class not found.
Debug print:
security: Certificate has been verified with Internet Explorer ROOT certificates successfully
security: Valid certificate from HTTPS server
security: Adding certificate in Deployment session certificate store
security: Added certificate in Deployment session certificate store
security: Saving certificates in Deployment session certificate store
security: Saved certificates in Deployment session certificate store
network: Connecting http://site.xxx.com:443/ with proxy=DIRECT
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment session certificate store
network: Cache entry not found [url: https://site.xxx.com/EMS/classes/chart/Chart/class.class, version: null]
network: Connecting https://site.xxx.com/EMS/classes/chart/Chart/class.class with proxy=DIRECT
network: Connecting http://site.xxx.com:443/ with proxy=DIRECT
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment session certificate store
network: Connecting http://site.xxx.com:443/ with proxy=DIRECT
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment session certificate store
basic: load: class chart/Chart.class not found.
load: class chart/Chart.class not found.
java.lang.ClassNotFoundException: chart.Chart.class
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 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)
Exception: java.lang.ClassNotFoundException: chart.Chart.class
Ignored exception: java.lang.ClassNotFoundException: chart.Chart.class
So you guys have any idea what setting could be wrong between my and the other users machines.
We have Windows Xp sp3 and Internet Explorer 8 in use.
I actually made a clean Xp install the otherday. Installing latest java and no security settings added from domain. Also I put the site on trusted sites and allowed all in IE. And I still got that error in that new clean Xp install. On my personal computer the Java app still works just fine. Unlucky the one who has done the Java app is not able to help us.Hello,
I downloaded the jar-file and opened it with Winzip. The class in question was in the jar-file.
I also put logging on in my computer where the App is working.
My debug print:
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value null
security: property package.definition new value com.sun.javaws
security: property package.definition value com.sun.javaws
security: property package.definition new value com.sun.javaws,com.sun.deploy
security: property package.definition value com.sun.javaws,com.sun.deploy
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@291aff
network: Cache entry found [url: https://site.xxx.com/EMS/classes/chart/Chart.class, version: null] prevalidated=false/0
network: Connecting https://site.xxx.com/EMS/classes/chart/Chart.class with proxy=DIRECT
network: Connecting http://site.xxx.com:443/ with proxy=DIRECT
security: Loading Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
security: Loaded Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
security: Loading SSL Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
security: Loaded SSL Root CA certificates from C:\Program Files\Java\jre6\lib\security\cacerts
security: Loading Deployment SSL certificates from C:\Documents and Settings\me\Application Data\Sun\Java\Deployment\security\trusted.jssecerts
security: Loaded Deployment SSL certificates from C:\Documents and Settings\me\Application Data\Sun\Java\Deployment\security\trusted.jssecerts
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer ROOT certificate store
security: Loaded certificates from Internet Explorer ROOT certificate store
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment session certificate store
security: Checking if SSL certificate is in Deployment permanent certificate store
network: Connecting https://site.xxx.com/EMS/classes/chart/Chart.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Checking if certificate is in Deployment denied certificate store
security: Checking if certificate is in Deployment session certificate store
security: Checking if SSL certificate is in Deployment permanent certificate store
network: ResponseCode for https://site.xxx.com/EMS/classes/chart/Chart.class : 304
network: Encoding for https://site.xxx.com/EMS/classes/chart/Chart.class : null
network: Disconnect connection to https://site.xxx.com/EMS/classes/chart/Chart.class
network: Cache entry not found [url: https://site.xxx.com/EMS/classes/, version: null]
network: Cache entry found [url: https://site.xxx.com/EMS/classes/bar/Bar.class, version: null] prevalidated=false/0
network: Connecting https://site.xxx.com/EMS/classes/bar/Bar.class with proxy=DIRECT
network: Connecting https://site.xxx.com/EMS/classes/bar/Bar.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
network: ResponseCode for https://site.xxx.com/EMS/classes/bar/Bar.class : 304
network: Encoding for https://site.xxx.com/EMS/classes/bar/Bar.class : null
network: Disconnect connection to https://site.xxx.com/EMS/classes/bar/Bar.class
network: Cache entry found [url: https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class, version: null] prevalidated=false/0
network: Connecting https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class with proxy=DIRECT
network: Connecting https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
network: ResponseCode for https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class : 304
network: Encoding for https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class : null
network: Disconnect connection to https://site.xxx.com/EMS/classes/coordaxes/CoordAxes.class
network: Cache entry found [url: https://site.xxx.com/EMS/classes/xaxial/XAxial.class, version: null] prevalidated=false/0
network: Connecting https://site.xxx.com/EMS/classes/xaxial/XAxial.class with proxy=DIRECT
network: Connecting https://site.xxx.com/EMS/classes/xaxial/XAxial.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
network: ResponseCode for https://site.xxx.com/EMS/classes/xaxial/XAxial.class : 304
network: Encoding for https://site.xxx.com/EMS/classes/xaxial/XAxial.class : null
network: Disconnect connection to https://site.xxx.com/EMS/classes/xaxial/XAxial.class
network: Cache entry found [url: https://site.xxx.com/EMS/classes/serie/Serie.class, version: null] prevalidated=false/0
network: Connecting https://site.xxx.com/EMS/classes/serie/Serie.class with proxy=DIRECT
network: Connecting https://site.xxx.com/EMS/classes/serie/Serie.class with cookie "__utma=63616955.207177272.1293600941.1293600941.1298453489.2; __utmz=63616955.1293600941.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmb=63616955.5.10.1298453489; __utmc=63616955"
network: ResponseCode for https://site.xxx.com/EMS/classes/serie/Serie.class : 304
network: Encoding for https://site.xxx.com/EMS/classes/serie/Serie.class : null
network: Disconnect connection to https://site.xxx.com/EMS/classes/serie/Serie.class
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 151766 us, pluginInit dt 14982493 us, TotalTime: 15134259 us
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@291aff
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started
NullPointerException in interval part
NullPointerException in interval label part
Lot more security messages in this. -
Problems running a java program
Hello,
I have absolutely no java experience whatsoever, and I need to fix a program that suddenly stopped running properly after several years without problems. Basically, I have a perl script that calls a java program. Everytime I run this perl script from the web browser, the java program returns an internal error:
# # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://www.blackdown.org/cgi-bin/jdk # # Error ID: 5649525455414C53504143450E4350500024 # # Problematic Thread: prio=5 tid=0x804e680 nid=0x6d16 runnable #
However, when I run the perl script command line, it runs fine. I added the -verbose option to the java call, and I discovered that the program stops running after it opens the .jar files but before it loads them .... these files have full read permissions, so I don't think that's the problem. Any ideas?
Thanks!...fix a program that suddenly stopped running properly after several years without problems.Which means either the program changed or the environment changed. I would guess the environment. The most likely possibilities: new version of the operating system, new version of perl, new version of java. Also possible: new version installed of any of the previous without removing older versions, new software not associated with the first, new mapped drives and/or changed env vars.
-
Having Problems Running my Java Progs
Hey guys,
I keep getting the following error message when I try to run any of my java programs.
Exception in thread "main"
java.lang.NoClassDefFoundError: HelloApp
this is the app that im trying to run;
public class HelloApp
public static void main (String[] args)
System.out.println("Hello, World");
}I cant see anything wrong with this piece of code. Ive definately saved the code as HelloApp.java. I've tried several different programs all with the same result. Does anyone have any ideas on why this is happening?
Thank You
JazOK, classpath is different from path, it's specifically used by java to locate .class files.
Apparently some Windoze versions do not automatically include the local directory in the classpath - or may not have a classpath variable set until you do it manually.
So, the easiest way to see if this is your problem is to set the classpath in the command line like so:
java -cp C:\WhereIHidMyFiles HelloApp
(obviously, substitute the correct directory name above) -
Problem running my Java apps in my LG phone. Please help!
Hi all!!
I am quite new to the world of J2me, altough I've been coding Java for quite a few years now.
Recently I bought a LG u 8120 phone with Java-support so I decided it was time to step into the mobile Java-world.
Now I have written my first small app, a simple timer application which my phone (strangely enough) does not already have.
So what happens is this : I create my app on my PC and package it with the WTK into a jar -file and a jad-file which i transfer to the phone.
After this I can see the name of my app in the list of available programs in the phone. But when I try to run it: Nothing. The Java logo shows up for a few seconds and then I am tossed back to the menu.
I have thought of the following as possible problems:
1. the 8120 does not support MIDP2.0
2. I am doing something wrong transfering the files
3. I have missed out on one or several necessary steps in the process
Anyone who have developed Java apps for LG phones who can give me some hints?
I've used the Sun J2ME Wireless Toolkit 2.2 with MIDP2.0 and CLDC1.1 .
The apps works fine in the emulator. The problem starts when I want to run it in the phone. The phone I've tried is an LG u8120. LG apparently does not want to make life easy for its customers, so there is no support for transfering Java apps in the vendor-supplied software. I suppose that's because they want you to only download stuff from their site. However, after surfing around on some discussion forums for a while I found a program called G-thing which can be used to upload Java apps to LG-phones via USB.
Any help is very appreciated!
Thanks,
SarahThanks,
I have tried this and ruled out some of the possible causes.
When I added some more exception handling, I could see that a "java.lang.IllegalArguenException" is thrown.
When I ran the AudioDemo package that came with WTK2.2 I noticed that the examples that uses WAV-files do not work while the rest works fine.
My new theory is now that the u8120 does not support the WAV-format, so I will try with an mp3 instead and see what happens.
Anyone who knows if LG-phones support WAV-format?
/Sarah -
Problems running standalone java
I have been writing java applets for a while in editplus then compiling them with javac in editplus and viewing them with appletviewer through editplus. I have been given a java standalone program. It compiles fine with no error messages but when i try to run it with java i get the following error message:
java.lang.NoClassDefFoundError: Server1
Exception in thread "main"
Output completed (2 sec consumed) - Normal Termination
And the program doesn't run. Can anyone see why this is?
Any help will be greatly appreciated!okay how would i go about correcting this problem?
Heres the code by the way:
import java.net.*;
import java.io.*;
public class Server1 {
public static void main(String [] args) {
ServerSocket s;
Socket clientsSocket;
try {
s = new ServerSocket(5155);
clientsSocket = s.accept();
System.out.println(clientsSocket.getLocalAddress());
System.out.println(clientsSocket.getInetAddress());
System.out.println(clientsSocket.getPort());
System.out.println(clientsSocket.getLocalPort());
OutputStream out = clientsSocket.getOutputStream();
InputStream in = clientsSocket.getInputStream();
byte sendBuffer[] = {1, 2, 3, 4, 5, 6, 7, 8};
out.write(sendBuffer);
byte receiveBuffer [] = new byte [50];
int lengthReceived = in.read(receiveBuffer);
System.out.println("Received: " + lengthReceived + " bytes.");
for (int i=0; i<lengthReceived; i++)
System.out.println((char)receiveBuffer[i] + "\n");
clientsSocket.close();
catch (java.io.IOException e) { System.out.println(e.toString()); } -
Problem Running a java applet from an HTML page
I can run my applet at the command prompt with:
appletviewer coffee.html
But when I try and open the Coffee.html by opening
the page in Internet Explorer I get the following message:
Can't find Database driver class: java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
Code: createcoffees.java
import java.applet.*;
import java.sql.*;
public class CreateCoffees extends Applet{
public void init() {
Statement stmt;
Connection con;
try {Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {con = DriverManager.getConnection("jdbc:odbc:hq","afm", "afm");
stmt = con.createStatement();
stmt.executeQuery("SELECT * FROM RM");
stmt.close();
con.close();
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
}Is your jdbc-odbc driver properly loaded? Its very clear that its a class not found exception which is thrown by this:
try {Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
} catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage()); -
Problem running with "java class"
Hi:
I developed an application in Forte. It works as expected within the IDE. I would like to run it outside the IDE with "java application.class". When I try this, it cannot find many modules. I realize I need to set the classpath, but don't know what to set it to.
Please help.
vjktmr u using windows?
if so
try this
open up the dos
then type the following command
set classpath = drive:\directory\.
drive - your working drive
directory - where you put ur java source and class files
make sure you have the . at the end of the cammand. -
Problem running servletsin java web server
After i compile my servlets and copy the class file in the servlets folder of the web server, i run the server by the
URL http://localhost:8080.
The server page of congratulations message is displayed.after that i give the URL
http://localhost/servlets/servletname
the following error is displayed.
not found error(404)
The file that you requested could not be found on this server.If you provided the URL,please notify the administrator of that server of this error.You forgot to put the port number in your URL. Try http://localhost:8080/servlets/servletname.
-
Problem running XSQLSERVLET on JAVA WEB SERVER
THE BELOW LISTED SIMPLE XSQL QUERY WHEN RUN ON JAVA WEB SERVER 2 (WITH CLASSPATH/MAPPING SETTING AS IN INSTALLATION MANUAL) GIVES FOLLOWING ERROR:
1. XML document must have a top level element.
<?xml version="1.0" encoding="UTF-8"?>
<xsql:query xmlns:xsql="urn:oracle-xsql" connection="demo">
SELECT 'Hello World' AS "GREETING" FROM DUAL
</xsql:query>
2. WHILE RUNNING INDEX.HTML FILE FROM JAVA WEB SERVER 2 IT GIVES FOLLOWING ERROR
Oracle XSQL Servlet Page Processor 1.0.4.3 (Production)
XSQL-017: Unexpected Error Occurred
java.lang.IllegalArgumentException: sun.io.ByteToCharUTF-8
at sun.io.ByteToCharConverter.getConverterClass(ByteToCharConverter.java:79)
at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:109)
at java.lang.String.(String.java:294)
at java.lang.String.(String.java:313)
at oracle.xml.xsql.XSQLUtil.XL(XSQLUtil.java:207)
at oracle.xml.xsql.XSQLServletPageRequest.getParameter(XSQLServletPageRequest.java:139)
at oracle.xml.xsql.XSQLActionHandlerImpl.variableValue(Compiled Code)
at oracle.xml.xsql.XSQLActionHandlerImpl.getAttributeAllowingParam(Compiled Code)
at oracle.xml.xsql.actions.XSQLIncludeXSQLHandler.init(XSQLIncludeXSQLHandler.java:46)
at oracle.xml.xsql.XSQLDocHandler.handlerForAction(XSQLDocHandler.java:283)
at oracle.xml.xsql.XSQLDocHandler.getDocument(Compiled Code)
at oracle.xml.xsql.XSQLPageProcessor.process(Compiled Code)
at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at com.sun.server.ServletState.callService(Compiled Code)
at com.sun.server.ServletManager.callServletService(Compiled Code)
at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
at com.sun.server.http.stages.Runner.process(Runner.java:79)
at com.sun.server.ProcessingSupport.process(Compiled Code)
at com.sun.server.Service.process(Service.java:204)
at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374)
at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
at com.sun.server.HandlerThread.run(Compiled Code)
nullWhat jdk are you using ?
I had this problem with 1.1.7 -
Java.lang.IllegalAccessError while running hello page in JDEVELOPER 10G
Hi
i am getting this error while running hello page.
PLease help me diagnosis...
D:\DevSuiteHome_1\jdevuser\jdevbin\jdk\bin\javaw.exe -jar D:\DevSuiteHome_1\jdevuser\jdevbin\j2ee\home\admin.jar ormi://10.184.155.72:23891 oc4jadmin **** -updateConfig
11/11/24 20:09:58 java.lang.IllegalAccessError: tried to access method oracle.xml.jaxp.JXDocumentBuilder.<init>()V from class oracle.xml.jaxp.JXDocumentBuilderFactory
11/11/24 20:09:58 at oracle.xml.jaxp.JXDocumentBuilderFactory.newDocumentBuilder(JXDocumentBuilderFactory.java:79)
11/11/24 20:09:58 at com.evermind.xml.JavaxXMLUtils.getJavaxDocument(JavaxXMLUtils.java:36)
11/11/24 20:09:58 at com.evermind.xml.XMLUtils.getDocument(XMLUtils.java:208)
11/11/24 20:09:58 at com.evermind.xml.XMLConfig.init(XMLConfig.java:165)
11/11/24 20:09:58 at com.evermind.xml.XMLConfig.init(XMLConfig.java:113)
11/11/24 20:09:58 at com.evermind.xml.XMLConfig.update(XMLConfig.java:477)
11/11/24 20:09:58 at com.evermind.server.XMLApplicationServerConfig.update(XMLApplicationServerConfig.java:1581)
11/11/24 20:09:58 at com.evermind.server.ApplicationServerShutdownHandler.run(ApplicationServerShutdownHandler.java:81)
11/11/24 20:09:58 at java.lang.Thread.run(Thread.java:595)
Thanks & RegardsHi,
I have checked the appl version and downloaded it correctly from metalink note. :(
but, still it doesnt work properly. :( :(
Maybe you are looking for
-
ITunes was unable to load dataclass information from Sync Services
Hi, I have Iphone 3GS with the latest version 3.1.3 and iTunes 9.1. After i uograded my iPhone to the latest version i am not able to sync with the iTunes and receive the message "iTunes was unable to load dataclass information from Sync Services, Re
-
How to install Windows 8 on Satellite C855-21W - No disk
Hello, Recently the HDD from my SATELLITE C855-21W crashed. All Data wear lost. Serial: YC273011R Now i would like to reinstall Windows 8. But i have no CD /DVD and all partitions on the HDD are gone. How can i reinstall Win 8 on the Laptop again? Wh
-
I migrated photoshop CS4 onto my new mac laptop. Error message on startup: Licensing for this product has stopped working. Error: 150:30 What do I do?
-
How to use a random number equal another number. (with my source code)
hi, i'm having trouble with this assignment. 3. Determine how many times a die must be rolled in order to win a prize. (This represents one trial.) Print this value to a text file. 4. Conduct at least 1,000 trials. 5. Read the data back in from all o
-
How do transfer movies from ITV to macbookpro?
I recently purchased movies through ITV and they appear on my movie list of movies. I would like to copy these movies to my macbookpro. Anyone know how to do this?