NoSuchMethodError Exception

I keep getting a NoSuchMethodError Exception for the code shown below.
import java.util.*;
import java.lang.*;
import java.io.*;
public class test{
          private String readit()
// Set the default return value - a blank string
String input = "";
// Create an input stream reader to read from Standard Input (Keyboard)
InputStreamReader isr = new InputStreamReader( System.in );
// Create a buffered reader around the stream reader
// this allows you to read line at a time instead of char by char
BufferedReader br = new BufferedReader( isr );
try
input = br.readLine();
catch (IOException ex)
System.out.println( "Error reading keyboard input." );
return input;
     public void main(String args[]){
          try{
          String out = "Java is the best language in the world";
readit();
          int array[] = new int[5];
          for(int i = 0; i < 5; i++){
               array[i] = i;
               System.out.println(array[i + 1]);
               array[1] = -9;
          catch( ArrayIndexOutOfBoundsException e){
               System.out.println("Error ");
I don't know why this is but is something to do with calling the readit() method in main, Can anyone tell me how I could get around this or why this is happenning.

To get around javac compilation error, you can't make main method as non-static! You either have to
* create an object of your class and then call readit() on it
* or make readit() method as static as well.
If you are new to Java, you may want to refer to http://java.sun.com/docs/books/tutorial/getStarted/index.html

Similar Messages

  • Reason of java.lang.NoSuchMethodError exception

    Hi,
    I observed some strange (I suppose) behaviour. I made some helper class, which works as a factory to some EIS. When I use it in test desktop Java client, works correct, but if I try to involve it into the some servlet than I'll get an
    java.lang.NoSuchMethodError
    exception. Why it doesn't work as a servlet?
    Thanks for som help
    Krzysztof

    Hi,
    I observed some strange (I suppose) behaviour. I made some helper class, which works as a factory to some EIS. When I use it in test desktop Java client, works correct, but if I try to involve it into the some servlet than I'll get an
    java.lang.NoSuchMethodError
    exception. Why it doesn't work as a servlet?
    Thanks for som help
    Krzysztof

  • JSTL throwing java.lang.NoSuchMethodError: Exception

    Hai folks,
    I was trying to install JSTL in tomcat's container.
    I've copied all jar files into the webapps\ROOT\WEB-INF\lib directory.TLD files are copied to the webapps\ROOT\WEB-INF directory. I've also rewrited the web.xml with corresponding TLD's uri mappings.
    But i am always getting this exception.
    org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NoSuchMethodError:
    javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:568)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
    at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
    at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:7
    38)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
    at
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Please help.

    Hai folks,
    I was trying to install JSTL in tomcat's container.
    I've copied all jar files into the
    webapps\ROOT\WEB-INF\lib directory.TLD files are
    copied to the webapps\ROOT\WEB-INF directory. I've
    also rewrited the web.xml with corresponding TLD's
    uri mappings.Delete the TLDs. Remove the taglib changes you made to the web.xml. I am not sure what tutorial tells people to do this, but it is WRONG for installing JSTL (or any Custom Tag Library that is packaged properly).
    All you need is the standard.jar and jstl.jar in your WEB-INF/lib directory (and maybe an XMLParser if you are using the <xml: tags).
    Anyway. That may not be your main problem. Make sure you are using the correct version of JSTL for you server.
    If you are using Tomcat 4, you need JSTL 1.0
    If you are using Tomcat 5, you need JSTL 1.1
    >
    But i am always getting this exception.
    org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw
    exception
    java.lang.NoSuchMethodError:
    javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava
    /lang/String;ZLjava/lang/String;ZZ)V
    at
    t
    org.apache.jasper.compiler.TagLibraryInfoImpl.createAt
    tribute(TagLibraryInfoImpl.java:568)
    at
    t
    org.apache.jasper.compiler.TagLibraryInfoImpl.createTa
    gInfo(TagLibraryInfoImpl.java:401)
    at
    t
    org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD
    (TagLibraryInfoImpl.java:248)
    at
    t
    org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(T
    agLibraryInfoImpl.java:162)
    at
    t
    org.apache.jasper.compiler.Parser.parseTaglibDirective
    (Parser.java:418)
    at
    t
    org.apache.jasper.compiler.Parser.parseDirective(Parse
    r.java:483)
    at
    t
    org.apache.jasper.compiler.Parser.parseElements(Parser
    .java:1539)
    at
    t
    org.apache.jasper.compiler.Parser.parse(Parser.java:12
    6)
    at
    t
    org.apache.jasper.compiler.ParserController.doParse(Pa
    rserController.java:211)
    at
    t
    org.apache.jasper.compiler.ParserController.parse(Pars
    erController.java:100)
    at
    t
    org.apache.jasper.compiler.Compiler.generateJava(Compi
    ler.java:146)
    at
    t
    org.apache.jasper.compiler.Compiler.compile(Compiler.j
    ava:286)
    at
    t
    org.apache.jasper.compiler.Compiler.compile(Compiler.j
    ava:267)
    at
    t
    org.apache.jasper.compiler.Compiler.compile(Compiler.j
    ava:255)
    at
    t
    org.apache.jasper.JspCompilationContext.compile(JspCom
    pilationContext.java:556)
    at
    t
    org.apache.jasper.servlet.JspServletWrapper.service(Js
    pServletWrapper.java:296)
    at
    t
    org.apache.jasper.servlet.JspServlet.serviceJspFile(Js
    pServlet.java:295)
    at
    t
    org.apache.jasper.servlet.JspServlet.service(JspServle
    t.java:245)
    at
    t
    javax.servlet.http.HttpServlet.service(HttpServlet.jav
    a:853)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.intern
    alDoFilter(ApplicationFilterChain.java:252)
    at
    t
    org.apache.catalina.core.ApplicationFilterChain.doFilt
    er(ApplicationFilterChain.java:173)
    at
    t
    org.apache.catalina.core.StandardWrapperValve.invoke(S
    tandardWrapperValve.java:214)
    at
    t
    org.apache.catalina.core.StandardContextValve.invoke(S
    tandardContextValve.java:178)
    at
    t
    org.apache.catalina.core.StandardHostValve.invoke(Stan
    dardHostValve.java:126)
    at
    t
    org.apache.catalina.valves.ErrorReportValve.invoke(Err
    orReportValve.java:105)
    at
    t
    org.apache.catalina.core.StandardEngineValve.invoke(St
    andardEngineValve.java:107)
    at
    t
    org.apache.catalina.connector.CoyoteAdapter.service(Co
    yoteAdapter.java:148)
    at
    t
    org.apache.coyote.http11.Http11Processor.process(Http1
    1Processor.java:825)
    at
    org.apache.coyote.http11.Http11Protocol$Http11Connecti
    onHandler.processConnection(Http11Protocol.java:7
    38)
    at
    t
    org.apache.tomcat.util.net.PoolTcpEndpoint.processSock
    et(PoolTcpEndpoint.java:526)
    at
    org.apache.tomcat.util.net.LeaderFollowerWorkerThread.
    runIt(LeaderFollowerWorkerThread.java:80)
    at
    t
    org.apache.tomcat.util.threads.ThreadPool$ControlRunna
    ble.run(ThreadPool.java:684)
    at java.lang.Thread.run(Thread.java:595)
    Please help.

  • NoSuchMethodError in findMethodInfo(__methodSig) in ejbc generated code

    Hi All,
    Happy new year!
    Does anyone know when weblogic.ejbc calls "findMethodInfo(__methodSig)" in its
    generated "*HomeImpl.java" classes?
    This is causing my code to end in a NoSuchMethodError exception.
    The generated code for the included beanManaged.AccountHome does not include this
    call, while the code generated for my code does.
    Can anyone tell me why?
    Anyone from the Weblogic people?
    Thanks,
    Boogie

    boogie wrote:
    Rob Woollen <[email protected]> wrote:
    boogie wrote:
    Thanks for the reply, Rob.
    So the "findMethodInfo()" is caused by the presence of multiple interfacesat
    compile time.It's probably caused because ejbc generates code for version 1 of your
    interface
    but you then deploy a jar that loads version 2 of your interface.
    <boogie>
    i'm using the same interface. however, at compile time, the interface is both
    on the classpath (since i've just compiled it) and in the pre-ejbc jar file (which
    i'm passing to weblogic.ejbc).If it's in the classpath and in the ejb.jar, then ejbc finds the version in the classpath and
    generates code against it.
    from what you've said, i gather this is why ejbc
    puts in a "findMethodInfo()" call in the --HomeImpl.java files that it generates.
    </boogie>
    <boogie>
    SCENARIO 1: I use my build script.
    condition: the home interface is found and compiled, the EJB classes placed in
    a temporary jar file, then passed to EJBC (with -keepgenerated flag)
    output: the generated MyBeanHomeImpl.java calls "findMethodInfo()" and i get NoSuchMethodError
    exception at runtime
    If the version in the classpath and the version in the jar file were exactly the same, then ejbc
    would run fine. It fails when they are different. ejbc is generating code for a method that
    appears in the version that it is loading.
    -- Rob
    >
    SCENARIO 2: I manually build.
    condition: i jar the files manually, pass the jar to weblogic.ejbc (with -keepgenerated)
    without specifying a classpath; the current classpath doesn't include the compiled
    home interface;
    output: the generated MyBeanHomeImpl.java doesn't call "findMethodInfo()", code
    runs as expected
    SO, i need to build with scenario 1 AND still make it run at runtime. i don't
    have multiple copies of the EJB classes/interfaces at deployed or in the classpath
    runtime, but i keep getting the NoSuchMethodError exception because of the "findMethodInfo()"
    call that weblogic.ejbc insists on making. what can I do to solve this problem?
    thanks!
    really appreciate the help!
    </boogie>
    -- Rob
    Rob Woollen <[email protected]> wrote:
    There's some sort of mis-match between the interfaces that ejbc is
    finding
    (and
    generating code for) and the interfaces being deployed.
    I would check your classpath and remove all occurrences of the homeinterface
    class. It should only be in the jar file. Then re-run weblogic.ejbc
    -- Rob
    Boogie wrote:
    Hi All,
    Happy new year!
    Does anyone know when weblogic.ejbc calls "findMethodInfo(__methodSig)"in its
    generated "*HomeImpl.java" classes?
    This is causing my code to end in a NoSuchMethodError exception.
    The generated code for the included beanManaged.AccountHome does
    not
    include this
    call, while the code generated for my code does.
    Can anyone tell me why?
    Anyone from the Weblogic people?
    Thanks,
    Boogie

  • WLS 5.1.0 SP 12 ejbc throws NoSuchMethodError on entity beans

    Greetings all,
    Due to a trashed hard disk, I'm in the middle of getting WebLogic
    server reinstalled. Because of some problems with Oracle 8.1.6 and
    WLS 5.1.0 SP9, I've been trying to get SP12 to run, with little luck.
    I suspect an installation / configuration problem, but I don't know
    what it is.
    The symptom is that I can't compile entity beans - ejbc throws a
    NoSuchMethodError exception. For the sake of simplicity, and to prove
    to myself it wasn't our code, I tried building one of the examples,
    and it has the same problem. Does anyone see anything I've done
    wrong in the configuration?
    Below is the captured output from build & wlconfig:
    C:\weblogic\examples\ejb\basic\containerManaged>build
    C:\weblogic\examples\ejb\basic\containerManaged>if "" == "c:\jdk1.3.1\jre"
    set JAVA_HOME=\java
    C:\weblogic\examples\ejb\basic\containerManaged>if "" == "c:\weblogic" set
    WL_HOME=\weblogic
    C:\weblogic\examples\ejb\basic\containerManaged>set
    MYSERVER=c:\weblogic\myserver
    C:\weblogic\examples\ejb\basic\containerManaged>set
    MYCLASSPATH=c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogi
    c\lib\weblogicaux.jar;c:\weblogic\
    myserver\clientclasses
    C:\weblogic\examples\ejb\basic\containerManaged>mkdir build build\META-INF
    A subdirectory or file build already exists.
    Error occurred while processing: build.
    A subdirectory or file build\META-INF already exists.
    Error occurred while processing: build\META-INF.
    C:\weblogic\examples\ejb\basic\containerManaged>copy *.xml build\META-INF
    ejb-jar.xml
    weblogic-cmp-rdbms-jar.xml
    weblogic-ejb-jar.xml
    3 file(s) copied.
    C:\weblogic\examples\ejb\basic\containerManaged>javac -d build -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogic\lib\weblog
    icaux.jar;c:\weblogic\myserver\clientclasses Account.java AccountHome.java
    ProcessingErrorException.java AccountBean.java
    C:\weblogic\examples\ejb\basic\containerManaged>cd build
    C:\weblogic\examples\ejb\basic\containerManaged\build>jar cv0f
    std_ejb_basic_containerManaged.jar META-INF examples
    added manifest
    ignoring entry META-INF/
    adding: META-INF/ejb-jar.xml(in = 1210) (out= 1210)(stored 0%)
    adding: META-INF/weblogic-cmp-rdbms-jar.xml(in = 1472) (out= 1472)(stored
    0%)
    adding: META-INF/weblogic-ejb-jar.xml(in = 975) (out= 975)(stored 0%)
    adding: examples/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/containerManaged/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/containerManaged/Account.class(in = 422) (out=
    422)(stored 0%)
    adding: examples/ejb/basic/containerManaged/AccountBean.class(in = 3884)
    (out= 3884)(stored 0%)
    adding: examples/ejb/basic/containerManaged/AccountHome.class(in = 711)
    (out= 711)(stored 0%)
    adding:
    examples/ejb/basic/containerManaged/ProcessingErrorException.class(in
    =339) (out= 339)(stored 0%)
    C:\weblogic\examples\ejb\basic\containerManaged\build>cd ..
    C:\weblogic\examples\ejb\basic\containerManaged>java -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogic\lib\weblog
    icaux.jar;c:\weblogic\myserver\clientclasses -Dweblogic.home=c:\weblogic
    weblogic.ejbc -compiler javac build\std_ejb_basic_containerManaged.jar
    c:\weblogic\myserver\ejb_basic_containerManaged.jar
    java.lang.NoSuchMethodError
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.addPreparedStatementBinding(Stor
    eGenerator.java:839)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.preparedStatementBindings(StoreG
    enerator.java:805)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.setPrimaryKeyParams(StoreGenerat
    or.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:619)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: Error from ejbc: java.lang.reflect.InvocationTargetException:
    java.lang.NoSuchMethodError
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.addPreparedStatementBinding(Stor
    eGenerator.java:839)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.preparedStatementBindings(StoreG
    enerator.java:805)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.setPrimaryKeyParams(StoreGenerat
    or.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:619)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target
    exception:[java.lang.NoSuchMethodError]]
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:628)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [java.lang.NoSuchMethodError]]]
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:585)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [java.lang.NoSuchMethodError]]]]
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:585)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: ejbc found errors
    C:\weblogic\examples\ejb\basic\containerManaged>javac -d
    c:\weblogic\myserver\cl
    ientclasses -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\we
    blogic\lib\weblogicaux.jar;c:\weblogic\myserver\clientclasses Account.java
    Accou
    ntHome.java ProcessingErrorException.java Client.java
    C:\weblogic\examples\ejb\basic\containerManaged>wlconfig
    WebLogic startup settings are presently:
    CLASSPATH Prefix C:\weblogic\myserver\serverclasses
    CLASSPATH
    C:\weblogic\myserver\serverclasses;c:\jdk1.3.1\jre\lib\tools
    .jar;c:\jdk1.3.1\jre\lib\rt.jar;c:\jdk1.3.1\jre\lib\i18n.jar;C:\weblogic\l
    icense
    ;C:\weblogic\lib\weblogic510sp11.jar;C:\weblogic\classes;C:\weblogic\lib\w
    eblogi
    caux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
    JAVA_HOME c:\jdk1.3.1\jre
    WEBLOGIC_LICENSEDIR C:\weblogic\license
    WEBLOGIC_HOME C:\weblogic
    system properties:
    java.security.manager
    java.security.policy==C:\weblogic\weblogic.policy
    weblogic.system.home=C:\weblogic
    java.compiler=symcjit
    weblogic.class.path=C:\weblogic\license;C:\weblogic\lib\webl
    ogic510sp11.jar;C:\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\
    weblog
    ic\lib\weblogicaux.jar
    INITIAL_HEAP 64 MB
    MAX_HEAP 64 MB
    SERVERCLASSPATH
    C:\weblogic\myserver\serverclasses;c:\jdk1.3.1\jre\lib\rt.ja
    r;c:\jdk1.3.1\jre\lib\i18n.jar;C:\weblogic\lib\weblogic510sp11boot.jar;C:\
    weblog
    ic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
    Type "wlconfig -help" for program usage.

    Do all the examples fail to build, or just the EJB CMP examples? I ask
    because in 5.1, there's a separate WebLogic_CMP_RDBMS.jar that's part of
    the install process, but it's only used for CMP. If the other examples
    work, then that's likely to be your problem.
    -- Rob
    Erik Horstkotte wrote:
    Greetings all,
    Due to a trashed hard disk, I'm in the middle of getting WebLogic
    server reinstalled. Because of some problems with Oracle 8.1.6 and
    WLS 5.1.0 SP9, I've been trying to get SP12 to run, with little luck.
    I suspect an installation / configuration problem, but I don't know
    what it is.
    The symptom is that I can't compile entity beans - ejbc throws a
    NoSuchMethodError exception. For the sake of simplicity, and to prove
    to myself it wasn't our code, I tried building one of the examples,
    and it has the same problem. Does anyone see anything I've done
    wrong in the configuration?
    Below is the captured output from build & wlconfig:
    C:\weblogic\examples\ejb\basic\containerManaged>build
    C:\weblogic\examples\ejb\basic\containerManaged>if "" == "c:\jdk1.3.1\jre"
    set JAVA_HOME=\java
    C:\weblogic\examples\ejb\basic\containerManaged>if "" == "c:\weblogic" set
    WL_HOME=\weblogic
    C:\weblogic\examples\ejb\basic\containerManaged>set
    MYSERVER=c:\weblogic\myserver
    C:\weblogic\examples\ejb\basic\containerManaged>set
    MYCLASSPATH=c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogi
    c\lib\weblogicaux.jar;c:\weblogic\
    myserver\clientclasses
    C:\weblogic\examples\ejb\basic\containerManaged>mkdir build build\META-INF
    A subdirectory or file build already exists.
    Error occurred while processing: build.
    A subdirectory or file build\META-INF already exists.
    Error occurred while processing: build\META-INF.
    C:\weblogic\examples\ejb\basic\containerManaged>copy *.xml build\META-INF
    ejb-jar.xml
    weblogic-cmp-rdbms-jar.xml
    weblogic-ejb-jar.xml
    3 file(s) copied.
    C:\weblogic\examples\ejb\basic\containerManaged>javac -d build -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogic\lib\weblog
    icaux.jar;c:\weblogic\myserver\clientclasses Account.java AccountHome.java
    ProcessingErrorException.java AccountBean.java
    C:\weblogic\examples\ejb\basic\containerManaged>cd build
    C:\weblogic\examples\ejb\basic\containerManaged\build>jar cv0f
    std_ejb_basic_containerManaged.jar META-INF examples
    added manifest
    ignoring entry META-INF/
    adding: META-INF/ejb-jar.xml(in = 1210) (out= 1210)(stored 0%)
    adding: META-INF/weblogic-cmp-rdbms-jar.xml(in = 1472) (out= 1472)(stored
    0%)
    adding: META-INF/weblogic-ejb-jar.xml(in = 975) (out= 975)(stored 0%)
    adding: examples/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/containerManaged/(in = 0) (out= 0)(stored 0%)
    adding: examples/ejb/basic/containerManaged/Account.class(in = 422) (out=
    422)(stored 0%)
    adding: examples/ejb/basic/containerManaged/AccountBean.class(in = 3884)
    (out= 3884)(stored 0%)
    adding: examples/ejb/basic/containerManaged/AccountHome.class(in = 711)
    (out= 711)(stored 0%)
    adding:
    examples/ejb/basic/containerManaged/ProcessingErrorException.class(in
    =339) (out= 339)(stored 0%)
    C:\weblogic\examples\ejb\basic\containerManaged\build>cd ..
    C:\weblogic\examples\ejb\basic\containerManaged>java -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\weblogic\lib\weblog
    icaux.jar;c:\weblogic\myserver\clientclasses -Dweblogic.home=c:\weblogic
    weblogic.ejbc -compiler javac build\std_ejb_basic_containerManaged.jar
    c:\weblogic\myserver\ejb_basic_containerManaged.jar
    java.lang.NoSuchMethodError
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.addPreparedStatementBinding(Stor
    eGenerator.java:839)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.preparedStatementBindings(StoreG
    enerator.java:805)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.setPrimaryKeyParams(StoreGenerat
    or.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:619)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: Error from ejbc: java.lang.reflect.InvocationTargetException:
    java.lang.NoSuchMethodError
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.addPreparedStatementBinding(Stor
    eGenerator.java:839)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.preparedStatementBindings(StoreG
    enerator.java:805)
    at
    weblogic.cmp.rdbms.codegen.StoreGenerator.setPrimaryKeyParams(StoreGenerat
    or.java:194)
    at java.lang.reflect.Method.invoke(Native Method)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:619)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target
    exception:[java.lang.NoSuchMethodError]]
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:628)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [java.lang.NoSuchMethodError]]]
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:585)
    at
    weblogic.utils.compiler.CodeGenerator.processAt(CodeGenerator.java:607)
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:533)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    --------------- nested within: ------------------
    weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException - with nested exception:
    [weblogic.utils.compiler.CodeGenerationException: Exception:
    'java.lang.NoSuchMethodError' while trying to invoke: setPrimaryKeyParams
    at line 22 - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [java.lang.NoSuchMethodError]]]]
    at
    weblogic.utils.compiler.CodeGenerator.parse(CodeGenerator.java:585)
    at
    weblogic.utils.compiler.CodeGenerator.generateCode(CodeGenerator.java:312)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:223)
    at
    weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:182)
    at
    weblogic.ejb.ejbc.EJBCompiler.generatePersistenceSources(EJBCompiler.java:
    403)
    at weblogic.ejb.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:180)
    at weblogic.ejbc.runBody(ejbc.java:307)
    at weblogic.utils.compiler.Tool.run(Tool.java:80)
    at weblogic.ejbc.main(ejbc.java:353)
    ERROR: ejbc found errors
    C:\weblogic\examples\ejb\basic\containerManaged>javac -d
    c:\weblogic\myserver\cl
    ientclasses -classpath
    c:\jdk1.3.1\jre\lib\classes.zip;c:\weblogic\classes;c:\we
    blogic\lib\weblogicaux.jar;c:\weblogic\myserver\clientclasses Account.java
    Accou
    ntHome.java ProcessingErrorException.java Client.java
    C:\weblogic\examples\ejb\basic\containerManaged>wlconfig
    WebLogic startup settings are presently:
    CLASSPATH Prefix C:\weblogic\myserver\serverclasses
    CLASSPATH
    C:\weblogic\myserver\serverclasses;c:\jdk1.3.1\jre\lib\tools
    .jar;c:\jdk1.3.1\jre\lib\rt.jar;c:\jdk1.3.1\jre\lib\i18n.jar;C:\weblogic\l
    icense
    ;C:\weblogic\lib\weblogic510sp11.jar;C:\weblogic\classes;C:\weblogic\lib\w
    eblogi
    caux.jar;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
    JAVA_HOME c:\jdk1.3.1\jre
    WEBLOGIC_LICENSEDIR C:\weblogic\license
    WEBLOGIC_HOME C:\weblogic
    system properties:
    java.security.manager
    java.security.policy==C:\weblogic\weblogic.policy
    weblogic.system.home=C:\weblogic
    java.compiler=symcjit
    weblogic.class.path=C:\weblogic\license;C:\weblogic\lib\webl
    ogic510sp11.jar;C:\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\
    weblog
    ic\lib\weblogicaux.jar
    INITIAL_HEAP 64 MB
    MAX_HEAP 64 MB
    SERVERCLASSPATH
    C:\weblogic\myserver\serverclasses;c:\jdk1.3.1\jre\lib\rt.ja
    r;c:\jdk1.3.1\jre\lib\i18n.jar;C:\weblogic\lib\weblogic510sp11boot.jar;C:\
    weblog
    ic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar
    Type "wlconfig -help" for program usage.

  • QueryTasks( ),  NoSuchMethodError

    Hi everyone,
    I tried to get the assigned tasks for user "oc4jadmin" via remote client (because BPEL Process Manager is running on another machine).
    BPEL is in my case a developer installation V 10.1.3.1.0 (no complete soa suite installed).
    The queryTasks method causes an NoSuchMethodError exception and I don't know why...
    I hope anyone knows a solution for this problem.
    Thanks in advance,
    Markus
    Here is the source code and the exception thrown:
    public static void main(String[] args)
    IWorkflowServiceClient wfClient =
    WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
    ITaskQueryService querySvc = wfClient.getTaskQueryService();
    IWorkflowContext ctx;
    try
    ctx = querySvc.authenticate("oc4jadmin", "welcome1", null, null);
    List queryColumns = new ArrayList();
    queryColumns.add("TASKID");
    queryColumns.add("TITLE");
    Predicate whereClause = new Predicate(TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_EQ, WorkflowConstants.TASK_STATE_ASSIGNED);
    Ordering ordering = new Ordering(TableConstants.WFTASK_TASKNUMBER_COLUMN, true, false);
    List tasks = querySvc.queryTasks(ctx, queryColumns, null, ITaskQueryService.ASSIGNMENT_FILTER_MY, null, whereClause, ordering, 0, 0);
    System.out.print("Number of Tasks: "+tasks.size()+"\n");
    catch (WorkflowException e)
    System.out.print(e.getMessage());
    Exception in thread "main" java.lang.NoSuchMethodError: oracle.xml.jaxb.JaxbNode.writeExternal(Ljava/io/ObjectOutput;)V
    at oracle.bpel.services.workflow.query.model.OrderingClauseTypeImpl.writeExternal(OrderingClauseTypeImpl.java:44)
    at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1304)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1282)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
    at java.util.ArrayList.writeObject(ArrayList.java:569)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
    at com.evermind.server.rmi.RMIProtocol$Version.marshallParameterDirectly(RMIProtocol.java:427)
    at com.evermind.server.rmi.RMIProtocol$Version_1_0.marshallParameter(RMIProtocol.java:467)
    at com.evermind.server.rmi.RMIProtocol.writeObject(RMIProtocol.java:75)
    at com.evermind.server.rmi.RMIProtocol.writeValue(RMIProtocol.java:130)
    at com.evermind.server.rmi.RMIClientConnection.writeArguments(RMIClientConnection.java:535)
    at com.evermind.server.rmi.RMIClientConnection.sendMethodInvocationRequest(RMIClientConnection.java:478)
    at com.evermind.server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:460)
    at com.evermind.server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
    at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
    at com.evermind.server.ejb.StatelessSessionRemoteInvocationHandler.invoke(StatelessSessionRemoteInvocationHandler.java:43)
    at __Proxy1.queryTasks(Unknown Source)
    at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.queryTasks(TaskQueryServiceRemoteClient.java:200)
    at model.BpelTest.main(BpelTest.java:49)
    I Use the following JAR files:
    Bpm-infra.jar
    Bpm-services.jar
    J2ee_1.3.01.jar
    Jazncore.jar
    Oc4jclient.jar
    Orabpel-common.jar
    Orabpel-thirdparty.jar
    Orabpel.jar
    Orasaaj.jar
    Soap.jar
    Wsclient_extended.jar
    Xml.jar
    Xmlparserv2.jar
    wf_config_client.xml:
    &lt;servicesClientConfigurations xmlns="http://xmlns.oracle.com/bpel/services/client"&gt;
    &lt;ejb&gt;
    &lt;serverURL&gt;ormi://10.165.112.122:23791/hw_services&lt;/serverURL&gt; &lt;!-- for stand alone --&gt;
    &lt;!--serverURL&gt;opmn:ormi://10.165.112.122:home/hw_services&lt;/serverURL--&gt; &lt;!-- for opmn managed instance --&gt;
    &lt;user&gt;oc4jadmin&lt;/user&gt;
    &lt;password&gt;welcome1&lt;/password&gt;
    &lt;initialContextFactory&gt;oracle.j2ee.rmi.RMIInitialContextFactory&lt;/initialContextFactory&gt;
    &lt;/ejb&gt;
    &lt;identityService&gt;
    &lt;soapEndPoint&gt;[http://10.165.112.122:9700/integration/services/IdentityService/identity]&lt;/soapEndPoint&gt;
    &lt;/identityService&gt;
    &lt;identityConfigService&gt;
    &lt;soapEndPoint&gt;[http://10.165.112.122:9700/integration/services/IdentityService/configuration]&lt;/soapEndPoint&gt;
    &lt;/identityConfigService&gt;
    &lt;taskService&gt;
    &lt;soapEndPoint&gt;[http://10.165.112.122:9700/integration/services/TaskService/TaskServicePort]&lt;/soapEndPoint&gt;
    &lt;/taskService&gt;
    &lt;taskMetadataService&gt;
    &lt;soapEndPoint&gt;[http://10.165.112.122:9700/integration/services/TaskMetadataService/TaskMetadataServicePort]&lt;/soapEndPoint&gt;
    &lt;/taskMetadataService&gt;
    &lt;taskQueryService&gt;
    &lt;soapEndPoint&gt;[http://10.165.112.122:9700/integration/services/TaskQueryService/TaskQueryService]&lt;/soapEndPoint&gt;
    &lt;/taskQueryService&gt;
    &lt;userMetadataService&gt;
    &lt;soapEndPoint&gt;[http://10.165.112.122:9700/integration/services/UserMetadataService/UserMetadataService]&lt;/soapEndPoint&gt;
    &lt;/userMetadataService&gt;
    &lt;runtimeConfigService&gt;
    &lt;soapEndPoint&gt;[http://10.165.112.122:9700/integration/services/RuntimeConfigService/RuntimeConfigService]&lt;/soapEndPoint&gt;
    &lt;/runtimeConfigService&gt;
    &lt;!-- specifies the mapping for portal realm to is_config realm --&gt;
    &lt;portal&gt;
    &lt;realmMapping&gt;jazn.com&lt;/realmMapping&gt;
    &lt;/portal&gt;
    &lt;/servicesClientConfigurations&gt;
    Edited by: user10271730 on Nov 30, 2008 11:38 PM
    Edited by: user10271730 on Dec 1, 2008 12:10 AM
    Edited by: user10271730 on Dec 1, 2008 4:12 AM

    Here's an error I was seeing:
    Error(109,39): method queryTasks(oracle.bpel.services.workflow.verification.IWorkflowContext, com.sun.java.util.collections.List, null, java.lang.String, null, oracle.bpel.services.workflow.repos.Predicate, null, int, int) not found in interface oracle.bpel.services.workflow.query.ITaskQueryService
    The reason I was having this error is because I was using the incorrect import statements for List and ArrayList:
    //don't use these:
    //import com.sun.java.util.collections.ArrayList;
    //import com.sun.java.util.collections.List;
    //use these
    import java.util.List;
    import java.util.ArrayList;

  • NoSuchMethodError from JSPC when using Taglib

              I am using WLServer6.1 SP1.
              I am trying to use weblogic.jspc to compile a JSP page that uses a taglib. When
              weblogic.jspc tries to parse the page it throws a NoSuchMethodError exception.
              I know that similar postings have appeared before but they have not given me a
              solution. Your help would be much appreciated.
              (NB I have also tried to build the "petStore" sample and this gives the same error
              when it encounters custom tags!)
              The stack trace is given below: -
              [jspc] parsing /template.jsp:
              java.lang.NoSuchMethodError
              at weblogic.servlet.jsp.MyAttInfo.<init>(StandardTagLib.java:34)
              at weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1066)
              at weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:941)
              at weblogic.servlet.jsp.StandardTagLib.<init>(StandardTagLib.java:207)
              at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:145)
              at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4177)
              at weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4018)
              at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3865)
              at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2039)
              at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1853)
              at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1735)
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1015)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:78)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:181)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
              at weblogic.jspc.runBodyInternal(jspc.java:290)
              at weblogic.jspc.runBody(jspc.java:169)
              at weblogic.utils.compiler.Tool.run(Tool.java:79)
              at weblogic.jspc.main(jspc.java:360)
              

    Sounds like a mis-match between the JDBC Drivers and the installed Oracle Client.
    The JDBC Drivers with JDeveloper 9.0.3 should be the 9.0.1.3 versions (included with the iAS Admin Client and iAS 9.0.2)
    Also note, the JDBC driver used by OC4J is "classes12dms.jar", not "classes12.jar"
    Hope this helps,
    Rob

  • Declarative exception handling

    Hi
    How to handle exceptions declaratively in ejb3? I am aware of
    <error-page>
    <exception-type>java.lang.NoSuchMethodError</exception-type>
    <location>/error.jsp</location>
    </error-page>
    tags in web.xml. but am not sure how to use it. Should the exceptions be listed in hierarchy? I tried using the above code in my web.xml,but it shows me http 500 error. but when not handled, it lists the exceptions in the browser.
    so can anyone pl guide me how to go about.
    Thanks

    bidox wrote:
    Mahaboob wrote:
    hi
    can any one tell me what is the declarative exception handling?
    thanks in advance
    Read this [Exception Handling|http://www.objectsource.com/j2eechapters/Ch18-Exception_Handling.htm]
    Why? It's got nothing to do with his question

  • How to modify a specific class in jar file ?

    I've downloaded a jar file for applet, the jar file works fine... but when I extract a specific class file from the jar file and just recompie it from my IDE (Eclipse) without even making any change and then compress again jar class files including the new modified class file instead of the old one (without any modifications to other classes)... then I get
    (NoSuchMethodError ) exception whenever methods of other classes are invoked from within the modified class !!
    ...The manifist file of the jar file reads the following line
    Created-By: 1.4.0_01 (Sun Microsystems Inc.)
    I thought it means that jar class files were built using JDK 1.4.0_01 ...I used JDK 1.5.0_01 in my IDE...
    I thought JRE incompatiblity was the reason of the problem so I downloaded JRE 1.4.0_01 and used it to build this class file... but i got the same exception..
    so what is the main reason of the problem ? ...should I make changes to IDX files accompanying applet jar files ??
    If no, then how can I overcome this problem and be able to change and rebuild a specific class from this jar file ?
    (I cannot rebuild all classes in jar because there are errors I cannot resolve !!)

    Could you please clarify: do you want to run your project or a project from an independent jar?
    In the first case just select Run Project from the project context menu or select a class with main method and click Run File in the class context menu.
    Regarding the second case:
    - I don't think there is such a feature in the IDE (running third party jars is not an IDE function). Could you explain why you need this?

  • SAP portal 7.3 KM content - 500 Internal Server Error

    Getting 500 Internal Server Error for KM content.
    Here is error in Log file.
    Cannot process an HTTP request to servlet [prt] in [irj] web application.
    [EXCEPTION]
    java.lang.NoClassDefFoundError: com/sap/ip/bi/km/repository/manager/skwf/bw/PropertyMapper : cannot initialize class because prior initialization attempt failed

    Hi,
    This is the error which usually comes after system upgrade.
    Please go through the below KBAs and verify in your system:
    2002334 - java.lang.NoSuchMethodError: com.sapportals.wcm.portal.connection.KmConnection.handleRequestWithoutSettingEncoding
    1786917 - Cannot open irj/portal application and java.lang.NoSuchMethodError exception reported in default trace file
    BR,
    Anurag

  • Help: Problem migrating to 9052 or 1012

    Hello You Experts,
    I have a BC4J/JSP application originally developed in Jdev 902. It has been in production for a while already, and has been migrated all way through 9034 and 9041 (build 1436). This is a relatively simple application, only BC4J is involved, no Stunts, no UIX or anything else. It works pretty well so far. However, I am having problem migrating it into 10g now. I got the same error (see below) with either Jdev 9052 (build 1618) or 1012 (build 1811). It opens (migrated by the Wizard), and compiles without any error. It actually runs and I have got to the login page. And then it’s throws an NoSuchMethodError exception upon login. My application supports dynamic credentials. The debug output indicates that it could not get the internal connection, though the user connection was successful. Any ideals for this error are greatly appreciated. Thank you very much in advance.
    Following is the stack trace:
    Message: void oracle.jbo.html.DataSourceImpl.(java.lang.String)
    java.lang.NoSuchMethodError: void oracle.jbo.html.DataSourceImpl.(java.lang.String)
         at oracle.jbo.html.jsp.datatags.Utils.createDataSource(Utils.java:185)
         at oracle.jbo.html.jsp.datatags.DataSourceTag.doStartTag(DataSourceTag.java:86)
         at Login.jspService(Login.jsp:61)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
    And following is the debug output (excepted to conserve apace):
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Jdev1012\jdev\system10.1.2.0.0.1811\oc4j-config>
    C:\Jdev1012\jdk\bin\javaw.exe -ojvm -XXdebug,quiet,port3096 -classpath C:\Jdev1012\j2ee\home\oc4j.jar;C:\Jdev1012\jdev\lib\jdev-oc4j.jar -Djbo.debugoutput=console -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\Jdev1012\jdev\system10.1.2.0.0.1811\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Debugger connected to local process.
    05/01/31 16:52:18 Auto-deploying file:/C:/Jdev1012/jdev/mywork/LtcopWebApp/jspClients/public_html/ (New server version detected)...
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 5218 ms.
    Target URL -- http://204.156.227.22:8988/ltcop/index.html
    05/01/31 16:52:19 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0) initialized
    05/01/31 16:52:31 Diagnostics: (BC4J Bootstrap) Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    05/01/31 16:52:31 [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    05/01/31 16:52:31 [01] BC4J Property jbo.maxpoolcookieage='-1' -->(Configuration) from System Default
    05/01/31 16:52:31 [02] Loading 5.0 IDE classes
    05/01/31 16:52:31 [03] Creating a new pool resource
    05/01/31 16:52:31 [04] BC4JDeployPlatform: LOCAL
    05/01/31 16:52:31 [05] Propertymanager: searching for file and system based properties
    05/01/31 16:52:31 [06] {{ begin Loading BC4J properties
    …….. Cut away to conserve space …….
    05/01/31 16:52:32 [135] }} finished loading BC4J properties
    05/01/31 16:52:32 [136] -----------------------------------------------------------
    05/01/31 16:52:32 Diagnostics: (Properties (re)loaded) Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    05/01/31 16:52:32 [137] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    05/01/31 16:52:32 [138] JavaVMVersion: 10.1.2.1162 dop5
    05/01/31 16:52:32 [139] JavaVMVendor: Oracle Corp.
    05/01/31 16:52:32 [140] JavaVMName: OJVM Client VM
    05/01/31 16:52:32 [141] OperatingSystemName: Windows 2000
    05/01/31 16:52:32 [142] OperatingSystemVersion: 5.0
    05/01/31 16:52:32 [143] OperatingSystemUsername: Duz
    05/01/31 16:52:32 [144] jbo.323.compatible Flag: false, str: false
    05/01/31 16:52:32 [145] jbo.903.compatible Flag: false, str: false
    05/01/31 16:52:32 [146] Loading from bc4j.jpx file
    05/01/31 16:52:32 [147] Loading from individual XML files
    …….. Cut off lots of “Loading from …… Xxx.xml file” entries to conserve space …….
    05/01/31 16:52:36 [248] Using DatabaseTransactionFactory implementation oracle.jbo.server.DatabaseTransactionFactory
    05/01/31 16:52:36 [249] mPCollUsePMgr is false
    05/01/31 16:52:36 [250] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
    05/01/31 16:52:36 [251] ViewObjectImpl.mDefaultMaxActiveNodes is 30
    05/01/31 16:52:36 [252] DBTransactionImpl Max Cursors is 50
    05/01/31 16:52:36 [253] Created root application module: 'componentsPkg.LtcopAppModule'
    05/01/31 16:52:36 [254] Locale is: 'en_US'
    05/01/31 16:52:36 [255] DefaultConnectionStrategy is establishing an application module connection
    05/01/31 16:52:36 [256] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    05/01/31 16:52:36 [257] Creating a new pool resource
    05/01/31 16:52:36 [258] Trying connection/2: url='jdbc:oracle:thin:@204.156.200.100:1521:DB20' info='{user=ltc_test_co1, password=ltcco1, oracle.net.encryption_types_client=( DES40C ), oracle.net.encryption_client=REQUIRED, oracle.net.crypto_checksum_client=REQUIRED, oracle.net.crypto_checksum_types_client=( MD5 )}' ...
    05/01/31 16:52:36 [259] Successfully logged in
    05/01/31 16:52:36 [260] JDBCDriverVersion: 10.1.0.3.0
    05/01/31 16:52:36 [261] DatabaseProductName: Oracle
    05/01/31 16:52:36 [262] DatabaseProductVersion: Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options JServer Release 9.2.0.6.0 - Production
    05/01/31 16:52:36 [263] **PCollManager.resolveName** tabName=PS_TXN
    05/01/31 16:52:36 [264] Getting a connection for internal use...
    05/01/31 16:52:36 [265] Creating internal connection...
    05/01/31 16:52:36 [266] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    05/01/31 16:52:36 [267] Creating a new pool resource
    05/01/31 16:52:36 [268] Trying connection/1: url='jdbc:oracle:thin:ltcop/[email protected]:1521:db20'...

    Hi Vishal,
    Hello,
    Unfortunately WLS 6.1 is not supported on Solaris 10. Also as of Nov 14, 2005 WLS 6.1 entered the mature phase and will be no longer supported by BEA.
    http://e-docs.bea.com/wls/certifications/certs_610/overview.html
    Do let me know if you need any assistance in upgrading
    Cheers
    Raj

  • App in Jdev 9041 won't run to 9052 or 1012

    I have a BC4J/JSP application originally developed in Jdev 902. It has been in production for a while already, and has been migrated all way through 9034 and 9041 (build 1436). This is a relatively simple application, only BC4J is involved, no Stunts, no UIX or anything else. It works pretty well so far. However, I am having problem migrating it into 10g now. I got the same error (see below) with either Jdev 9052 (build 1618) or 1012 (build 1811). It opens (migrated by the Wizard), and compiles without any error. It actually runs and I have got to the login page. And then it’s throws an NoSuchMethodError exception upon login. My application supports dynamic credentials. The debug output indicates that it could not get the internal connection, though the user connection was successful. Any ideals for this error are greatly appreciated. Thank you very much in advance.
    Following is the stack trace:
    Message: void oracle.jbo.html.DataSourceImpl.(java.lang.String)
    java.lang.NoSuchMethodError: void oracle.jbo.html.DataSourceImpl.(java.lang.String)
    at oracle.jbo.html.jsp.datatags.Utils.createDataSource(Utils.java:185)
    at oracle.jbo.html.jsp.datatags.DataSourceTag.doStartTag(DataSourceTag.java:86)
    at Login.jspService(Login.jsp:61)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at java.lang.Thread.run(Thread.java:534)
    And following is the debug output (excepted to conserve apace):
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\Jdev1012\jdev\system10.1.2.0.0.1811\oc4j-config>
    C:\Jdev1012\jdk\bin\javaw.exe -ojvm -XXdebug,quiet,port3096 -classpath C:\Jdev1012\j2ee\home\oc4j.jar;C:\Jdev1012\jdev\lib\jdev-oc4j.jar -Djbo.debugoutput=console -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\Jdev1012\jdev\system10.1.2.0.0.1811\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Debugger connected to local process.
    05/01/31 16:52:18 Auto-deploying file:/C:/Jdev1012/jdev/mywork/LtcopWebApp/jspClients/public_html/ (New server version detected)...
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 5218 ms.
    Target URL -- http://204.156.227.22:8988/ltcop/index.html
    05/01/31 16:52:19 Oracle Application Server Containers for J2EE 10g (10.1.2.0.0) initialized
    05/01/31 16:52:31 Diagnostics: (BC4J Bootstrap) Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    05/01/31 16:52:31 [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    05/01/31 16:52:31 [01] BC4J Property jbo.maxpoolcookieage='-1' -->(Configuration) from System Default
    05/01/31 16:52:31 [02] Loading 5.0 IDE classes
    05/01/31 16:52:31 [03] Creating a new pool resource
    05/01/31 16:52:31 [04] BC4JDeployPlatform: LOCAL
    05/01/31 16:52:31 [05] Propertymanager: searching for file and system based properties
    05/01/31 16:52:31 [06] {{ begin Loading BC4J properties
    …….. Cut away to conserve space …….
    05/01/31 16:52:32 [135] }} finished loading BC4J properties
    05/01/31 16:52:32 [136] -----------------------------------------------------------
    05/01/31 16:52:32 Diagnostics: (Properties (re)loaded) Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    05/01/31 16:52:32 [137] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    05/01/31 16:52:32 [138] JavaVMVersion: 10.1.2.1162 dop5
    05/01/31 16:52:32 [139] JavaVMVendor: Oracle Corp.
    05/01/31 16:52:32 [140] JavaVMName: OJVM Client VM
    05/01/31 16:52:32 [141] OperatingSystemName: Windows 2000
    05/01/31 16:52:32 [142] OperatingSystemVersion: 5.0
    05/01/31 16:52:32 [143] OperatingSystemUsername: Duz
    05/01/31 16:52:32 [144] jbo.323.compatible Flag: false, str: false
    05/01/31 16:52:32 [145] jbo.903.compatible Flag: false, str: false
    05/01/31 16:52:32 [146] Loading from bc4j.jpx file
    05/01/31 16:52:32 [147] Loading from individual XML files
    …….. Cut off lots of “Loading from …… Xxx.xml file” entries to conserve space …….
    05/01/31 16:52:36 [248] Using DatabaseTransactionFactory implementation oracle.jbo.server.DatabaseTransactionFactory
    05/01/31 16:52:36 [249] mPCollUsePMgr is false
    05/01/31 16:52:36 [250] ViewObjectImpl.mDefaultMaxRowsPerNode is 70
    05/01/31 16:52:36 [251] ViewObjectImpl.mDefaultMaxActiveNodes is 30
    05/01/31 16:52:36 [252] DBTransactionImpl Max Cursors is 50
    05/01/31 16:52:36 [253] Created root application module: 'componentsPkg.LtcopAppModule'
    05/01/31 16:52:36 [254] Locale is: 'en_US'
    05/01/31 16:52:36 [255] DefaultConnectionStrategy is establishing an application module connection
    05/01/31 16:52:36 [256] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    05/01/31 16:52:36 [257] Creating a new pool resource
    05/01/31 16:52:36 [258] Trying connection/2: url='jdbc:oracle:thin:@204.156.200.100:1521:DB20' info='{user=ltc_test_co1, password=ltcco1, oracle.net.encryption_types_client=( DES40C ), oracle.net.encryption_client=REQUIRED, oracle.net.crypto_checksum_client=REQUIRED, oracle.net.crypto_checksum_types_client=( MD5 )}' ...
    05/01/31 16:52:36 [259] Successfully logged in
    05/01/31 16:52:36 [260] JDBCDriverVersion: 10.1.0.3.0
    05/01/31 16:52:36 [261] DatabaseProductName: Oracle
    05/01/31 16:52:36 [262] DatabaseProductVersion: Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production With the Partitioning, Oracle Label Security, OLAP and Oracle Data Mining options JServer Release 9.2.0.6.0 - Production
    05/01/31 16:52:36 [263] **PCollManager.resolveName** tabName=PS_TXN
    05/01/31 16:52:36 [264] Getting a connection for internal use...
    05/01/31 16:52:36 [265] Creating internal connection...
    05/01/31 16:52:36 [266] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    05/01/31 16:52:36 [267] Creating a new pool resource
    05/01/31 16:52:36 [268] Trying connection/1: url='jdbc:oracle:thin:ltcop/[email protected]:1521:db20'...

    Sometimes the hardest problems have the easiest solutions...because the user is stupid. Yeah, thats me. Somehow I had saved an Aperture 3 trial serial number in a text file and was copying-and-pasting that instead of the serial number printed in my retail packaging.
    The AppleCare rep Christian was a great help in discovering the problem. Correct serial number worked like a charm. Text file updated for future reference.
    Lesson here: always check the details; make no asusmptions.
    Thanks all, including Christian!

  • Problems deploying PL/SQL Web Service example to standalone OC4J

    I have built the PL/SQL Web Service example EMP_FETCHER in the tutorials that come with JDeveloper. When run with the embedded OC4J container, the web service works ok using the autogenerated client. However, while I can then successfully deploy the web service to a standalone OC4j instance running on a separate database server, when I point the client at it, a NoSuchMethodError exception is thrown by oc4j with the following stacktrace;
    at tutorial_jdbc_connection.Emp_fetcher.get_emp(Emp_fetcher.sqlj:43)
    at tutorial_jdbc_connection.__Emp_fetcherSPWrapper.invokeMethod(__Emp_fetcherSPWrapper.java:73)
    at oracle.j2ee.ws.InvocationWrapper.invoke(InvocationWrapper.java:98)
    at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:359)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Looks like I'm missing some support libraries but I'm unsure which ones they are, and why they wouldn't be part of a standard OC4J installation.
    I've tried including the SQLJ runtime and Oracle JDBC library support in the deployment and redeploying but the same error persists.
    Any assistance would be appreciated
    Regards
    Michael

    You have an old version of java installed. That is what "java.lang.UnsupportedClassVersionError" tells.

  • [Worklist API] Failed to fetch task list

    Hello Guys,
    I am trying to fetch tasks using worklist API but it doesnt work for me..It returns the Task list whcih has 0 (zero) tasks. Below is the code i am using:
    Hashtable props = getBpelProperties();
    Locator locator = new Locator("default","welcome1",props);
    IWorklistService Worklist = (IWorklistService)locator.lookupService(IWorklistService.SERVICE_NAME);
    ITask[] Tasks = null;
    try { 
    System.out.println("Obtaining List");
    Tasks = Worklist.listTasksByAssignee("oc4jadmin");
    // I dont find any task in the collection Tasks but i can see the tasks that have been assigned to oc4jadmin using oracle worklist application
    System.out.println("Tasks:"+Tasks.length);
    System.out.println("Got List");
    } catch (ServerException e) {
    System.out.println("Error : "+e.getMessage());
    catch (Exception ex) {
    System.out.println("Error : "+ex.getMessage());
    Can anyone help me please?
    Message was edited by:
    mchagani
    Message was edited by:
    afz

    With regard to your first approach that causes the java.lang.NoSuchMethodError exception, that one is probably caused by the classpath settings.
    The piece of code from the other thread works with the following classpath in JDeveloper 10.1.3.3 and SOA Suite 10.1.3.3:
    bpm-infra.jar, bpm-services.jar, orabpel-common.jar, orabpel.jar (all from the SOA Suite server), Oracle SOAP library, Oracle XML Parser v2 library, Commons Logging 1.0.3 library, JAX-RPC Client library, and the correct wf_client.config.xml, wf_config.xml, is_config.xml files.
    In that piece of code the Apache Commons logging framework is used for logging, not log4j. There are some known issues with the logging jar's included in the BPEL libraries and custom code.

  • Generating proxies from WSDL utility

    Hey ..
    Does BEA give a utility to generate client webservice proxy classes from a WSDL
    I mean ..instead of any server classes to run clientgen..I have just the WSDL
    and I need to generate the proxy classes for myself..I guess it defeats the purpose
    of webservices(integration)..if I have to ask the webservice deployer for client
    classes ..!
    Thanx,
    Krish

    "Krishnan Venkataraman" <[email protected]> wrote in message
    news:[email protected]...
    >
    Manoj , u sure this is a valid link ...coz I cannot see a wsdl athttp://example.com/myapp/myservice.wsdl..
    This should be the url to your wsdl. (the wsdl from which you want
    to generate the service). You can also copy the wsdl to your local
    machine and use the file url.
    >
    and is there any WLS70 dependency for me to generate these proxies ...Imean do
    I need anything from WLS70 (jar files etc)for me to do this task ...?You need wls70. the clientgen ant task is provided by wls70.
    >
    BTW.. just to update u on our other issue we talked about...have a look atthe
    below trace...Thanx,Krish
    Shridhar ...
    Couple of things ...
    1) We will ask the webservice provider put the CR080927_70sp1.jar intheir classpath.
    But instead of they generating the client-jar and runningVersionMaker on
    this to give us the output , can we do this on ourside...
    I understand that there is a way in which the client itself generatestheir
    own proxies from the wsdl...In case we can do this ...isCR080927_70sp1.jar required
    on
    the client side also for generating the proxies...or is it required onthe
    WLS70 side only at runtime...once we generate these proxies ourselves thenfor
    compiling our 6.0 client and running it , I will use the output ofversionMaker
    and wsclient70.jar.
    2) Can u possibly mail me the patched jar files which u mention below byemail...and
    send me a confirmation email saying u have sent it..coz we seem to havesome firewall
    issues going to an outside ftpserver....and the confirmation mail is onlyincase
    u send the mail and I do not get it coz of the size etc ..
    Thanx,
    Krish
    Krishnan (Krish) Venkataraman
    Bank of America Corp.
    Senior Technology Analyst
    Email: [email protected]
    Work # : 646 733 4248
    Cell # : 646 210 5482
    -----Original Message-----
    From: Shridhar Mysore [mailto:[email protected]]
    Sent: Friday, November 01, 2002 12:38 PM
    To: Venkataraman, Krishnan
    Subject: Invoking 7.0 WS from 6.0 WS client [ Case 367229 ]
    Hello Krishnan,
    Firstly, your present configuration (involving the use of a SessionBeanin 6.0sp1
    as WS client calling into a WS hosted in 7.0sp1) where you are using 7.0webserviceclient.jar
    alongside 6.0 weblogic.jar is not supported, nay non-viable. The result ofsuch
    a configuration would lead to NoSuchMethodError exceptions which you haveseen
    at your end.
    Secondly, in order to solve this we need to use portable stubs for WSclients,
    a feature, that has been included in
    7.0 SP02 ! We, however have made this feature available on 7.0 SP01 aswell in
    the form of a one-off patch !
    And the following is a procedure for enabling this on 7.0SP01 :
    - Add the one-off patch ( CR080927_70sp1.jar ) at the beginning of theCLASSPATH
    in your 7.0 server startup script. Ensure that you restart the server forthis
    to kick in.
    - Generate the client jar for the 7.0 WS
    - Run the weblogic.webservice.tools.versioning.VersionMaker utility bysupplying
    the client jar to generate re-versioned classes.
    - Compile the WS client in 6.0 by supplying the re-versioned classes(generated
    from VersionMaker ) and wsclient70.jar (note wsclient70.jar should workwith
    6.x versions)
    - Run the WS client in 6.0 by supplying the re-versioned classes(generated from
    VersionMaker ) and wsclient70.jar
    Lastly, please find/download the following files from our FTP server(ftpsupport.beasys.com)
    at /pub/case367229
    by logging in with username/password as support/pechool
    ( Note : this password is valid for the week of Oct 27, 2002 )
    CR080927_70sp1.jar - one-off patch for 7.0sp01
    wsclient70.jar - this would be used instead ofwebserviceclient.jar by
    6.x WS client/s
    "manoj cheenath" <[email protected]> wrote:
    Sure. you can generate client from a WSDL.
    Please try this:
    <clientgen wsdl="http://example.com/myapp/myservice.wsdl"
    packageName="myapp.myservice.client"
    clientJar="c:/myapps/myService_client.jar"/>
    regards,
    -manoj
    "Krishnan Venkataraman" <[email protected]> wrote in message
    news:[email protected]...
    Hey ..
    Does BEA give a utility to generate client webservice proxy classesfrom a
    WSDL
    I mean ..instead of any server classes to run clientgen..I have justthe
    WSDL
    and I need to generate the proxy classes for myself..I guess it defeatsthe purpose
    of webservices(integration)..if I have to ask the webservice deployerfor
    client
    classes ..!
    Thanx,
    Krish

Maybe you are looking for