Java.lang.NoSuchMethodError:  solution?

please !!!
error message:
"java.lang.NoSuchMethodError: com.sap.engine.services.webservices.jaxrpc.wsdl2java.BaseGeneratedStub._initParameter(Lcom/sap/engine/services/webservices/jaxrpc/wsdl2java/ServiceParam;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)V
i came accross this error when i deploy and test a web dynpro project.
in this project, i add a web services model depreciated into the WD project.
the web serives is tested ok before i import it to my WD. the function of this WS is to gather a input and return it in upper case.
can anyone came accross similar problem and found the solution?
thanks.
This line cause the problem:
wdContext.currentxxxxxElement().modelObject().execute();
More information on the implementation:
try {
          wdContext.currentRequest_CalNganViDocument_changeCaseElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
                    String result = wdContext.currentResponseElement().getResult();
          wdComponentAPI.getMessageManager().reportSuccess(result);
catch(Exception ex) {
          wdComponentAPI.getMessageManager().reportException(ex.getLocalizedMessage(),true);

Hi
thannks Poojith. 
I did add the code in WdDoInit method. 
please guide me further...
the webservices print screen:
http://i95.photobucket.com/albums/l147/leeeb/method.jpg
here is the code in ini method:
//@@begin wdDoInit()
     Request_CalNganViDocument_changeCase req = new Request_CalNganViDocument_changeCase();
     wdContext.nodeRequest_CalNganViDocument_changeCase().bind(req);//   nodeWebServiceEmail().bind(req);
    //@@end
and the action of button:
//@@begin onActionsend(ServerEvent)
     try {
          wdContext.currentRequest_CalNganViDocument_changeCaseElement().modelObject().execute();
          wdContext.nodeResponse().invalidate();
     //     String result = wdContext.currentResponseElement().getResult();
     //     wdComponentAPI.getMessageManager().reportSuccess(result);
     wdComponentAPI.getMessageManager().reportSuccess("dala");
     catch(Exception ex) {
          wdComponentAPI.getMessageManager().reportException(ex.getLocalizedMessage()+"no method",true);
    //@@end
Edited by: ENg beng LEe on Mar 7, 2008 4:00 AM
Edited by: ENg beng LEe on Mar 7, 2008 4:01 AM

Similar Messages

  • Exception occurred during event dispatching:java.lang.NoSuchMethodError

    Hello,
    We have upgraded to the latest Oracle Application Server version 10.1.2.3.0 and the webutil version is 1.0.6.
    But we face the following error while accessing the web link. Following message captured from Java Console.
    Please suggest if you have any solutions/idea about this error. Thanks !
    Oracle JInitiator: Version 1.3.1.22
    Using JRE version 1.3.1.22-internal Java HotSpot(TM) Client VM
    Maximum size: 50 MB
    Compression level: 0----------------------------------------------------
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    q: hide console
    s: dump system properties
    t: dump thread list
    x: clear classloader cache
    0-5: set trace level to <n>
    Downloading http://si02938.in.irt.com:7778/forms/java/frmall_jinit.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/frmwebutil.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/jacob.jar to JAR cacheDownloading http://si02938.in.irt.com:7778/forms/java/FileInformation.jar to JAR cacheDownloading cacheproxyHost=nullproxyPort=0connectMode=HTTP, native.
    Forms Applet version is : 10.1.2.3
    Exception occurred during event dispatching:java.lang.NoSuchMethodError     at oracle.forms.webutil.common.VBeanCommon.init(VBeanCommon.java:281)     at oracle.forms.handler.UICommon.instantiate(Unknown Source)     at oracle.forms.handler.UICommon.onCreate(Unknown Source)     at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)     at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)     at oracle.forms.engine.Runform.processMessage(Unknown Source)     at oracle.forms.engine.Runform.processSet(Unknown Source)     at oracle.forms.engine.Runform.onMessageReal(Unknown Source)     at oracle.forms.engine.Runform.onMessage(Unknown Source)     at oracle.forms.engine.Runform.processEventEnd(Unknown Source)     at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)     at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)     at java.awt.Component.dispatchEventImpl(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)
    Edited by: user12233243 on Nov 16, 2009 10:28 PM
    Edited by: user12233243 on Nov 16, 2009 10:29 PM

    hi
    read the following configuration i hope it will help u.
    How to get up and running with WebUtil 1.06 included with Oracle Developer Suite 10.1.2.0.2 on a win32 platform
    Solution
    Assuming a fresh "Complete" install of Oracle Developer Suite 10.1.2.0.2,
    here are steps to get a small test form running, using WebUtil 1.06.
    Note: [OraHome] is used as an alias for your real oDS ORACLE_HOME.
    Feel free to copy this note to a text editor, and do a global find/replace on
    [OraHome] with your actual value (no trailing slash). Then it is easy to
    copy/paste actual commands to be executed from the note copy.
    1) Download http://prdownloads.sourceforge.net/jacob-project/jacob_18.zip
    and extract to a temporary staging area. Do not attempt to use 1.7 or 1.9.
    2) Copy or move jacob.jar and jacob.dll
    [JacobStage] is the folder where you extracted Jacob, and will end in ...\jacob_18
    cd [JacobStage]
    copy jacob.jar [OraHome]\forms\java\.
    copy jacob.dll [OraHome]\forms\webutil\.
    The Jacob staging area is no longer needed, and may be deleted.
    3) Sign frmwebutil.jar and jacob.jar
    Open a DOS command prompt.
    Add [OraHome]\jdk\bin to the PATH:
    set PATH=[OraHome]\jdk\bin;%PATH%
    Sign the files, and check the output for success:
    [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\frmwebutil.jar
    [OraHome]\forms\webutil\sign_webutil [OraHome]\forms\java\jacob.jar
    4) If you already have a schema in your RDBMS which contains the WebUtil stored code,
    you may skip this step. Otherwise,
    Create a schema to hold the WebUtil stored code, and privileges needed to
    connect and create a stored package. Schema name "WEBUTIL" is recommended
    for no reason other than consistency over the user base.
    Open [OraHome]\forms\create_webutil_db.sql in a text editor, and delete or comment
    out the EXIT statement, to be able to see whether the objects were created witout
    errors.
    Start SQL*Plus as SYSTEM, and issue:
    CREATE USER webutil IDENTIFIED BY [password]
    DEFAULT TABLESPACE users
    TEMPORARY TABLESPACE temp;
    GRANT CONNECT, CREATE PROCEDURE, CREATE PUBLIC SYNONYM TO webutil;
    CONNECT webutil/[password]@[connectstring]
    @[OraHome]\forms\create_webutil_db.sql
    -- Inspect SQL*Plus output for errors, and then
    CREATE PUBLIC SYNONYM webutil_db FOR webutil.webutil_db;
    Reconnect as SYSTEM, and issue:
    grant execute on webutil_db to public;
    5) Modify [OraHome]\forms\server\default.env, and append [OraHome]\jdk\jre\lib\rt.jar
    to the CLASSPATH entry.
    6) Start the OC4J instance
    7) Start Forms Builder and connect to a schema in the RDBMS used in step (4).
    Open webutil.pll, do a "Compile ALL" (shift-Control-K), and generate to PLX (Control-T).
    It is important to generate the PLX, to avoid the FRM-40039 discussed in
    Note 303682.1
    If the PLX is not generated, the Webutil.pll library would have to be attached with
    full path information to all forms wishing to use WebUtil. This is NOT recommended.
    8) Create a new FMB.
    Open webutil.olb, and Subclass (not Copy) the Webutil object to the form.
    There is no need to Subclass the WebutilConfig object.
    Attach the Webutil.pll Library, and remove the path.
    Add an ON-LOGON trigger with the code
    NULL;
    to avoid having to connect to an RDBMS (optional).
    Create a new button on a new canvas, with the code
    show_webutil_information (TRUE);
    in a WHEN-BUTTON-PRESSED trigger.
    Compile the FMB to FMX, after doing a Compile-All (Shift-Control-K).
    9) Under Edit->Preferences->Runtime in Forms Builder, click on "Reset to Default" if
    the "Application Server URL" is empty.
    Then append "?config=webutil" at the end, so you end up with a URL of the form
    http://server:port/forms/frmservlet?config=webutil
    10) Run your form.
    If its Correct/Helpful please mark it thanks.
    Sarah

  • Java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket

    I am recieving the above error in a FileNet Content Manager environment. The full stack trace is:
    Exception in thread "main" java.lang.NoSuchMethodError: com.sun.mail.util.SocketFetcher.getSocket(Ljava/lang/String;ILjava/util/Properties;Ljava/lang/String;Z)Ljava/net/Socket;
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1195)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)
    at javax.mail.Service.connect(Service.java:233)
    at javax.mail.Service.connect(Service.java:134)
    at javax.mail.Service.connect(Service.java:86)
    at javax.mail.Transport.send0(Transport.java:162)
    at javax.mail.Transport.send(Transport.java:80)
    at com.bearingpoint.utilities.EMail.send(EMail.java:171)
    at com.bearingpoint.utilities.EMail.send(EMail.java:31)
    at email.main(email.java:11)
    I have spent many hours, fiddling with classpaths, ensuring that the mail.jar, mailapi.jar, smtp.jar, activation.jar are all from the same generation of JavaMail. With my classpath set correctly I can run a simple program constructed to just test whether the box can send out email from the command line.
    The code for the program is:
    public class email {
         public email() {
         public static void main (String args[]) {
              try {
              EMail.send("10.132.147.62", "[email protected]", "[email protected]", "test", "test");
              catch (Exception e) {
                   System.err.println(e.toString());
    Where EMail.send() is:
    public static void send(
    String mail_server_host,
    String email_from,
    String email_to,
    String subject,
    String message) throws AddressException, MessagingException, IOException {
    send(mail_server_host,
    (Authenticator)null,
    new InternetAddress[] {new InternetAddress(email_from)},
    new InternetAddress[] {new InternetAddress(email_to)},
    (InternetAddress[])null,
    (InternetAddress[])null,
    subject,
    message,
    null,
    null);
    which calls:
    public static void send(
    String mail_server_host,
    Authenticator authenticator,
    InternetAddress[] addresses_from,
    InternetAddress[] addresses_to,
    InternetAddress[] addresses_cc,
    InternetAddress[] addresses_bcc,
    String subject,
    String message,
    InputStream[] attachments,
    MimeType[] attachmentTypes) throws MessagingException,IOException {
    Properties properties = new Properties();
    properties.put("mail.smtp.host", mail_server_host);
    MimeMessage msg = new MimeMessage(
    Session.getInstance(properties, authenticator));
    msg.addFrom(addresses_from);
    msg.setRecipients(Message.RecipientType.TO, addresses_to);
    msg.setRecipients(Message.RecipientType.CC, addresses_cc);
    msg.setRecipients(Message.RecipientType.BCC, addresses_bcc);
    msg.setSubject(subject);
    BodyPart bpBody = new MimeBodyPart();
    bpBody.setText(message);
    Multipart mpMessageBody = new MimeMultipart();
    if (attachments == null && attachmentTypes == null) {
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    else if (attachments == null) {
    bpBody.setContent(message, attachmentTypes[0].toString());
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    else {
    mpMessageBody.addBodyPart(bpBody);
    for (int i=0; i<attachments.length;i++) {
    bpBody = new MimeBodyPart();
    DataSource dsAttachment = new ByteArrayDataSource(attachments, attachmentTypes[i].toString());
    bpBody.setDataHandler(new DataHandler(dsAttachment));
    bpBody.setFileName("attachment." + new MimeFileExtensions(attachmentTypes[i].getValue()).toString());
    mpMessageBody.addBodyPart(bpBody);
    msg.setContent(mpMessageBody);
    Transport.send(msg);
    As said before all .jar files are of the same generation, yet when I run FileNet and the underlying content engine, and try to send an email, I recieve this exception. I have run out of ideas, and any help would be appreciated.
    Things I've tried (multiple times):
    - Removing any old versions of the jar files and replace them with JavaMail 1.3.3_01
    - Have the content engine specifically import the JavaMail jar files.
    While I realize some of you may not know what FileNet is, perhaps you have come across this exception before. Any new ideas would be more then appreciated.
    Thank you for your time.

    I haven't seen this error before so I need more detail to reproduce it.
    It looks like you daisy chained calls to various static send() methods from various classes. Could you write a static main() for the class with the send() method actually doing the work? In the main() write the test case and compile it, test it and if it still doesnt work post it. Please include the import statements as it is germain to the solution.
    Its much easier for me to help you if I don't have to recreate "FileNet" to reproduce your error.
    As an alternative....
    The following code I got from: http://javaalmanac.com/egs/javax.mail/SendApp.html?l=new
    its simpler than you're code but gets the job done (without attachments).
    I've tested it and it works with:
    javac -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp.java
    java -classpath .;c:\sun\appserver\lib\j2ee.jar;c:\sun\appserver\lib\mail.jar SendApp
    Ran on Windows XP, Sun J2EE 1.4/Appserver Bundle
        import java.io.*;
        import javax.mail.*;
        import javax.mail.internet.*;
        import javax.activation.*;
        public class SendApp {
            public static void send(String smtpHost, int smtpPort,
                                    String from, String to,
                                    String subject, String content)
                    throws AddressException, MessagingException {
                // Create a mail session
                java.util.Properties props = new java.util.Properties();
                props.put("mail.smtp.host", smtpHost);
                props.put("mail.smtp.port", ""+smtpPort);
                Session session = Session.getDefaultInstance(props, null);
                // Construct the message
                Message msg = new MimeMessage(session);
                msg.setFrom(new InternetAddress(from));
                msg.setRecipient(Message.RecipientType.TO, new InternetAddress(to));
                msg.setSubject(subject);
                msg.setText(content);
                // Send the message
                Transport.send(msg);
            public static void main(String[] args) throws Exception {
                // Send a test message
                send("10.1.4.105", 25, "[email protected]", "[email protected]",
                     "test", "test message.");
        }

  • Java.lang.NoSuchMethodError: javax/persistence/OneToMany.orphanRemoval()Z

    Hi,
    I have a web application that is built using Spring 3.2.1 and Hibernate 4.2.0 (JPA 2). The application deploys and runs well in Weblogic v 12.1.1. Now we have a change in the requirement from the client regarding the server version. The server needs to be downgraded to a lower version i.e., Weblogic v 10.3.2. Now, when I deploy the application onto this version of the server I get the following exception while deployment.
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot resolve reference to bean 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0' while setting constructor argument with key [3]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0': Cannot resolve reference to bean 'org.springframework.security.authentication.ProviderManager#0' while setting bean property 'authenticationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.ProviderManager#0': Cannot resolve reference to bean 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.config.authentication.AuthenticationManagerFactoryBean#0': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.dao.DaoAuthenticationProvider#0': Cannot resolve reference to bean 'cpmaSecurityService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cpmaSecurityService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ncr.cpa.data.dao.UserDao com.ncr.cpa.service.impl.CPMASecurityService.userDAO; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.ncr.cpa.data.dao.impl.UserDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContextTxManager.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax/persistence/OneToMany.orphanRemoval()Z
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:353)
      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:154)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)
      at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:608)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:933)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:390)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:113)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1870)
      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3155)
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:487)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:201)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:249)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:427)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:28)
      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:672)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
      at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:44)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:52)
      at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
      at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:31)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
      at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:170)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:124)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:181)
      at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:97)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    It looks like a problem with the JPA library. I tried few of the solutions after I did some research but were of no use. Below are the solutions that I had tried
    Solution 1:
    1) Copy hibernate-jpa-2.0-api-1.0.1.Final.jar into your weblogic's %DOMAIN_HOME%/lib directory.
    2) Open up your setDomainEnv.cmd (windows) or setDomainEnv sh (unix) script file and set your PRE_CLASSPATH variable to set PRE_CLASSPATH=%DOMAIN_HOME%\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar
    After trying the above solution the exception is still raised while deployment of the application.
    Solution 2:
    Create "weblogic-application.xml" file into META-INF with something like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-application xmlns="http://xmlns.oracle.com/weblogic/weblogic-application">
    <application-param>
      <param-name>webapp.encoding.default</param-name>
      <param-value>UTF-8</param-value>
    </application-param>
    <prefer-application-packages> 
      <package-name>javax.persistence.*</package-name>
    </prefer-application-packages>
    </weblogic-application>
    After trying the above solution the exception is still raised while deployment of the application
    I really appreciate if anyone can suggest me what is causing this exception and how can I fix this?
    Thanks,
    Srikanth

    Hi,
    if you deplyo to Application Server 10.1.3 make sure you install the ADF runtime libraries 10.1.3.1. Shut down the Application Server and use the runtime installer from the JDeveloper tools menu
    Frank

  • Java.lang.NoSuchMethodError: org.apache.xerces.parsers.SAXParser. init

    java.lang.NoSuchMethodError: org.apache.xerces.parsers.SAXParser.<init>(Lorg/apache/xerces/xni/parser/XMLParserConfiguration;)V
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser$MySAXParser.(RDFXMLParser.java:55)
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:82)
         at com.hp.hpl.jena.rdf.arp.JenaReader.(JenaReader.java:77)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:113)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:225)
         at com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:387)
         at com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:297)
         at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:248)
    Hi all,
    Getting above exception only in Weblogic 9.2
    JDK Version : jdk1.5.0_16
    jena-2.5.6.jar
    xercesImpl-2.6.2.jar
    SAXParser is working fine in JBoss with same jdk and jar version. But it's throwing above exception in webloigc9.2 (Windows ) and more over, if i add -Xbootclasspath and specify the xercesImpl-2.6.2.jar file it works in weblogic 9.2 also..
    Is there any other 'good' solution for this??? I feel , this issue is related to classloader but dont know how :(.
    Regards
    Anand

    Hi,
    try to add your jar to the PRE_CLASSPATH.

  • Java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext:

     

              I Have exactly the same error and I would like to have a solution.....
              It happens when weblogic tries to compile a jsp page.
              So the result on the browser is the original jsp page: The jsp tags are not parsed.
              This problem exists on my Weblogic 4.5.1 sp11 (on unix) nut not on my weblogic 4.5.2 NT ?
              Any idea ?
              Thanks.
              Chris Opacki <[email protected]> wrote:
              >Has anyone had this error and found a way to fix it?
              >
              >java.lang.NoSuchMethodError: javax.servlet.jsp.PageContext: method
              ><init>(Ljavax/servlet/jsp/JspFactory;)V not found
              

  • Java.lang.NoSuchMethodError using BasicHttpContext

    Hello
    I want to write a simple ChatClient.
    package com.inz.chat.client;
    import java.io.IOException;
    import java.io.InputStream;
    import org.apache.http.HttpEntity;
    import org.apache.http.HttpResponse;
    import org.apache.http.client.ClientProtocolException;
    import org.apache.http.client.HttpClient;
    import org.apache.http.client.methods.HttpGet;
    import org.apache.http.impl.client.DefaultHttpClient;
    public class ChatClient
         private HttpClient httpClient;
         private String servletUrl;
         public ChatClient(String urlPrefix)
              this.servletUrl = urlPrefix + "ChatServlet";
              this.httpClient = new DefaultHttpClient();
              connectWithServer();
         private void connectWithServer()
              System.out.println("connect to " + servletUrl);
              HttpGet httpget = new HttpGet(servletUrl);
              try {
                   HttpResponse response = this.httpClient.execute(httpget);
                   HttpEntity entity = response.getEntity();
                   if (entity != null)
                       InputStream instream = entity.getContent();
              } catch (ClientProtocolException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
         public static void main(String[] args)
              String prefix = "http://127.0.0.1:8080/InzChat/";
              new ChatClient(prefix);
    }But when i start the program i always get:
    Exception in thread "main" java.lang.NoSuchMethodError: org.apache.http.protocol.BasicHttpContext: method <init>()V not found
         at org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:273)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
         at com.inz.chat.client.ChatClient.connectWithServer(ChatClient.java:30)
         at com.inz.chat.client.ChatClient.<init>(ChatClient.java:22)
         at com.inz.chat.client.ChatClient.main(ChatClient.java:48)I tried to use httpcore-4.0.jar and httpcore-4.1.jar, but the error is always the same. In other projects I used httpcore-4.1.jar to establish http connections without any problems, but here is something wrong...
    Next to the jre1.6 classes and the tomcat 6 classes I have appframework-1.03.jar, commons-codec-1.4.jar, commons-logging-1.1.1.jar, httpclient-4.1.1.jar, httpclient-cache-4.1.1.jar, httpmime-4.1.1.jar set to the classpath, but there seems to be a problem
    I' m using Eclipse for develpoment and I hope someone knows what to do here...
    Kind regards,
    Chang
    Edited by: Chang on 02.09.2011 04:58

    Hello EJP thanks for your answer.
    I put the jar files in the Project Properties->Java Build Path dialog to the project like i did it many times before. Now i added httpcore-4.0.jar and httpcore-4.1.jar to the classpath, but no difference the error is still the same. I don't know which jar files get used at runtime.
    Alternatively i put the jar files in a lib folder under the WEB-INF folder, but the error leaves the same.
    Can you please explain me the solution a little more detailed.
    Kind regards,
    Chang

  • "java.lang.NoSuchMethodError" when migrating from 1.5 to 2.0

    [ Problem ]
    E:\Adobe2.0\Flash Access Reference Server Implementation\migration>java -cp bin;
    libs\*;libs\1.5\*;libs\2.0\* com.adobe.flashaccess.refimpl.migration.V1_5PolicyC
    onverter all
    Exception in thread "main" java.lang.NoSuchMethodError: com.adobe.schema._1_0.pd
    rl.Permission.getConstraint()Ljava/util/List;
            at com.adobe.flashaccess.sdk.policy.PolicyRightHelper.addToPolicy(Policy
    RightHelper.java:272)
            at com.adobe.flashaccess.sdk.policy.PolicyRightHelper.toPDRL(PolicyRight
    Helper.java:233)
            at com.adobe.flashaccess.sdk.policy.PolicyRightHelper.toASN1(PolicyRight
    Helper.java:97)
            at com.adobe.flashaccess.sdk.policy.Policy.serializePolicy(Policy.java:6
    70)
            at com.adobe.flashaccess.sdk.policy.Policy.getBytes(Policy.java:181)
            at com.adobe.flashaccess.refimpl.migration.AbstractPolicyConverter.write
    PolicyToFile(AbstractPolicyConverter.java:100)
            at com.adobe.flashaccess.refimpl.migration.V1_5PolicyConverter.convertPo
    licies(V1_5PolicyConverter.java:140)
            at com.adobe.flashaccess.refimpl.migration.V1_5PolicyConverter.main(V1_5
    PolicyConverter.java:87)
    [ Solution ]
    The class mentioned in the error message is in rm-pdrl.jar, which should be in your libs/2.0 directory.  There may be a conflict between this jar and something in libs/1.5.  Please try moving libs/2.0 before libs/1.5 in your classpath and see if that resolves the issue.

    hi Arie,
    thanks for the tip ;-), I was using application id which was already use in my htmldb installation. I changed the id in the f105.sql to something which was not used and it went through fine.
    We often run htmldb imports through sqlplus because when running it through web site it too often fails with timeout. When import is done through the web site I believe htmldb does the id modification automatically but in sqlplus that obviously won't happen hence we need to do it manually before running the script. If we don't change it import will fail as the workspace with the id mentioned in the sql script does not exist. Like you said might not be supported ....but it still works fine... :-)
    thanks for your help.
    Nina

  • Exception in thread "main" java.lang.NoSuchMethodError: main -- Help

    I am new to Java programming and I have been working out of a book trying to learn the language. I am working on a Ubuntu system using Eclipse. I get an error when I try to run this app. It is: Exception in thread "main" java.lang.NoSuchMethodError: main. I have Googled it and read different possible solutions, but none have helped. Can someone help me solve this?
    Here is the code for battleshipGameTestDrive.java:_
    import java.util.ArrayList;
    public class battleshipGameTestDrive
         public static void main(String[] args, ArrayList<String> locations)      
              int numOfGuesses = 0;
              boolean isAlive = true;
              GameHelper helper = new GameHelper();
              battleshipGame ship = new battleshipGame();
              for (int ctr = 1; ctr < 4; ctr++)
                   int randomNum = (int) (Math.random() * 5);          
                   locations.add(Integer.toString(randomNum));
                   ship.setLocationCells(locations);
              while (isAlive == true){
                   String userGuess = helper.getUserInput("Enter a number (1-7): ");
                   numOfGuesses++;
                   String result = ship.checkYourself(userGuess);
                   if (result.equals("kill")){
                        isAlive = false;
                        System.out.println("You took " + numOfGuesses + " guesses");
                   } // close result if
              }  //end while loop
         }// end of main
    }// end of battleshipGameTestDrive class
    Here is the code for the battleshipGame class.java:_
    import java.util.ArrayList;
    public class battleshipGame {
         private ArrayList<String> locationCells;
         public void setLocationCells(ArrayList<String> loc){
              locationCells = loc;
         public String checkYourself(String userInput){
              String result = "miss";          
              int index = locationCells.indexOf(userInput);
              if (index >= 0){
                   locationCells.remove(index);
                   if (locationCells.isEmpty()){
                        result = "kill";
                   }else{
                        result = "hit";
                   }// close if
              }// closer outer if
              return result;
         }     //close method
    }     //close class

    Hello,
    I saw your short message youe sent to someone who had a problem : Exception in thread "main" java.lang.NoSuchMethodError :main
    So I was thinking maybe you could help me I struggle with this code fro 3weeks, this is a code I save it later as
    import java.awt.*;
    import java.awt.event.*;
    class Party {
    public void makeInvitation(){
    Frame f = new Frame();
    Label l = new Label("Party at Tom's");
    Button b = new Button("Sure");
    Button c = new Button("Noo...");
    Panel p = new Panel();
    p.add(l);
    I write this code in Notepad++ than I save it as java file with looks like this : Java source file (*.java)
    - than in Command Prompt I write : javac Party.java as usual and it comes with this error below Exception in thread "main" .......
    I have no idea what's wrong with it.Can you help me
    Thank you in advance

  • Java.lang.NoSuchMethodError: getEncodedURL when running junits for webservi

    Hi,
    We are getting NosuchMethodError when we are trying to run the junits for the webservice clients through ant script.But when we are executing the same junits through weblogic workshop, junits are running finely.Please let me know, if any one knows the solution
    Exception:
    Caused an ERROR
    getEncodedURL
    java.lang.NoSuchMethodError: getEncodedURL
    at weblogic.wsee.util.is.InputSourceUtil.loadURL(InputSourceUtil.java:44)
    at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:118)
    at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:65)
    at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)
    at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:305)
    at weblogic.wsee.jaxws.framework.jaxrpc.client.ClientEnvironmentFactory.getWsdlDef(ClientEnvironmentFactory.java:156)
    at weblogic.wsee.jaxws.framework.jaxrpc.EnvironmentFactory.getService(EnvironmentFactory.java:393)
    at weblogic.wsee.jaxws.framework.jaxrpc.EnvironmentFactory.buildDeploymentContext(EnvironmentFactory.java:581)
    at weblogic.wsee.jaxws.framework.jaxrpc.EnvironmentFactory.getDeploymentContext(EnvironmentFactory.java:570)
    at weblogic.wsee.jaxws.framework.jaxrpc.TubelineDeploymentListener.createClient(TubelineDeploymentListener.java:48)
    at weblogic.wsee.jaxws.WLSTubelineAssemblerFactory$TubelineAssemblerImpl.createClient(WLSTubelineAssemblerFactory.java:46)
    at com.sun.xml.ws.client.WSServiceDelegate.createPipeline(WSServiceDelegate.java:446)
    at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:639)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:342)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:324)
    at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:306)
    at javax.xml.ws.Service.getPort(Service.java:92)

    Hi,
    This is the problem with the jaxws-rt.jar in my classpath.I have removed the jar from the class path then it started working
    culprit here is ‘com.sun.xml.ws.util. JAXWSUtils’ which is defined in jaxws.rt.<version>.jar. Weblogic 10 uses glassfish.jaxws.rt_2.1.3.jar.
    Could you please check in (ANT) classpath where in any other jaxws.rt.jar being referred which may not have ‘getEncodedURL’ method definition

  • Java.lang.NoSuchMethodError: oracle.wsm.policy.model.IPolicySet.getStatus()Loracle/wsm/policy/model/IPolicySet$POLICYSET_STATUS Error

    Hi,
    Am trying to invoke BPEL1 from BPEL2 which are lying in different projects in the same application. When I try to invoke the webservice on the partnerlink side am getting the following error:
    <messages>
    <input>
    <Invoke1_process_InputVariable>
    <part  name="payload">
    <EmployeeData>
    <Employee>
    <EmployeeName>santosh</EmployeeName> 
    <EmployeeDept>12345</EmployeeDept>
    </Employee>
    </EmployeeData>
    </part>
    </Invoke1_process_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType> 
    <remoteFault>
    <part  name="summary">
    <summary>java.lang.NoSuchMethodError: oracle.wsm.policy.model.IPolicySet.getStatus()Loracle/wsm/policy/model/IPolicySet$POLICYSET_STATUS;</summary> 
    </part>
    <part  name="detail">
    <detail>oracle.wsm.policy.model.IPolicySet.getStatus()Loracle/wsm/policy/model/IPolicySet$POLICYSET_STATUS;</detail> 
    </part>
    </remoteFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message> 
    </faultType>
    Can anyone please suggest a solution for this problem?

    Not an answer to your question but sharing your pain, I'm having a similar problem and getting the same error.  I'm using soa suite 11.1.1.5 and one answer I've found was to upgrade to 11.1.1.6 which I can no longer find a download for.

  • Error:java.lang.NoSuchMethodError:javax.servlet.jsp.tagext.TagAttributeInfo

    Hi All,
    I am getting the following error when i create a jsf jsp page and build it in jdeveloper.
    Error:java.lang.NoSuchMethodError:javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V
    when i build the application by simply creating jsp not jsf jsp then it works well.
    Could you any tell me how to fix this? i searched in forums but i didn't find relevant solution.
    Thanks,
    Udhaya

    Hi!
    Can you tell us what version of JDeveloper you are using, and what steps you took to create the JSF page? Like, write from scratch or use the JSF page wizard?
    Also, can you check your project properties, and check that the JSF libraries are included, and JSF tag libraries set up?
    Regards,
    Jeroen van Veldhuizen

  • Java.lang.NoSuchMethodError: com.sap.aii.af.lib.util.ejb.FastEjbFactory

    Hi, only for register, when i tested the communication channel, the test failed and this error  "java.lang.NoSuchMethodError: com.sap.aii.af.lib.util.ejb.FastEjbFactory.createEjbInstance" appear in communication channel monitoring (RWB). I Found the solution, only deploy the last version of messaging component of netweaver.
    Best Regards
    Josue Neto

    Hi,
    What is the value mentioned for the Parameter
    --icm/conn_timeout and icm/keep_alive_timeout
    Check this Blog.. Might help
    /people/michal.krawczyk2/blog/2006/06/08/xi-timeouts-timeouts-timeouts
    Regards
    Agasthuri Doss

  • Java.lang.NoSuchMethodError: com.wily.isengard.api.TransportConfiguration.

    Hello All,
    While running diagnostic setup, i get following error
    java.lang.NoSuchMethodError: com.wily.isengard.api.TransportConfiguration.<init>(IZZ)V
    I have installed introscope8.0.2.0, my solman is SP18 EhP1
    as per Note:1273028 - Introscope 8 Release Notes
    "Known problems in all Releases 8.x
    1. The bytecode instrumentation agent 8.0 cannot be used for Solution Manager self-monitoring. Please upgrade to Solution Manager SP19 to enable self-monitoring with a version 8 bytecode agent. Otherwise Setup for Introscope Agents fails with
    java.lang.NoSuchMethodError: com.wily.isengard.api.TransportConfiguration.<init>(IZZ)V ...
                  As an alternative you can use Java agent version 7.2 for self monitoring of the Solution Manager Java stack SP18. Since the setup procedure involves several steps this is not recommended.
    But as per Note: 1272620 - Wily Introscope Agent Setup Advanced features
    Point 1 and 3 are little bit confusing.
    Please suggest what am I suppose to do?
    Adding one more query.....
    Customer had already installed Solman, hence SMD is also installed.
    But normally when you install SMD agent at Managed system, you specify Solman server details and SMD_ADMIN user(this user is only generated after diagnostic setup).
    If I want to use Solman itself as managed system.  Do I need to uninstall and reinstall SMD seperately ?
    Please help me with these 2 queries
    Regards,
    Shyam.

    Hi
    How did you solve your error?
    Thanks
    regards
    Murat

  • Java.lang.NoSuchMethodError: getMessageData

    I got this error while trying to send to Websphere MQ 5.3 from WSAD 5.1. I use a statelesssession bean to send the message. Do you have any ideas?
    java.lang.NoSuchMethodError: getMessageData
    at com.ibm.mq.server.MQSESSION._MQPUTMSG2(Native Method)
    at com.ibm.mq.server.MQThread.run(MQThread.java:1409)
    at java.lang.Thread.run(Thread.java:513)
    Here's my code
    InitialContext ctx = new InitialContext();
    QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("jms/myQCF");
    QueueConnection con = factory.createQueueConnection();
    QueueSession session = con.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    Queue queue = (Queue) ctx.lookup("jms/myQ");
    QueueSender sender = session.createSender(queue);
    TextMessage message = session.createTextMessage("Hello");
    sender.send(message);

    The solutions works in my case but only after if I have copied the MQ java libraries from Websphere Test Environment 5.0 NOT 5.1 or 6.0!!!. The below steps are for your reference:
    1. Install Websphere Test Environment 5.0 in WASD.
    2. Copy all files under C:\Program Files\IBM\WSAD\runtimes\base_v5\mqjms to C:\Program Files\IBM\WebSphere MQ\Java\lib
    3. Make sure MQ_INSTALL_ROOT variable is C:\Program Files\IBM\WebSphere MQ but not ${WAS_INSTALL_ROOT}\mqjms.
    4. Make sure the file date / time / size are same as the following:
    Directory of C:\Program Files\IBM\WebSphere MQ\Java\lib
    12/22/2005  08:41 PM    <DIR>          .
    12/22/2005  08:41 PM    <DIR>          ..
    10/11/2002  08:00 AM           299,837 com.ibm.mq.jar
    10/11/2002  08:00 AM            39,420 com.ibm.mqbind.jar
    10/11/2002  08:00 AM         1,369,303 com.ibm.mqjms.jar
    10/11/2002  08:00 AM            17,978 connector.jar
    10/11/2002  08:00 AM            22,769 fscontext.jar
    12/22/2005  08:41 PM    <DIR>          jdbc
    10/11/2002  08:00 AM            27,724 jms.jar
    10/11/2002  08:00 AM            98,496 jndi.jar
    10/11/2002  08:00 AM             8,809 jta.jar
    10/11/2002  08:00 AM           123,717 ldap.jar
    10/11/2002  08:00 AM            29,184 mqjbdf02.dll
    10/11/2002  08:00 AM            48,640 mqjbnd05.dll
    10/11/2002  08:00 AM            53,248 MQXAi02.dll
    10/11/2002  08:00 AM           436,643 postcard.jar
    10/11/2002  08:00 AM            77,116 providerutil.jar
                  14 File(s)      2,652,884 bytes
    Directory of C:\Program Files\IBM\WebSphere MQ\Java\lib\jdbc
    12/22/2005  08:41 PM    <DIR>          .
    12/22/2005  08:41 PM    <DIR>          ..
    10/11/2002  08:00 AM            61,440 jdbcdb2.dll
    10/11/2002  08:00 AM            61,440 jdbcora.dll
                   2 File(s)        122,880 bytesGood Luck Again

Maybe you are looking for