Java.lang.Process  - detecting process termination asynchronously

Hi All,
I was wondering if there is anyway to know when a Process (run with Runtime.exec()) has terminated without dedicating a thread per Process and using waitFor().
The reason I want this is that I have an application running many such processes concurrently, and I wouldn't want to dedicate a thread for each process to detect its termination.
What I would REALLY like is something like the asynchronous IO 'select' method so that a single thread can block until one of a set of processes terminates.
Polling would not be as good, but also a viable alternative. However, the only way I could see is calling exitValue() periodically on all Process objects - this would mean getting IllegalThreadStateExceptions thrown galore, as long as the process doesn't terminate. This is both ugly and inefficient (makes the penalty for polling even worse - we generate an exception for each non-terminated process polled...).
Does anyone have any tips I can use to implement some sort of solution?
Thanks,
Ophir.

>
What's the requirement for detecting the completed
processes? I'm not really sure why the Thread per
process version wasn't acceptable. How many processes
are there?
Well... it's an application server, and I'm providing a generic capability. Theoretically, it could be hundreds of processes.
Also, did you make sure that the Process Object is
indeed not collectable until the process is complete?I have to say I was pretty skeptical about this myself... ;)
I have made the test as well as I know: I ran a long running process, and then terminated it with 'kill'.
I also ran 'sleep 60' to see what happens on normal termination.
I saw nothing added to the queue while the process was up, and immediate enqueuing after process termination.
I guess there's no way of making ABSOLUTELY sure this works but if it didn't become collectable 20 consecutive times when up, and became collectable immediately when terminated, that's pretty strong circumstancial evidence...
Still I just wish there was a neater, tighter solution (though, using your hack, I'm going to get a lot of admiration from some of the people around here - they don't need to know where I got it...).

