Please help me :status : failure -java.lang.NullPointerExeption
<p>
yesterday i can connect to db with oracle sql developer,
but today i can not connect to my db,
it send follwing error:
status : failure -java.lang.NullPointerExeption
Thanks
</p>
Edited by: user10552477 on Nov 7, 2008 1:25 AM
Well what have you changed then?
Do you remember the original settings?
Why did your friend tell you to change something?
Were you facing any problem when your friend helped you with these non-working settings?
Dear Satish Kandi
I do'nt now change.
I have a connection that i connect to my db .
My freind tell me that maybe miss the java.exe
i solve my path but dont solve my problem .
i install oracle 11g in new pc , but it send same error .
Similar Messages
-
Please HELP me with installation - java.lang.noclassdeffounderror:
Please Help! For school we need to install JAVA. I installed JDK 5.0 and id did not work. I got exception in thread "main" java.lang.noclassdeffounderror: hello. I was using Texpad to write, compile, and run it. In short I deleted all JAVA 5.0 using My Computer program removal. I installed JAVA 1.4..2_10 and I am still getting that same error. I want the JAVA 1.4..2_10 to be installed and not JAVA.5.0.
My System Variable CLASSPATH still shows C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip. My System Variable PATH has nothing as far as JAVA in it. MY PATHEXT has JS and JSE amoung other things in it. My System Variable QTJAVA still has Files\Java\jre1.5.0_03\lib\ext\QTJava.zip in it.
Please tell me step-by-step how I can fix this. I never updated these variables before. What do I need to type and where? What do I need to get rid of or change?
PLEASE HELP!
Thanks,
JimI left my System variable classpath --> C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip I left my QT JAVA --> C:\Program Files\Java\jre1.5.0_03\lib\ext\QTJava.zip I added Path --> ;C:\j2sdk1.4.2_10\bin and then restarted my computer. I added hello file in C:\j2sdk1.4.2_10\bin and tried to compile it under a new name and it would not compile. it gave me the error below. I was able to compile other java program in my other folder in a different directory. I am still getting the same error messages/ Anything else I should try? IS there anyplace or person I can call who would come and fix this? Something is wrong. This should not be giving me this much trouble. All The Java directions on other websites tell me to do different things. I am so confused... please help.
I get this during the compilenow:
javac: invalid flag: C:\j2sdk1.4.2_10\bin\helloa.txt
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options
Tool completed with exit code 2
Jim
If you can fix this I will give you 14 points. I hope it is enough. I just want this to work for school. -
Hi all.
I have installed the cold fusion server.
at first with mac server, apache..... but after install cold fusion and want to go to the admin page:
HTTP Status 500 - java.lang.NullPointerException
I deinstalled the server from mac and cold fusion..
after a fresh install of coldfusion 11 and use the build in server..
the same error..
does anybody knows the problems?
I Use Java 7 Update 67
A friend of me have installed it .. it runs
greetings thorstenHi this is my cold fusion Error LOG
java.lang.NullPointerException
at coldfusion.CfmServlet.init(CfmServlet.java:97)
at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:104 0)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Sep 16, 2014 8:30:59 AM org.apache.catalina.core.ApplicationContext log
INFO: failed to load: coldfusion.CfmServlet
Sep 16, 2014 8:30:59 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Allocate exception for servlet CfmServlet
java.lang.NullPointerException
at coldfusion.CfmServlet.init(CfmServlet.java:97)
at coldfusion.bootstrap.ClassloaderHelper.initServletClass(ClassloaderHelper.java:121)
at coldfusion.bootstrap.BootstrapServlet.init(BootstrapServlet.java:59)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:864)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:134)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:422)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:104 0)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745) -
Please help me with these java puzzle ?
Dear all,
My friend send me typical java puzzle about java.util.ArrayList
which is getting messy. Please help me out. It's not a homework.
Please help me with these java puzzle ?
Dear all,
My friend send me typical java puzzle about java.util.ArrayList
which is getting messy. Please help me out. It's not a homework.
import java.util.*;
public class MyInt ______ ________ {
public static void main(String[] args) {
ArrayList<MyInt> list = new ArrayList<MyInt>();
list.add(new MyInt(2));
list.add(new MyInt(1));
Collections.sort(list);
System.out.println(list);
private int i;
public MyInt(int i) { this.i = i; }
public String toString() { return Integer.toString(i); }
________ int ___________ {
MyInt i2 = (MyInt)o;
return ________;
}Hints , fill the underlines with below :
implements
extends
Sortable
Object
Comparable
protected
public
i = i2.i
i
i2.i=i
compare(MyInt o, MyInt i2)
compare(Object o, Object i2)
sort(Object o) sort(MyInt o)
compareTo(MyInt o)
compareTo(Object o)Dear all,
My friend send me typical java puzzle aboutNotwithstanding your pathetic protestations typicial
of all your posts this is NOT a typical java "puzzle"
but is indeed a typical homework puzzle.
And it's damn easy if you spent 30 minutes with a
tutorial.
DO YOUR OWN HOMEWORK!
Hey i did it.
import java.util.*;
public class MyInt implements Comparable {
public static void main(String[] args) {
ArrayList<MyInt> list = new ArrayList<MyInt>();
list.add(new MyInt(2));
list.add(new MyInt(1));
Collections.sort(list);
System.out.println(list);
private int i;
public MyInt(int i) { this.i = i; }
public String toString() { return Integer.toString(i); }
public int compareTo(Object o){
MyInt i2 = (MyInt)o;
return i;
}E:\>javac MyInt.java
Note: MyInt.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
E:\>java MyInt
[1, 2] -
Hello all,
I'm writing a ClassLoader and the funniest things are happening. If I load a compiled class for the first time after compilation everything is ok. Once I change the class and recompile it, it starts putting out java.lang.ClassFormatError: (Truncated class file). If I alter the changes back to normal and recompile. It works again. Is there some sort of buffer which keeps the once loaded class in memory, even after rebooting?
Please help, I'm at a loss
Gideonhi dmbdmb,
I got following error when try to run a java code in JBoss.
15:39:56,696 ERROR [LogInterceptor] Unexpected Error:
java.lang.ClassFormatError: Thilina (Truncated class file)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
at com.sun.tools.javac.v8.StringCompiler$Loader.findClass(StringCompiler
.java:63)
at com.sun.tools.javac.v8.StringCompiler.executeMethodWithReturnType(Str
ingCompiler.java:120)
at cc.aot.qVoice.domain.ejb.qVoiceManager.qVoiceManagerEJB.getVxmlString
(qVoiceManagerEJB.java:125)
I use JBoss 3.0.6 and sdk 1.4. In my program, classes are create and load on the fly. Then using Reflection API I called some
methods in the dynamically created class(this class not
write into a file and it is taken as a String variable).
I refferd this url as a guid to write class loader and compiler.(actually same thing i copied
from there and change it's name Pmat1 to StringCompiler)
http://forum.java.sun.com/thread.jsp?thread=347467&forum=4&message=1439418
When I run this as a normal application, it is work well. Then I try to run it in a jboss and it will give the above error.
In here I Wote some EJBs and struts also and i called the methodds in the StringCompiler(Pamat1) class in a EJB. Thilina is
the name of the dynamically created calss and StringCompiler is the class that includes the class loader and compiler methods
as in the above url. qVoiceManagerEJB has a getvxmlString method. Whithin this method
i called required the methods in the String compiler.
Can u some body help me. Thanx in advanced for any help.
anjithalb -
Help with error "main" java.lang.NoClassDefFoundError:
I am pretty new to Java and I just install the JDK1.4.2 03
I am getting an error when I run the class file TestChart.class with the
java.exe:
Exception in thread "main" java.lang.NoClassDefFoundError:
I have several class files in the directory d:\personal\java-ChartGen
Chart.class
ChartColourScheme.class
ChartPanel.class
ColorPanel.class
TestChart.class
TestIt.class
All these files are for the program.
Can some one help me why is this happening?? Is there something I can do
that I am missing???
I tried using the -CLASSPATH to direct it to the same directory but still
with the same error.
Please help me. Thank youI use the command line as follows:
c:\j2sdk1.4.2_03\bin\java d:\personal\java-ChartGen\TestChart.class
The full error message is as follows:
Exception in thread "main" java.lang.NoClassDefFoundError:
d:\personal\java-ChartGen\TestChart/class
I thought it may be the CLASSPATH, but all my class files are located in the
same folder and I used the switch -classpath but the same error comes up. -
Can someone please help me with a java assignment
Hey all,
I have a favor to ask I have a program that I need for my java class, I have the just of it but I can't figure out the rest, can anybody please help me here is the directions:
Let's revisit fibonacci numbers, looking at it as a process involving iteration and arrays. Create an array fib[] of 101 elements. Make fib[0] = 0 and fib[1] = 1. Then, in an iterative process going from 2 to 100, compute fib[k]. These numbers get quite large; make it an array of double.
Then, let the user select a number (such as 7) and have the application display the corresponding finbonacci number (in this case 13). Do this as often as the user wants. If a number larger than 100 is provided, display an error message, but don't terminate the program.
Here is what I have so far: Please add on and feel free to return to me please, thank you:
// This is an application that transforms numbers into their Fibonacci number
import javax.swing.*;
public class Fibonacci {
public static void main( String args[] ){
int k; //simple counter
int numSize; // how many numbers were entered
int theNum; // the number entered by the user
String response; //response of the user
// define the array
double fib[] = new double[ 101 ];
// read in the numbers into an array
k = 0;
response = JOptionPane.showInputDialog( "Enter the first number" );
theNum = Integer.parseInt( response );
while (theNum > 0){
if (theNum > 100)
k++;
fib [ 1 ] = 1;
fib [ 2 ] = 1;
response = JOptionPane.showInputDialog( "Enter the next number, negative to end" );
theNum = Integer.parseInt( response );
} // end while
numSize = k;
// terminate
System.exit( 0 );
}// end main
} //end class FibonacciTry this program..Hope it helps
import javax.swing.*;
public class Fibonacci
static double fib[];
public Fibonacci()
fib = new double[ 101 ];
fib[0] = 0;
fib[1] = 1;
for(int i = 2; i < fib.length; i++)
fib[i] = fib[i -1] + fib[i - 2];
public static void main( String args[] )
boolean end = true;
String response = "";
int theNum = 0;
new Fibonacci();
while(end)
response = JOptionPane.showInputDialog( "Enter the number. 999 to end" );
try
theNum = Integer.parseInt( response );
if(theNum == 999)
end = false;
else if(theNum <101)
String Message = "The Fibonacci number at "+ theNum + " is : "+ fib[theNum - 1];
JOptionPane.showMessageDialog(null, Message, "Fibonacci Number", JOptionPane.INFORMATION_MESSAGE);
else
JOptionPane.showMessageDialog(null, "Input should be less than 100", "Error", JOptionPane.ERROR_MESSAGE);
catch(NumberFormatException ex)
JOptionPane.showMessageDialog(null, "Enter Numeric values", "Error", JOptionPane.ERROR_MESSAGE);
System.exit(0);
}// end main
} //end class FibonacciVish -
I periodically get a stuck Execute thread on my Weblogic 8.15 server
during a call to a Stateless Session Bean. When I do thread dumps, the
thread is always stuck in the same place (in
java.lang.String.equals(String.java:619) or in the call immediately above it
java.util.LinkedList.indexOf(LinkedList.java:397)). Even though the thread
dump indicates that the thread is in a runnable state, if I do multiple
thread dumps over a period of time, the stack trace always indicates that
the thread is in the same place. The thread remains stuck until Weblogic is
restarted. Other client applictions can make session bean calls, but each
stuck thread seems to still take up lots of CPU time. I have let the stuck
threads run overnight, and the stack trace from the thread dump always shows
them executing the same String/LinkedList code. In each case, our code is
trying to iterate over a collection
Does anybody know what could cause this problem, and how to fix it? I get
StuckThreadMaxTime errors in the log:
####<Dec 4, 2005 10:47:25 AM EST> <Error> <WebLogicServer> <nybill>
<myserver> <weblogic.health.CoreHealthMonitor> <<WLS Kernel>> <>
<BEA-000337> <ExecuteThread: '4' for queue: 'weblogic.kernel.Default' has
been busy for "1,263" seconds working on the request
"ncss.billing.ejb.billAdmin.session.BillAdminSession_uli3xb_EOImpl", which
is more than the configured time (StuckThreadMaxTime) of "1,200" seconds.>
Here are some stack traces from different thread dumps (I have the full
thread dumps if necessary):
"ExecuteThread: '10' for queue: 'weblogic.kernel.Default'" daemon prio=5
tid=0x7720eb98 nid=0xd68 runnable [571f000..571fdb0]
at java.lang.String.equals(String.java:619)
at java.util.LinkedList.indexOf(LinkedList.java:398)
at java.util.LinkedList.contains(LinkedList.java:176)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getDailyCallSummary(XMLBillCr
eation.java:1992)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getGraphs(XMLBillCreation.jav
a:1931)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getLocations(XMLBillCreation.
java:2618)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.createXMLBill(XMLBillCreation
.java:236)
at
ncss.billing.ejb.billAdmin.session.BillAdminSessionEJB.getBillAsXml(BillAdmi
nSessionEJB.java:341)
at
ncss.billing.ejb.billAdmin.session.BillAdminSession_uli3xb_EOImpl.getBillAsX
ml(BillAdminSession_uli3xb_EOImpl.java:100)
at
ncss.billing.ejb.billAdmin.session.BillAdminSession_uli3xb_EOImpl_WLSkel.inv
oke(Unknown Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:108)
at
weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:363)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
"ExecuteThread: '22' for queue: 'weblogic.kernel.Default'" daemon prio=5
tid=0x772538d0 nid=0xe24 runnable [497f000..4fdb0]
at java.lang.String.equals(String.java:619)
at java.util.LinkedList.indexOf(LinkedList.java:398)
at java.util.LinkedList.contains(LinkedList.java:176)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getMostExpensiveOrLongestCall
s(XMLBillCreation.java:1892)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getTopTenReport(XMLBillCreati
on.java:1798)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getTopTenReports(XMLBillCreat
ion.java:1751)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getLocations(XMLBillCreation.
java:2612)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.createXMLBill(XMLBillCreation
.java:236)
at
ncss.billing.ejb.billAdmin.session.BillAdminSessionEJB.getBillAsXml(BillAdmi
nSessionEJB.java:341)
at
ncss.billing.ejb.billAdmin.session.BillAdminSession_uli3xb_EOImpl.getBillAsX
ml(BillAdminSession_uli3xb_EOIm.java:100)
at
ncss.billing.ejb.billAdmin.session.BillAdminSession_uli3xb_EOImpl_WLSkel.inv
oke(Unknown Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:108)
at
weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:363)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
"ExecuteThread: '21' for queue: 'weblogic.kernel.Default'" daemon prio=5
tid=0x76afb060 nid=0x498 runnable [48af000..48fdb0]
at java.lang.String.equals(String.java:619)
at java.util.LinkedList.indexOf(LinkedList.java:398)
at java.util.LinkedList.contains(LinkedList.java:176)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getMostFrequentlyCalledNumber
sOrCitiesReport(XMLBillCreation.java:1839)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getTopTenReport(XMLBillCreati
on.java:1772)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getTopTenReports(XMLBillCreat
ion.java:1743)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.getLocations(XMLBillCreation.
java:2612)
at
ncss.billing.broadviewBill.xml.XMLBillCreation.createXMLBill(XMLBillCreation
.java:236)
at
ncss.billing.ejb.billAdmin.session.BillAdminSessionEJB.getBillAsXml(BillAdmi
nSessionEJB.java:341)
at
ncss.billing.ejb.billAdmin.session.BillAdminSession_uli3xb_EOImpl.getBillAsX
ml(BillAdminSession_uli3xb_EOImp.java:100)
at
ncss.billing.ejb.billAdmin.session.BillAdminSession_uli3xb_EOImpl_WLSkel.inv
oke(Unknown Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
:108)
at
weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubjec
t.java:363)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:3
0)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
The code in LinkedList that it seems to be executing is the following:
Line#
397 for (Entry e = header.next; e != header; e = e.next) {
398 if (o.equals(e.element))
399 return index;
400 index++;
401 }
I am running Weblogic 8.15 on Windows 2000.
Thanks for any help,
- Donnjb7ty wrote:
I suggest dropping that example program and concentrating on reading a book on Java such as 'Head First in Java'. Otherwise, you will spend a lot of time trying to get something to work and gain little value from it.Likewise... Jumping into reflections before you can [read a stack-trace|http://www.0xcafefeed.com/2004/06/of-thread-dumps-and-stack-traces/] is like signing up a toddler for the New York Marathon... it's probably simply beyond your skill level... so step back... go read a book, do some tutorials, get your head around just the process of the designing, writing, compiling, running, and debugging java programs... and what the different diagnostics mean... Then, equipped with your nose-clip and your trusty stone ;-) you contemplate leaping into the deep end ;-)
Cheers. Keith. -
Please help me with JACOB: Java-Com Bridge
While experimenting with Jacob 1.13, I am not even able to run the sample code that comes with the source package. I get an error as below:
Exception in thread "main" java.lang.UnsatisfiedLinkError: createInstanceCan you help?
And, is there another way to access MS Word? Basically what I want to do is search and find some text in Word documents and apply some styles to it.
Thanks in advance for your advice!I am guessing that underneath the code you see, it uses the MS Word DLLs to emulate MS Word. So if you don't actually have Word installed in your machine you won't be able to do this.
-
Please help, I am having java.rmi.UnmarshalException.
First I would like to show you the interface code i want to implement, following is the code.
package bis.opencontrol.opcconnector;
import java.rmi.Remote;
import java.rmi.RemoteException;
import javax.swing.tree.*;
public interface ReceiveNodeInterface extends Remote
DefaultMutableTreeNode getRootNode(String x) throws RemoteException;
The server class which implements this interface is as follows...
package bis.opencontrol.opcconnector;
public class RMIServiceToSendNodesHierarchy extends java.rmi.server.UnicastRemoteObject implements ReceiveNodeInterface
public DefaultMutableTreeNode getRootNode(String x) throws RemoteException
System.out.println(x);
return(TimerToGetNodesHierarchy.getRootNode());
public RMIServiceToSendNodesHierarchy() throws RemoteException
try
thisAddress= (InetAddress.getLocalHost()).toString();
catch(Exception e)
throw new RemoteException("can't get inet address.");
thisPort = 1099;
System.out.println("Starting RMI service at address = "+thisAddress+" and PortNo = "+thisPort);
System.getProperties().setProperty("java.security.policy", "wideopen.policy");
if(System.getSecurityManager() == null)
System.setSecurityManager(new RMISecurityManager());
try
registry = LocateRegistry.createRegistry(thisPort);
registry.rebind("RMIServiceToSendNodesHierarchy", this);
The client class which will send request to server is as follows...
package tagbrowser;
public class TagBrowser extends javax.swing.JFrame
ReceiveNodeInterface rmiServer;
public TagBrowser() throws MalformedURLException
getRootNodeIntoTree();
void getRootNodeIntoTree() throws MalformedURLException
String text = "Please, send us the root node.";
try
registry = LocateRegistry.getRegistry(serverAddress, 1099);
String[] list = registry.list();
if( list == null )
throw new RemoteException( "list == null" );
else
for (int k=0; k < list.length; k++)
System.out.println("registry" + k + ": " + list[k].toString());
System.getProperties().setProperty("java.security.policy", "wideopen.policy");
if(System.getSecurityManager() == null)
System.setSecurityManager(new RMISecurityManager());
rmiServer = (ReceiveNodeInterface)(registry.lookup("RMIServiceToSendNodesHierarchy"));
rootNode = rmiServer.getRootNode(text);
catch(RemoteException e){
e.printStackTrace();
catch(NotBoundException e){
e.printStackTrace();
Well, when I run this rmi client application I get this following error...
registry0: RMIServiceToSendNodesHierarchy
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at tagbrowser.TagBrowser.getRootNodeIntoTree(TagBrowser.java:126)
at tagbrowser.TagBrowser.<init>(TagBrowser.java:39)
at tagbrowser.Main.main(Main.java:19)
Caused by: java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
... 4 more
BUILD SUCCESSFUL (total time: 1 second)System.out.println("Starting RMI service at address = "+thisAddress+" and PortNo = "+thisPort);That's not true unless you call super(1099) inside this constructor. So at this point you are printing misleading information.
System.getProperties().setProperty("java.security.policy", "wideopen.policy");
if(System.getSecurityManager() == null)
System.setSecurityManager(new RMISecurityManager());
}You normally don't need a security manager in an RMI server. You can delete all this.
package tagbrowser;I would expect to see either import bis.opencontrol.opcconnector.* or import bis.opencontrol.opcconnector.ReceiveNodeInterface here. So there is clearly something wrong with your project structure. I suspect you have copied ReceiveNodeInterface from the server package to the client. That isn't valid. The remote interface is the same at both client and server.
I am having java.rmi.UnmarshalExceptionWell, actually you are having java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
due to the error described above. This also implies that bis.opencontrol.opcconnector.ReceiveNodeInterface needs to be available to the client via its classpath, i.e. usually via the same JAR that the client classes are in. -
Help needed with JNI - java.lang.UnsatisfiedLinkError
I need some help with JNI. I am running on Sun Solaris 7 using their CC compiler. I wrote a simple java program that calls a native method to get a pid. Everything work until I use cout or cerr. Can anyone help? Below is what I am working with.
Note: The application works. The problem is when the C++ code tries to display text output.
My error log is as follows:
java Pid
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/dew/test/libPid.so: ld.so.1: /usr/j2se/bin/../bin/sparc/native_threads/java: fatal: relocation error: file /home/dew/test/libPid.so: symbol __1cDstdEcerr_: referenced symbol not found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at Pid.<clinit>(Pid.java:5)
Pid.java
========
* Pid: Obtains the pid from the jvm.
class Pid {
static { System.loadLibrary("Pid"); }
public native int getPid();
public static void main(String args[])
System.out.println("Before construction of Pid");
Pid z = new Pid();
System.out.println(z.getPid());
z = null;
Pid.cpp
=========
* Native method that obtains and returns the processid.
#include "Pid.h"
#include "unistd.h"
#include <iostream.h>
JNIEXPORT jint JNICALL Java_Pid_getPid(JNIEnv *env, jobject obj) {
/* cout << "Getting pid\n"; */
cerr << "Getting pid\n";
/* printf("Getting pid\n"); */
return getpid();I forgot to include my build information.
JAVA_HOME = /usr/j2se/
LD_LIBRARY_PATH = ./:/opt/readline/lib:/opt/termcap/lib:/usr/bxpro/xcessory/lib:/${JAVA_HOME}/lib:/usr/RogueWave/workspaces/SOLARIS7/SUNPRO50/0d/lib:/usr/RogueWave/workspaces/SOLARIS7/SUNPRO50/3d/lib:/usr/sybase/lib
javac Pid.java
javah Pid
CC -G -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris Pid.cpp -o libPid.so
Thanks again,
Don -
AIA Install Failure - java.lang.NoClassDefFoundError
Installing patched 11.1.1.2 AIA on SOA 11.1.1.3. Used both UI and silent install. During the [Deploy Application Configurations] section, build fails. Error below. Could use some guidance thanks!
BUILD FAILED
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:BUILD FAILED
/home/oracle/AIA/Infrastructure/Install/AID/AIAInstallDriver.xml:146: The following error occurred while executing this line:
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:/home/oracle/AIA/Infrastructure/Install/AID/AIAInstallDriver.xml:146: The following error occurred while executing this line:
/home/oracle/AIA/Infrastructure/Install/AID/AIAExecuteDriver.xml:102: The following error occurred while executing this line:
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:/home/oracle/AIA/Infrastructure/Install/AID/AIAExecuteDriver.xml:102: The following error occurred while executing this line:
/home/oracle/AIA/Infrastructure/Install/AID/AIAExecuteDriver.xml:58: The following error occurred while executing this line:
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:/home/oracle/AIA/Infrastructure/Install/AID/AIAExecuteDriver.xml:58: The following error occurred while executing this line:
/home/oracle/AIA/aia_instances/EBS1/tmp/AIDExecuteDP_temp_914301914.xml:75: The following error occurred while executing this line:
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:/home/oracle/AIA/aia_instances/EBS1/tmp/AIDExecuteDP_temp_914301914.xml:75: The following error occurred while executing this line:
/home/oracle/AIA/Infrastructure/Install/AID/lib/AIDConfigurationLibraryTasks.xml:607: The following error occurred while executing this line:
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:/home/oracle/AIA/Infrastructure/Install/AID/lib/AIDConfigurationLibraryTasks.xml:607: The following error occurred while executing this line:
/home/oracle/Middleware/Oracle_SOA1/bin/ant-sca-deploy.xml:141: java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:/home/oracle/Middleware/Oracle_SOA1/bin/ant-sca-deploy.xml:141: java.lang.NoClassDefFoundError: org/apache/commons/cli/ParseException
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:
Total time: 1 minute 10 seconds
[CONFIG] [AIA Configuration] [Deploy Application Configurations]:Total time: 1 minute 10 seconds
Deployment Command Return Value Configuration: 1
[CONFIG] [AIA Configuration]:Deployment Command Return Value Configuration: 1
[CONFIG] FAILED:Deploy Application Configurations
[CONFIG] FAILED:Deploy Application Configurations
Question Received:Failed to Deploy ApplicationIs it possible for you to paste the deployment command that was executed for the above failure? You could try doing a manual install. Before executing the FPInstallDP.xml during the manual install add the following jar to your classpath
${MW_HOME}/oracle_common/jlib/commons-cli-1.0.jar. -
Please help to upload with java servlet
I want to install a java servlet uploader on my web site and i try to do it many times but i can't beacuse i dont know what are the essentials that should be found on the server to install java servlet in right way ..
so please help me to do this .. and tell me what i need to upload files correctly with java servlet .
any help will be appreciated ..
thank you !Hello newton ..
I only want to know what are the requirments that let me use the java servlet on linux system .. because i want use an uploader using java servlet ..
thank u newton ..
any help will be appreciated -
Please Help!!! Java Applet is not compiling
Hi everbody,,,
im using Eclipse Applet Viewer and it was running yesterday but today it is not???
here is one exmaple:
import java.applet.Applet;
import java.awt.*;
import java.net.*;
public class ImageExample extends Applet {
MediaTracker mt;
Image img;
URL base;
public void init(){
mt = new MediaTracker(this);
try{
base = getDocumentBase();
catch(Exception e){}
img = getImage(base,"1.gif");
mt.addImage(img,1);
try{
mt.waitForAll();
catch(InterruptedException e){}
public void paint(Graphics g){
g.drawImage(img, 20, 20, this);
}it not working with any examples? and i dont why?
here is the error
====================================================================
load: class ImageExample.class not found.
java.lang.ClassNotFoundException: ImageExample.class
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:626)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:779)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:708)
at sun.applet.AppletPanel.run(AppletPanel.java:362)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: /usr2/httpd/jspapps/tomcat/ImageExample/class.class (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:295)
at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:173)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:170)
... 8 more
====================================================================
im using this tutroial to run the Applet
http://www.cs.utah.edu/classes/cs1021/notes/lecture03/eclipse_help.html
Please Advice Me
thanx in advanceup,,, up
-
Please help "http status 404 - the requested resource is not available"
After restarting apache and tomcat all pages under webapps/ROOT became unavailable, but pages in other webapps are still available. Almost looks like there is filter somewhere. Does anyone has any idea where should I look? Thanks!
additional info:
all pages in webapps/test were also not available, but when I renamed webapps/test to webapps/newapp then it owrks fine. Definitely there seem to be a filter somewhere but where??? Please help!
Maybe you are looking for
-
How do I update the MacBook Pro 5.5 with OS X version 10.5.8 version to an OS X version 10.6 or better to allow running QuickBooks 2011?
-
Hi Guys, We are having a problem translating these scenario to codes: <b>Total = 1600</b> <b>Given items:</b> 200 300 400 900 to get the total we need to add (900 + 400 + 200) to get the exact value. other scenarios: Total: 1350, 750, etc... In all
-
JSF , DataTable, deletion question
I have a collection of customer DTOs that are outputed using a datatabe. Each row has an Action column with a delete commandLink which points to my public deleteCustomer method. I have having problem with passing the customer id from the table to my
-
YOUR HELP IS VERY MUCH APPRECIATED... IM DEAD UHHH
I have a flash file but the problem is the scripts are object-oriented or (entered in some frames) My professor prohibit that kind of method and I should create an AS file(package or class for those)... to be able to execute. Meaning it could be in s
-
i get a windows installer package not running or installing properly error when i try to install and update to the new icloud control panel.