Similar Messages

  • Error: java.lang.nullPointerException when process is complete

    Hello,
    I keep getting the below error in the log file when the process is complete, does any one has this error before?  The error does not affect the process but it is kind of annoying when looking at the log file.  I try to use the other component beside the Foundation>DecisionPoint>execute but I still get the same error.
    [5/16/11 14:57:19:047 CDT] 00000047 AWS           E com.adobe.workflow.engine.ProcessEngineBMTBean stallAction stalling action-instance: 40746 with message: javax.ejb.TransactionRolledbackLocalException:  ; nested exception is: java.lang.NullPointerException
    Can any one please advise on how to fix the error above to stop showing in the log file. I am still using LC ES 8.2.1 with SP3.
    Thanks,
    Han Dao

    If you could give a little more info it would help. The web.xml for example, if your mapping it correctly, etc...

  • FCC error :java.lang.Exception: Column value '   ' too long

    Hi all,
    I am using FCC on receiving File adapter...
    While executing i am getting this error in CC monitor
    com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '   ' too long (>1 for 2. column) - must stop',
    i searched in SDN but no luck till now..
    Plz help me out..
    Thanx in advance.

    Hi,
    Check ur FCC parameters,
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani.
    Reward points if Helpful

  • Java.lang.InternalError: Werent current caller

    I'm running the J2EE Sample for JDeveloper 9i.
    The EJB.jpr project compiles without errors. orderItems run without error.
    Running SampleorderItemsClient.java gives a java.lang InternalError.
    See server stacktrace:
    com.evermind.server.rmi.OrionRemoteException: java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
         java.lang.Exception com.evermind.server.ejb.EJBUtils.getUserException(java.lang.Throwable, boolean)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    at connection to localhost/127.0.0.1 as admin
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         void __Proxy1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void SampleorderItemsClient.main(java.lang.String[])
         Nested exception is:
    java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    at connection to localhost/127.0.0.1
         void Orders_EntityBeanWrapper0.setEntityBean(javax.ejb.EntityBean)
         void com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(com.evermind.server.ejb.EvermindEntityContext, boolean)
         void com.evermind.server.ejb.EntityEJBObject.releaseContext(boolean)
         ejbsample.Orders OrdersHome_EntityHomeWrapper4.create(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void ejbsample.impl.orderItemsBean.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         void orderItems_StatelessSessionBeanWrapper1.addOrder(long, java.lang.String, java.lang.String, java.lang.String, java.lang.String, long)
         java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
         void com.evermind.server.rmi.RMICallHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
         void com.evermind.server.rmi.OrionRemoteException.receive(java.net.InetAddress, java.lang.String)
         void com.evermind.server.rmi.RMIConnection.handleMethodInvocationResponse()
         void com.evermind.server.rmi.RMIConnection.run()
         void java.lang.Thread.run()
    Process exited with exit code 0.
    Can you tell me what this means?
    Thx

    Chris,
    The problem is that both clients and EJBs are in the same server and you are using RMIInitialContextFactory. You have to use default context and package this client in the same EAR. Please look at http://otn.oracle.com/sample_code/tech/java/oc4j/htdocs/oc4jsamplecode/oc4j-demo-ejb.html#CMP for samples. Also some EJB/client sample programs are packaged with Oc4J disand you can find at $IAS_HOME/j2ee/home/demo/cmp distribution ctory.
    However the client program should work fine if your client and EJBs are running on different Oc4J containers.
    regards
    Debu
    Hi Debu,
    the client is a java application. Here is the code:
    [...in main method...]
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "admin");
    env.put(Context.PROVIDER_URL, "ormi://CHRISTIANE/statful");
    Context ctx = new InitialContext(env);
    PersonHome personHome = (PersonHome)ctx.lookup("Person");
    Person person;
    person = personHome.create( 14261026 );
    CU, Chris

  • Error in XML Gateway Processing - java.lang.OutOfMemoryError

    Hi All,
    We have B2B Customizations for Processing Orders in our Applications .
    While an Inbound Document(ORDERSTATUS Document) got processed in our Application, we could find the Document being errored out in XML gateway with the following errors:
    (Note: Partners are on E2Open Gateway and we dont use Webmethods)
    1) ORA-29532: Java call terminated by uncaught Java exception: java.lang.OutOfMemoryError- ECX_INBOUND_NEW.PROCESS_XML_DOC
    2) ORA-29532: Java call terminated by uncaught Java exception: java.lang.OutOfMemoryError - ecx_utils.INITIALIZE:
    The Error has occured only twice (one in the month of May and the other in June) and its not replicable.
    We verified all the Trending aspects (If the Issue is due to XML Document content, Specific to a particular Partner etc).
    But we didnt find any clue about the occurence of this error.
    Kindly provide your views on the occurence of the error.
    Thanks in Advance,
    Mangala.

    Hi Mangala,
    This error comes when JVM runs out of memory. Few cause may be -
    1. You are trying to operate on a very large file (comparing to your system's primary memory)
    2. You are trying to parse an xml, use SAX parser for best performance
    3. Your JVM_OPTIONS value is not sufficient
    You may consider increasing your JVM_OPTIONS value to some appropriate limit.
    Are you working with Matthew Sullivan/Richard's team?
    Regards,
    Anuj

  • JRun process (Jrun 4 updater 4) suddenly down with exception "java.lang.NegativeArraySizeException"

    We are using Jrun 4 updater 4 in Solaris 8 server, however,
    the JRun process suddenly down with core file generated.
    Exception "java.lang.NegativeArraySizeException" can be seen
    in Jrun debug log as below, anybody can help!
    09/10 22:28:45 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:45 debug Demultiplexer terminating on exception
    java.lang.NegativeArraySizeException
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:28:45 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:47 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:47 debug Demultiplexer terminating on exception
    java.lang.NegativeArraySizeException
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:28:47 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:51 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:51 debug Demultiplexer terminating on exception
    java.io.EOFException
    at
    java.io.DataInputStream.readFully(DataInputStream.java:153)
    at
    java.io.DataInputStream.readFully(DataInputStream.java:126)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:28:58 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:58 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:58 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:58 debug Demultiplexer terminating on exception
    java.lang.NegativeArraySizeException
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:28:58 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:28:58 debug Demultiplexer terminating on exception
    java.io.EOFException
    at
    java.io.DataInputStream.readFully(DataInputStream.java:153)
    at
    java.io.DataInputStream.readFully(DataInputStream.java:126)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:21 debug Demultiplexer terminating on exception
    java.io.EOFException
    at
    java.io.DataInputStream.readFully(DataInputStream.java:153)
    at
    java.io.DataInputStream.readFully(DataInputStream.java:126)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:03 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:21 debug Demultiplexer terminating on exception
    java.io.EOFException
    at
    java.io.DataInputStream.readFully(DataInputStream.java:153)
    at
    java.io.DataInputStream.readFully(DataInputStream.java:126)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:03 debug Demultiplexer terminating on exception
    java.io.EOFException
    at
    java.io.DataInputStream.readFully(DataInputStream.java:153)
    at
    java.io.DataInputStream.readFully(DataInputStream.java:126)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:03 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:03 debug Demultiplexer terminating on exception
    java.io.EOFException
    at java.io.DataInputStream.readInt(DataInputStream.java:338)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:95)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:17 debug Demultiplexer terminating on exception
    java.io.EOFException
    at
    java.io.DataInputStream.readFully(DataInputStream.java:153)
    at
    java.io.DataInputStream.readFully(DataInputStream.java:126)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:21 debug Demultiplexer terminating on exception
    java.io.EOFException
    at
    java.io.DataInputStream.readFully(DataInputStream.java:153)
    at
    java.io.DataInputStream.readFully(DataInputStream.java:126)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:97)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:21 debug Demultiplexer terminating on exception
    java.lang.NegativeArraySizeException
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection
    09/10 22:29:22 debug Demultiplexer terminating on exception
    java.lang.NegativeArraySizeException
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:96)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:22 debug Demultiplexer terminating on exception
    java.io.EOFException
    at java.io.DataInputStream.readInt(DataInputStream.java:338)
    at
    jrun.jms.core.kernel.mipc.MessageInputStream.receive(MessageInputStream.java:95)
    at
    jrun.jms.core.kernel.mipc.Demultiplexer.run(Demultiplexer.java:164)
    at
    jrun.jms.core.kernel.mipc.MultiplexConnection.run(MultiplexConnection.java:228)
    09/10 22:29:21 debug MultiplexConnectionServer accept()'ed
    connection

    Someone suggested it could be a serialisation issue but I I'm not sure how to go about checking that.
    Any suggestions ?

  • Get complete output from java.lang.Process

    How do I get the complete output from java.lang.Process?
    By the time I've started reading from Process.getInputStream() the process has already terminated...

    I solved the problem:
    private int exec(String pArguments[], OutputStream pOut, OutputStream pErr) throws IOException {
         class ProcessOutputPrinter implements Runnable {
              private InputStream ivIn;
              private OutputStream ivOut;
              public ProcessOutputPrinter(InputStream pIn, OutputStream pOut) {
                   ivIn = pIn;
                   ivOut = pOut;
              public void run() {
                   try {
                        for(int tByte; (tByte = ivIn.read()) != -1; ) {
                             ivOut.write(tByte);
                        ivOut.flush();
                   catch(IOException e) {
                        e.printStackTrace();
         // Start process
         Process tProcess = Runtime.getRuntime().exec(pArguments);
         // Create out printer
         Thread tOutPrinter = new Thread(new ProcessOutputPrinter(tProcess.getInputStream(), pOut), "NamingAdmin out-printer");
         tOutPrinter.start();
         // Create err printer
         Thread tErrPrinter = new Thread(new ProcessOutputPrinter(tProcess.getErrorStream(), pErr), "NamingAdmin err-printer");
         tErrPrinter.start();
         // Wait for process and printers to finish
         try {
              tProcess.waitFor();
              tOutPrinter.join();
              tErrPrinter.join();
         catch(InterruptedException e) {
         // return process exit value
         return tProcess.exitValue();

  • Java.lang.Exception: ORA-00020: maximum number of processes (150) exceeded?

    When i run my web-application with the embedded OC4J server, the following error message is prompted:
    java.lang.Exception: ORA-00020: maximum number of processes (150) exceeded
         void MyFolder.objects.MyObject.<init>(oracle.jbo.ApplicationModule, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
         void MyFolder.servlet.MyServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    Question:
    - What is the cause of this error message? How to avoid?
    - I intended to deploy my application to 9IAS server. Will the same problem occurs too?
    Thanks for your reply!

    Hi Pig,
    When i run my web-application with the embedded OC4J server, the following error message is prompted:
    java.lang.Exception: ORA-00020: maximum number of processes (150) exceeded
         void MyFolder.objects.MyObject.<init>(oracle.jbo.ApplicationModule, java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
         void MyFolder.servlet.MyServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    Question:
    - What is the cause of this error message? How to avoid?.
    From the Oracle error message documentation:
    ORA-00020 maximum number of processes (string) exceeded
    Cause: All process state objects are in use.
    Action: Increase the value of the PROCESSES initialization parameter.
    Another alternative approach may be to configure your Connection pool and/or your ApplicationModule pool to optimize the use of
    database connections and/or restrict the number of database connections used by the application. For example, if your application
    has declared many root ApplicationModules (i.e. more than one ApplicationModule pool is in use) then it may help to enable the
    jbo.doconnectionpooling switch so that each ApplicationModule instance in the pools does not maintain a dedicated database
    connection while not in use. Another alternative if you are using the BC4J connection pool (not a JDBC datasource) may be to
    restrict the number of connections the pool can create to < 150 with the jbo.maxpoolsize switch. However, please note that this
    may have an impact on throughput.
    - I intended to deploy my application to 9IAS server. Will the same problem occurs too?.
    This is a database issue. So, yes.
    Hope this helps.
    JR

  • Error processing XML request, java.lang.IllegalArgumentException

    Hi all,
    In my code I can successfully connect to server and send the content which is an XML content:
    param = java.net.URLEncoder.encode(s, "UTF-8");
    java.io.PrintWriter out = new java.io.PrintWriter(connection.getOutputStream());
    out.print(param);
    Read the response from server:
    java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(connection.getInputStream()));
    while((input = in.readLine()) != null)
    response += input + "\r";
    System.out.println("Client : received : "+response);
    Following is the response I receive from server:
    Client : received : <html><h1>Error processing XML request</h1>java.lang.IllegalArgumentException: No xml request posted</html>
    Has anybody know what the problem is? Why this error is issued?
    Any help is greatly appreciated.

    Dear legosa,
    Thanks so much for the replies. What you wrote makes absolute sence, w/o flush() or close(), it seems that I'm sending only balnk to output!
    I don't know how can I fix the 500 Internal Server Error; below is my complete code that does this part, can you tell me if you see sth. wrong in this code?
    param = java.net.URLEncoder.encode(aTrans.xmlDoc, "UTF-8");
    url = new URL("https://xml.test.surepay.com");
    connection = (HttpURLConnection)url.openConnection();                    
    connection.setDoInput(true);
    connection.setDoOutput(true);
    connection.setUseCaches(false);
    connection.setRequestMethod("POST");
    connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
    String sLen = "" + param.length();
    connection.setRequestProperty("Content-length", sLen);
    connection.setRequestProperty("Accept", "text/plain");
    connection.connect();
    System.out.println("Client : Connected");
    java.io.PrintWriter out = new java.io.PrintWriter(connection.getOutputStream());
    System.out.println("Client : Writing Content");
    out.print(param);
    out.close();
    System.out.println(connection.getURL());          
    System.out.println(connection.getResponseCode() + " " + connection.getResponseMessage());
    System.out.println(connection.getURL());
    System.out.println("Client : Waiting for response from Server");
    java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(connection.getInputStream()));
    System.out.println("Client : Opened input stream");
    while((input = in.readLine()) != null)
    response += input + "\r";
    System.out.println("Client : received : "+response);

  • Error processing createOrderBySpecification java.lang.NullPointerException

    Hi there,
    I am trying to create order in OSM through SoapUI using CreateOrderBySpecification request. SoapUI is throwing error in response. Message is shown below:
    It is a simple request with 2 parameters.
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
       <env:Header/>
       <env:Body>
          <env:Fault>
             <faultcode>env:Server</faultcode>
             <faultstring>Failed to invoke end component oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl (POJO), operation=CreateOrderBySpecification
    -> Failed to invoke method
    -> java.lang.NullPointerException</faultstring>
             <detail>
                <java:string xmlns:java="java.io">java.lang.RuntimeException: java.lang.NullPointerException
    java.lang.NullPointerException</java:string>
             </detail>
          </env:Fault>
       </env:Body>
    </env:Envelope>
    The Managed Server logs is throwing error as shown below:
    ####<Mar 9, 2015 2:24:51 PM EDT> <Notice> <Stdout> <osmtest1.test.com> <OSMTEST1_MS1> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <9a934abad3e137b8:-48d8df11:14bffbf45e8:-8000-00000000000003c7> <1425925491273> <BEA-000000> <<09-Mar-2015 2:24:51,272 EDT PM> <ERROR> <ws.c> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <Error processing createOrderBySpecification>
    java.lang.NullPointerException
            at oracle.communications.ordermanagement.ws.k.a(Unknown Source)
            at oracle.communications.ordermanagement.ws.c.a(Unknown Source)
            at oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl.createOrderBySpecification(Unknown Source)
            at oracle.communications.ordermanagement.ws.OrderManagementWSPortImpl.createOrderBySpecification(Unknown Source)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:606)
            at weblogic.wsee.component.pojo.JavaClassComponent.invoke(JavaClassComponent.java:112)
            at weblogic.wsee.ws.dispatch.server.ComponentHandler.handleRequest(ComponentHandler.java:84)
            at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:141)
            at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:114)
            at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
            at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
            at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
            at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:285)
            at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:169)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
            at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
            at java.security.AccessController.doPrivileged(Native Method)
            at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
            at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
            at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
            at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
            at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
            at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3748)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3714)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2283)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2182)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)>
    Any help is appreciated.
    Thanks
    Archana Sheshachalam

    Hey There,
    It is resolved. The problem was with the request message for CreateOrderBySpecification. Remove the unwanted tags and keep only the required tags.
    Thanks
    Archana

  • Java.lang.AssertionError: WSDL not found in the class file "processes

    Hi,
    I am using WLI 10.3 workshop to build process application. I have designed one JPD which inturn call another process JPD. So i have used worklist process control to create the process and tried to access the process. When i am executing the code, i am getting below error message.
    13-Jun-2011 14:13:00 o'clock BST> <Error> <WLI> <BEA-000000> <Exception processing processes.ISPSSQMsgLisnt
    Java.lang.reflect.InvocationTargetException
    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:513)
    at com.bea.wli.knex.runtime.core.dispatcher.DispUnit.loadDispFile(DispUnit.java:219)
    Truncated. see log file for complete stacktrace
    Java.lang.AssertionError: WSDL not found in the class file "processes.ISPSSQMsgLisnt", annotated class = processes.ISPSSQMsgLisnt
    --ClassAnnotations:
    --Method Annotations:
    --Field Annotations:
    can't continue
    at com.bea.wli.knex.runtime.jws.dispatcher.JwsDispClass.<init>(JwsDispClass.java:392)
    at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:65)
    at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:55)
    at com.bea.wli.bpm.runtime.JpdDispFile.createPrimaryDispClass(JpdDispFile.java:382)
    at com.bea.wli.knex.runtime.core.dispatcher.DispFile.<init>(DispFile.java:154)
    Truncated. see log file for complete stacktrace
    xception processing processes.ISPSSQMsgLisnt
    ava.lang.reflect.InvocationTargetException
    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:513)
    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:628)
    at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:1029)
    at com.bea.wli.knex.runtime.core.dispatcher.DispCache.ensureDispUnitForURI(DispCache.java:950)
    at com.bea.wli.broker.JWSSubscriber.getDispClass(JWSSubscriber.java:231)
    at com.bea.wli.broker.JWSSubscriber.getRequest(JWSSubscriber.java:184)
    at com.bea.wli.broker.JWSSubscriber.doDispatch(JWSSubscriber.java:358)
    at com.bea.wli.broker.JWSSubscriber.doDispatch(JWSSubscriber.java:348)
    at com.bea.wli.broker.SubscriptionDispatcher.doDispatch(SubscriptionDispatcher.java:87)
    at com.bea.wli.broker.MessageBroker$PrivilegedSubscriptionDispatcher.run(MessageBroker.java:179)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at com.bea.wli.security.authentication.AuthenticationService.runAs(AuthenticationService.java:108)
    at com.bea.wli.broker.MsgBrokerSecurityHelper.doDispatch(MsgBrokerSecurityHelper.java:231)
    at com.bea.wli.broker.MessageBroker$PrivilegedSubscriptionDispatcher.doDispatch(MessageBroker.java:165)
    at com.bea.wli.broker.MessageBroker.publishMessage(MessageBroker.java:984)
    at com.bea.wli.mbconnector.jms.JmsConnMDB.publishMBMessage(JmsConnMDB.java:343)
    at com.bea.wli.mbconnector.jms.JmsConnMDB.onMessage(JmsConnMDB.java:475)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233)
    at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709)
    at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058)
    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)
    aused by: java.lang.AssertionError: WSDL not found in the class file "processes.ISPSSQMsgLisnt", annotated class = processes.ISPSSQMsgLisnt
    --ClassAnnotations:
    --Method Annotations:
    --Field Annotations:
    can't continue
    at com.bea.wli.knex.runtime.jws.dispatcher.JwsDispClass.<init>(JwsDispClass.java:392)
    at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:65)
    at com.bea.wli.bpm.runtime.JpdDispClass.<init>(JpdDispClass.java:55)
    at com.bea.wli.bpm.runtime.JpdDispFile.createPrimaryDispClass(JpdDispFile.java:382)
    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:108)
    ... 34 more

    Hi
    Are you using wli process control?
    That uses wsdl and could cause the issue.
    I also saw couple of internal bugs CR264315 and CR288904 on the same issue on 9.2.
    Since this is a wli issue could you post in the wli newsgroup to get more answers http://forums.bea.com/forum.jspa?forumID=2047 ?
    Also you can open a BEA support case at http://support.bea.com and an wli support engineer would help you. Please refer to the Cr numbers above in your support case.
    Thanks
    Vimala

  • Java.lang.process.execute()

    Java.lang.process.execute() is throwing an exception with string �Cannot allocate memory� ...
    what is the cause of this exception and give me the solution
    plz help
    Nilesh

    882590 wrote:
    Is it possible to use the java.lang.ProcessBuilder to execute a Java process pointing it to jvm.dll instead of java.exe? I'm using the JavaFX self contained application packaging and it creates a runtime/jre/bin directory that contains jvm.dll, but not java.exe.I don't get the line of questioning of this thread. If you're using the JavaFX stuff the answer must lie in the JavaFX documentation. It seems to indicate that it generates an executable of its own which will likely wrap the jvm DLL, so you should be invoking the generated executable in ProcessBuilder.
    http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm

  • File processing failed with java.lang.StringIndexOutOfBoundsException:

    Hi
    I´m reading and sending files to an FTP server using SAP PI. I use file content conversion.
    Everything has been working fine for months - but now the server was changes to a new host. The only thing changed was the host/user and pass.
    But sending too the server fails with this error:
    File processing failed with java.lang.StringIndexOutOfBoundsException: String index out of range: -27
    Any body who has a clue??
    Reading files works ok. And i can transfer files to the FTP server with FileZilla without problems.

    In the file transfer by ftp:
    2011-10-03 17:27:08     Information     Transfer: "BIN" mode, size 737 bytes, encoding -.
    2011-10-03 17:27:08     Error     File processing failed with java.lang.StringIndexOutOfBoundsException: String index out of range: -27
    2011-10-03 17:27:08     Error     Adapter Framework caught exception: String index out of range: -27
    2011-10-03 17:27:08     Error     Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error occurred while connecting to the FTP server "nnn.nn.nnn.nnn:21": java.lang.StringIndexOutOfBoundsException: String index out of range: -27.
    Its on the adapter level. All mappings etc are fine. And as i write has been for months. The only thing changed are the FTP server

  • "java.lang.NoSuchMethodError: com.sun.tools..apt.Main.process"

    Hi,
    I am a new to Web Services and was following some site for implementing it.
    The link is as below:
    http://www.roseindia.net/webservices/netbeans/Web-Service.shtml
    However while doing the "build and deploy" -- I am getting the following error while doing a ::
    init:
    deps-module-jar:
    deps-ear-jar:
    deps-jar:
    Warning: MANIFEST.MF modified in the future.
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\META-INF
    Warning: META-INF\context.xml modified in the future.
    Warning: WEB-INF\lib\jaxws-tools-2.1.7.jar modified in the future.
    Warning: WEB-INF\sun-jaxws.xml modified in the future.
    Warning: WEB-INF\web.xml modified in the future.
    Warning: index.jsp modified in the future.
    Warning: modified in the future.
    Warning: META-INF modified in the future.
    Copying 5 files to D:\WebServices-NB-Practice\webservice1\build\web
    library-inclusion-in-archive:
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    Copying 1 file to D:\WebServices-NB-Practice\webservice1\build\web\WEB-INF\lib
    library-inclusion-in-manifest:
    Warning: modified in the future.
    wsgen-init-nonJSR109:
    wsgen-MyWebService-nonJSR109:
    *java.lang.NoSuchMethodError: com.sun.tools.apt.Main.process(Lcom/sun/mirror/apt/AnnotationProcessorFactory;[Ljava/lang/String;)I*
    BUILD FAILED (total time: 1 second)
    I am using netbeans version 5.5 for this.
    Although from the initial investigation I understand that this error is related to "jaxws-tools.jar".
    However I could not resolve this error.
    Can Somebody provide me with the steps to resolve this error.
    Regards,
    Avinash

    No, I put the 'main' method just to see if it solved the problem

  • Error processing WSDL document: java.lang.ClassCastException: java.util.Ar

    Hi
    Program is giving unpredictable behaviour.
    Am trying to consume webservice using Axis Client.
    When running as stand alone Java programs its working fine.
    But when deployed on OC4J its giving problem
    Error processing WSDL document: java.lang.ClassCastException: java.util.ArrayList
    Could you please give some hint
    Regards
    Bajarang

    Here is the program
    QName serviceQN = new QName(targetNamespace,serviceName );
    System.out.println("After serviceQN "+ serviceQN);
    QName portQN = new QName( targetNamespace, portName );
    System.out.println("After port "+ portQN);
    // This Call object will be used the invocation
    Service service = new Service(implURI,serviceQN);
    System.out.println("After service "+ service);
    Call call = (Call) service.createCall();
    System.out.println("After call "+ call);
    // Now make the call...
    System.out.println("Invoking service>> " + serviceName + " <<...");
    call.setOperation(portQN,operationName);
    call.invoke( inputParams );
    System.out.println("Result returned from call to "+ serviceName+" ");
    Error while execution
    javax.xml.rpc.ServiceException: Error processing WSDL document:
    java.lang.ClassCastException: java.util.ArrayList

Maybe you are looking for

  • HP EliteBook 2740p Tablet PC Windows 8.1 Webcam not working

    I have a problem getting the webcam working on Windows 8.1.  I have installed the latest versions of the webcam software and Youcam software. In youcam I can select the HP Webcam [2 MP Macro] as only driver. Youcam starts alright, but there is no vid

  • OJ 150 Mobile Printer - disappointment!

    I was fooled by HP! I bought a 150 Mobile Printer OJ when I was traveling to Orlando. I took the printer to Brazil. When I got there, I saw that I was deceived by a criminal propaganda, in my view. I searched the HP website and saw that the model of

  • Error during  fi posting run

    hi when im doing the fi posting it generate incorrect document with error Field Bus. Area is a required field for G/L account DMRC 240001 Message no. F5808 Diagnosis The value for field "Bus. Area" in the interface to Financial Accounting is an initi

  • Too many email addresses

    Hi, In Hungary the name of users can contain accented characters. When I set GW to generate email addresses in Last Name.First Name@Internet domain name format, these accented characters are not removed from the email address, so they are not valid.

  • Normalized structure implimentation question

    I have a table A that contains id's as FK and another table B that contains id's PK and descriptions. I'm creating a canvas and I want multiple records from A to appear on the screen and have the description from B appearing in the appropriate line l