JWSC ant task  getting java.lang.NoSuchMethodError

Hi all,
I am trying to build a webservice with JWSC ant task in JDK 1.6 which uses JWS annotations and a few weblogic specific annotations.
I am getting the following error while building it.
However, when I build it from my IDE (eclipse) it works fine.
i tried copying the libraries from eclipse and ran the build. But it didn't work.
any one have faced this issue and resolved it ? Please let me know your suggestions.
I am using weblogic 10.3 libraries to build the web service.
jwsctest:
[jwsc] JWS: processing module /CaseStatusWebService
BUILD FAILED
java.lang.NoSuchMethodError: weblogic.wsee.tools.anttasks.DelegatingJavacTask$ExposingJavac.getTempdir()Ljava/io/File;
at weblogic.wsee.tools.anttasks.DelegatingJavacTask.getTempdir(DelegatingJavacTask.java:170)
at weblogic.wsee.tools.anttasks.JwsModule.initialize(JwsModule.java:303)
at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:252)
at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:229)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
at org.apache.tools.ant.Main.runBuild(Main.java:609)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
Thanks,
Sriram

Hi Sriram,
Before running the ant task did you run the following startup script?
/setWLSEnv.sh
I found one of the customer in oracle knowledge base facing the similar issue like you and issue was solved after running the setWLSEnv startup script.
If the issue is still not resolved after trying the above suggestion, please attach the build.xml to this thread to review the same.
Thanks,
Vijaya

Similar Messages

  • Java.lang.NoSuchMethodError JAR problem

    Hi
    Running on Pocket PC using IBMs j9.
    If we build Jar A with a different library Jar B where a method in a class in A refers to a method in a class in B we get java.lang.NoSuchMethodError at runtime. Despite the fact that in jar B the Class and it's methods have not changed.
    This is worrying. Anybody got an explanation?
    Many thanks
    Ged
    a copy of any comment to [email protected] would be appreciated

    Hi
    Both jars are our own libraries. If we compare a calling jar (A) compiled against different called jars (B) then they are different !*@???
    I agree that one might expect that it is finding another implementation on the class path that is missing the method but I haven't found anything . The environment is an XDA 2 so it is limited.
    To add insult to injury we seem to have found another, different instance of the problem today.
    I must admit that I feel that we are missing something (brains ?).
    Cheers
    Ged

  • Why do I get a "java.lang.NoSuchMethodError"?

    Hello!
    I going to send a mail with a socketconnection, the program worked when I not was using GUI. Now I'm trying to make a GUI-version BUT it's not working. There is no problem to compile the program but when I am running the program I get a "java.lang.NoSuchMethodError"...why?
    I'v not been programming to much so I would really appreciate some tips!
    Some namings are in swedish! Sorry for that!
    Thank you for helping me// MM
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    import javax.swing.*;
    public class Lab3 {
    Window frame;
    public void main(String args[]) throws Exception{
         frame=new Window();
         Maila mail     =new Maila(args);
         String file=mail.hittaFil(args);
         mail.maila(file);
    class Window extends JFrame implements ActionListener{
         public JFrame mailFrame;
         public JPanel mailPanel;
         public JTextArea mailMedd;
         public JTextField adressField, filNamnField, mailAdressField, meddelandeField;
         public JLabel webbAdressLabel, filNamnLabel, mailAdressLabel, meddelandeLabel, blankLabel, svarLabel;
         public JButton searchButton, sendButton;
    public Window() {
         mailFrame = new JFrame("Finn och skicka fil");
         mailFrame.setSize(80, 150);
         mailPanel = new JPanel();
         // Add the widgets.
         addWidgets();
         // Add the panel to the frame.
         // Exit when the window is closed.
    mailFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         // Show the frame
         mailFrame.pack();
         mailFrame.setVisible(true);
    // Create and add the widgets for frame
    private void addWidgets() {
         // Create widgets.
         mailMedd = new JTextArea(6,3);
         adressField = new JTextField(30);
         filNamnField = new JTextField(30);
         mailAdressField = new JTextField(30);
         meddelandeField = new JTextField(30);
         webbAdressLabel = new JLabel("Webb-Adress: ", SwingConstants.RIGHT);
         filNamnLabel = new JLabel(" Filnamn: ", SwingConstants.RIGHT);
         blankLabel = new JLabel("", SwingConstants.RIGHT);
         meddelandeLabel = new JLabel(" Meddelande:", SwingConstants.RIGHT);
         svarLabel = new JLabel(" ");
         mailAdressLabel = new JLabel(" Skicka till: ", SwingConstants.RIGHT);
         searchButton = new JButton("Search for file");
         sendButton = new JButton("Send mail");
         // Listen to events from buttons.
         searchButton.addActionListener(this);
         sendButton.addActionListener(this);
         // Add widgets to container.
         Box b1h1 = Box.createHorizontalBox();
         Box b1h2 = Box.createHorizontalBox();
         Box b1h3 = Box.createHorizontalBox();
         Box b1h4 = Box.createHorizontalBox();
         Box b1h5 = Box.createHorizontalBox();
         Box b1h6 = Box.createHorizontalBox();
         Box b1h7 = Box.createHorizontalBox();
         Box bv = Box.createVerticalBox();
         b1h1.add(webbAdressLabel);
         b1h1.add(adressField);
         b1h2.add(filNamnLabel);
         b1h2.add(filNamnField);
         b1h3.add(blankLabel);
         b1h3.add(searchButton);
         b1h6.add(mailAdressLabel);
         b1h6.add(mailAdressField);
         b1h7.add(blankLabel);
         b1h7.add(sendButton);
         b1h4.add(meddelandeLabel);
         b1h4.add(blankLabel);
         b1h5.add(blankLabel);
         b1h5.add(svarLabel);
         bv.add(Box.createVerticalStrut(15));     
         bv.add(b1h1);
         bv.add(Box.createVerticalStrut(3));
         bv.add(b1h2);
         bv.add(Box.createVerticalStrut(15));
         bv.add(b1h3);
         bv.add(Box.createVerticalStrut(25));
         bv.add(b1h4);
         bv.add(Box.createVerticalStrut(15));
         bv.add(mailMedd);
         bv.add(Box.createVerticalStrut(3));
         bv.add(b1h5);
         bv.add(Box.createVerticalStrut(30));
         bv.add(b1h6);
         bv.add(Box.createVerticalStrut(15));
         bv.add(b1h7);
         bv.add(Box.createVerticalStrut(3));
         mailFrame.getContentPane().add(bv, BorderLayout.CENTER);
    // Implementation of ActionListener interface.
    public void actionPerformed(ActionEvent event) {
    class Maila{
    String[] args;
    public Maila(String[] args){
         this.args=args;
         public void maila(String file) throws IOException{
         Socket mailSocket;
         int j=0;
         String from,till,kopia,avsandare,mottagare;
         Vector to = new Vector();
         String subject;
         String data;
         BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
         PrintWriter out;
         BufferedReader mailIn;
         System.out.print("Fr?n: ");
         from=in.readLine();
         System.out.print("Till: ");
         till = in.readLine();
         //System.out.print("Skickakopia till: ");
         //kopia=in.readLine();
         //System.out.print("Avs?ndare: ");
         //avsandare=in.readLine();
         //System.out.print("Mottagare:: ");
         //mottagare=in.readLine();
         StringTokenizer st = new StringTokenizer(till);
         int nr = st.countTokens();
         while(st.hasMoreTokens()){
         nr = st.countTokens();
         to.add(st.nextToken());
         nr = st.countTokens();
         System.out.print("?mne: ");
         subject = in.readLine();
         System.out.println();
         System.out.println("Skriv ditt meddelande. Avsluta med 'Enter'");
         data = in.readLine();
         for(int k=0; k<to.size(); k++){
         String tillfadress = (String)to.elementAt(k);
         Object localhost = InetAddress.getLocalHost();
         mailSocket=new Socket("localhost",25);
         out=new PrintWriter(mailSocket.getOutputStream(), true);     
         mailIn=new BufferedReader(new InputStreamReader(mailSocket.getInputStream()));
         out.println("HELO "+"localhost");
         out.println("MAIL FROM: " + from);
         out.println("RCPT TO: " + tillfadress);
         out.println("DATA");
    out.println("Subject:" + subject);
         out.println("From: " + from);
         out.println("To: " + tillfadress);
         out.println("CC: " + tillfadress);
         out.println(data+file);
         out.println(".");
    //     System.out.println(mailIn.readLine() + "8");
         //out.flush();
         //printer.println("Subject: " + subject);
         //printer.println("From: " + sender);
         //printer.println("To: " + recipient);
         //printer.println("CC: " + cc);
         //printer.println(data);
    public String hittaFil(String[] args){
         int i;
         InputStream in = null;
         OutputStream out = null;
         String text=null;
         try{
         URL url = new URL("http://"+args[0]);
         for(i=2;i<args.length;i++){
              try{
              URL urlx = new URL(url,"~"+args);
              in = urlx.openStream();
              BufferedReader indata = new BufferedReader(new InputStreamReader(in));
              text = indata.readLine();
              catch(FileNotFoundException e){
              System.out.println("Ingen fil med givet namn hittad!");
         catch(Exception e){
         System.err.println(e);
         System.err.println("Usage: java GetURL <URL> <filename>");
         finally{
         try{
              in.close();
              out.close();
         catch(Exception e){}
         return(text);

    I don't see a main method in your code. The one declared in your Lab3.java is not static.

  • Java.lang.NoSuchMethodError using beans and JSP

    Hi,
    I get a
    java.lang.NoSuchMethodError: Unit.UnitBean.execSQL(Ljava/lang/String; Ljava/sql/ResultSet;
    when i try to call that method from my jsp page. I can call all other methods in teh bean but I can't understand why it can't find execSQL when it finds every thing else.
    Any help would be greatly appreciated.
    Mike
    Heres a copy of my java bean code:
    package Unit;
    import java.sql.*; 
    import java.io.*; 
    public class UnitBean
         Connection con;
         String error;
         public boolean connect() throws ClassNotFoundException,SQLException
              String StudentNumber = "xxx";
              String strHost = "xxxx";
              String strConnectURL = ("jdbc:postgresql://" + strHost + "/");
              String strUser = "xxxx";
              String strPassword = "xxxxx";
              Class.forName("org.postgresql.Driver");
              con = DriverManager.getConnection(strConnectURL, strUser, strPassword);     
              return true;
         public void disconnect() throws SQLException
              con.close();
         public ResultSet execSQL(String sql)throws SQLException
              Statement s = con.createStatement();
              ResultSet rs = s.executeQuery(sql);
              return rs;
         public String test()
              String Mike="HIHIHIHIHI";
              return Mike;
    }And the jsp code:
    <%@ page language="java" contentType="text/html"%>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <jsp:useBean id="Unit" class="Unit.UnitBean" scope="page"/>
    <html>
         <head>
              <title>Test My Bean!!!!???!!?!</title>
         </head>
         <body>
              <%
                   String SQL ="Select * from unit where unitid='CMPS2B26'";
                   ResultSet rs =null;
                   try
                        Unit.connect();
                        rs = Unit.execSQL(SQL);
                        while(rs.next())
                                  out.println(rs.getString("unitid"));
                        Unit.disconnect();     
                   catch(Exception e)
                        out.println("<p>Problem with jsp code" +e);
              %>
              This is a jsp page.
              <p><a href = "http://stuweb3.cmp.uea.ac.uk/~xxxx/index.html">Click here for home page</a>
         </body>
    </html>

    Yeah, that worked great, thanks a lot. I thought that JSP compiled when you changed it and then visited it, but i've tried that. I just ran ant stop start on my server and it's all working.
    Thanks again :)
    Mike

  • Error when starting Enterprise Manager: java.lang.NoSuchMethodError

    Hi,
    When trying to access the EM i got Error 404--Not Found, so i went to start EM manually but i'm getting this error when trying to start the EM in weblogic 10.3.6 on Windows 7 64 bits:
    ####<12-10-2012 09:47:02 AM CST> <Warning> <Deployer> <Carlos-PC> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <28c4d4e1e4b85327:42e7543a:13b85623d16:-8000-00000000000001d1> <1355154422239> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         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:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         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:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getLevel()Lorg/apache/log4j/Level;What should i do to solve this ?? :(
    Regards
    Carlos

    At the admin console the error shown is the one from the warning, the error from log is:
    ####<12-10-2012 09:47:02 AM CST> <Error> <Deployer> <Carlos-PC> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <28c4d4e1e4b85327:42e7543a:13b85623d16:-8000-00000000000001c8> <1355154422236> <BEA-149202> <Encountered an exception while attempting to commit the 7 task for the application 'em'.>
    ####<12-10-2012 09:47:02 AM CST> <Warning> <Deployer> <Carlos-PC> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <28c4d4e1e4b85327:42e7543a:13b85623d16:-8000-00000000000001d1> <1355154422238> <BEA-149004> <Failures were detected while initiating start task for application 'em'.>
    ####<12-10-2012 09:47:02 AM CST> <Warning> <Deployer> <Carlos-PC> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <28c4d4e1e4b85327:42e7543a:13b85623d16:-8000-00000000000001d1> <1355154422239> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1520)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         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:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         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:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused By: java.lang.NoSuchMethodError: org.apache.log4j.spi.LoggingEvent.getLevel()Lorg/apache/log4j/Level;
         at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:215)
         at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)
         at org.apache.log4j.Category.callAppenders(Category.java:190)
         at org.apache.log4j.Category.forcedLog(Category.java:375)
         at org.apache.log4j.Category.log(Category.java:838)
         at oracle.sysman.util.logging.ApacheLogOperations.logp(ApacheLogOperations.java:251)
         at oracle.sysman.util.logging.DualModeLogOperations.logp(DualModeLogOperations.java:244)
         at oracle.sysman.emSDK.util.logging.Logger.logp(Logger.java:1104)
         at oracle.sysman.emSDK.util.logging.Logger.log(Logger.java:810)
         at oracle.sysman.util.logging.log4j.Log4jLogger.log(Log4jLogger.java:145)
         at oracle.sysman.util.logging.log4j.Log4jLogger.debug(Log4jLogger.java:83)
         at oracle.sysman.eml.app.ContextInitializer.storeOmsAdminOp(ContextInitializer.java:1727)
         at oracle.sysman.eml.app.ContextInitializer.contextInitialized(ContextInitializer.java:1153)
         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:1868)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3154)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1518)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:484)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         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:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         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:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:671)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:59)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:150)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:116)
         at weblogic.deploy.internal.targetserver.operations.StartOperation.doCommit(StartOperation.java:149)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844)
         at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:195)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:68)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

  • Exception in thread "main" java.lang.NoSuchMethodError: com.sun.xml.wss.con

    Hi everyone,
    Just now i tried to run the 'simple' example in an JAXRPC Security part in the JWSDP 1.4 tutorial but got the following error:
    run-sample:
    [echo] Running the simple.TestClient program....
    [java] Service URL=http://localhost:8080/securesimple/Ping
    [java] Exception in thread "main" java.lang.NoSuchMethodError: com.sun.xml.wss.configuration.SecurityConfigurationXmlReader.readJAXRPCSecurityConfigurationString(Ljava/lang/String;Z)Lcom/sun/xml/wss/configuration/JAXRPCSecurityConfiguration;
    [java]      at com.sun.xml.rpc.security.SecurityPluginUtil.<init>(SecurityPluginUtil.java:128)
    [java]      at simple.PingPort_Ping_Stub.<clinit>(PingPort_Ping_Stub.java:40)
    [java]      at simple.PingService_Impl.getPing(PingService_Impl.java:68)
    [java]      at simple.TestClient.main(TestClient.java:27)
    Can anybody give me a clue?

    Vishal, thanks a lot for your reply. I used the App Server 2004Q4 beta and got the problem. When I switch to version 8.0.0_01 the things work well.
    But now I'm trying to understand this example and creating my own simple web app using encryption feature. From the files in the example dicrectory I can figure out the security applied at client by examining client stub files generated by the wscompile in the asant gen-client task. But I wonder when security is added to the server side. Is it when we use wsdeploy with the model part specifiedin jaxrpc-ri.xml? What is the procedure to apply the security to the web service?
    The last thing I want to ask is whether the deploytool bundled inside App Server can do the same things as ant task (eg. wsdeploy with some arguments).

  • 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: init when running in a Thread

    I have a Java class that calls a C++ function (JNI) and the return of that function is a Java object:
    There�s the problematic C++ code:
    jclass taskDescriptorClass = env->FindClass("a/b/TaskDescriptor");
    if (taskDescriptorClass == NULL) {
         //Class cannot be found
         return NULL;
    jmethodID constructorMID = env->GetMethodID(taskDescriptorClass, "<init>", "void(V)");
    if (constructorMID == NULL) {
         return NULL;
    }This code as always behaved as expected, running in a JUnit test. But now I�m calling the code inside a thread (new Thread(new Runnable() { public void run() { ...NATIVE CALL...), but now I�m getting an exception:
    Exception in thread "thrd1" java.lang.NoSuchMethodError: <init>
         at a.b.JTLs.createTask(Native Method)
         at a.b.GrammarBuilder.build(GrammarBuilder.java:216)
         at a.b.GrammarManager.getModel(GrammarManager.java:230)
         at a.b.GrammarManager.getModel(GrammarManager.java:146)
         at a.b.TestGrammarManager$1.run(TestGrammarManager.java:58)
         at java.lang.Thread.run(Thread.java:595) I�m using J2SE 5 update 06
    Does anyone know why is this happening?
    Thanks

    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

  • JWSC Ant task with JAXWS web services failed

    Hi,
    I do not manage to generate my JAXWS web services using jwsc ant task. It worked when my web services were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
      <pathelement location="${java.home}/../lib/tools.jar" />
      <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
      <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
      <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
       <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
       <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
      <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
      <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
           <module contextpath="myappli" name="webservices.jar" explode="true">
          <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
          <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
        </module>
      </jwsc>
    </target>This task generate the following error :
    generate-webservices:
         [jwsc] JWS: processing module webservices.jar
         [jwsc] Parsing source files
         [jwsc] Parsing source files
         [jwsc] 2 JWS files being processed for module webservices.jar
         [jwsc] JWS: C:\projects\appli\main\src\net\aze\appli\services\alarm\jwsendpoint\AlarmBean.java Validated.
         [jwsc] JWS: C:\projects\appli\main\src\net\aze\appli\services\alert\jwsendpoint\AlertBean.java Validated.
         [jwsc] Processing 2 JAX-WS web services...
         [jwsc] warning: Annotation types without processors: [javax.ejb.Stateless, javax.annotation.Resource, javax.annotation.security.RolesAllowed]
         [jwsc] C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jws\alert\PTAlert.java:33: The endpoint interface net.aze.appli.jws.alarm.PTAlarm does not match the interface net.aze.appli.jws.alert.PTAlert.
         [jwsc] public interface PTAlert {
         [jwsc]        ^
         [jwsc] 1 error
         [jwsc] 1 warning
         [jwsc] Command invoked: apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe -classpath C:\projects\appli\lib\common\caplib.jar;C:\pr......[pre]
    C:\projects\aze\main\bea-build.xml:15: The following error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:46: The following error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:110: weblogic.wsee.tools.WsBuildException: Error processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName = "applids", type = DataSource.class)
    @WebService(endpointInterface = "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file = "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
        @Resource
        private SessionContext sessionContext;
        public AlarmCreateOut persist(AlarmCreateIn in) {
            return AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName = "applids", type = DataSource.class)
    @WebService(endpointInterface = "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
        @Resource
        private SessionContext sessionContext;
        public AlertCreateOut persist(AlertCreateIn in) {
            return AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AM

    Hi,
    I do not manage to generate my JAXWS web services
    using jwsc ant task. It worked when my web services
    were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service
    artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
    <pathelement location="${java.home}/../lib/tools.jar" />
    <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
    <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
    <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
    <module contextpath="myappli" name="webservices.jar" explode="true">
    <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
    <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
    </module>
    </jwsc>
    </target>This task generate the following error :
    generate-webservices:
    [jwsc] JWS: processing module webservices.jar
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 2 JWS files being processed for module
    odule webservices.jar
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\alar
    m\jwsendpoint\AlarmBean.java Validated.
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\aler
    t\jwsendpoint\AlertBean.java Validated.
    [jwsc] Processing 2 JAX-WS web services...
    [jwsc] warning: Annotation types without
    thout processors: [javax.ejb.Stateless,
    javax.annotation.Resource,
    javax.annotation.security.RolesAllowed]
    [jwsc]
    jwsc]
    C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jw
    s\alert\PTAlert.java:33: The endpoint interface
    net.aze.appli.jws.alarm.PTAlarm does not match the
    interface net.aze.appli.jws.alert.PTAlert.
    [jwsc] public interface PTAlert {
    [jwsc]        ^
    [jwsc] 1 error
    [jwsc] 1 warning
    [jwsc] Command invoked: apt
    : apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe
    -classpath
    C:\projects\appli\lib\common\caplib.jar;C:\pr......[pr
    e]
    C:\projects\aze\main\bea-build.xml:15: The following
    error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    46: The following error occurred while executing this
    line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    110: weblogic.wsee.tools.WsBuildException: Error
    processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file =
    "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
    @Resource
    private SessionContext sessionContext;
    public AlarmCreateOut persist(AlarmCreateIn in)
    in) {
    return
    return
    n
    AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
    @Resource
    private SessionContext sessionContext;
    public AlertCreateOut persist(AlertCreateIn in)
    in) {
    return
    return
    n
    AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to
    generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a
    bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AM
    Hi,
    I do not manage to generate my JAXWS web services
    using jwsc ant task. It worked when my web services
    were JAX-RPC web services but now I have an error.
    In my build process, I generate first the web service
    artifacts from wsdl files using wsdlc :
    <path id="bea-ant-task.classpath">
    <pathelement location="${java.home}/../lib/tools.jar" />
    <fileset dir="${bea.home.dir}/wlserver_10.0/server/lib"/>
    <fileset dir="${bea.home.dir}/modules"/>
    </path>
    <taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-artifacts">
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlarmWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    <wsdlc type="JAXWS" srcWsdl="${build.wsdl.dir}/AlertWS.wsdl" destJwsDir="${build.artifacts.jar.dir}" />
    </target>Then I tried to generate my web services with jwsc :
    <taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask">
    <classpath refid="bea-ant-task.classpath" />
    </taskdef>
    <target name="generate-webservices">
    <jwsc srcdir="src" destdir="${ear.dir}" keepGenerated="yes" classpathref="compile.classpath" >
    <module contextpath="myappli" name="webservices.jar" explode="true">
    <jws type="JAXWS" file="${myappli.path}/alarm/jwsendpoint/AlarmBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlarmWS_wsdl.jar"/>
    <jws type="JAXWS" file="${myappli.path}/alert/jwsendpoint/AlertBean.java" compiledWsdl="${build.artifacts.jar.dir}/AlertWS_wsdl.jar"/>
    </module>
    </jwsc>
    </target>This task generate the following error :
    generate-webservices:
    [jwsc] JWS: processing module webservices.jar
    [jwsc] Parsing source files
    [jwsc] Parsing source files
    [jwsc] 2 JWS files being processed for module
    odule webservices.jar
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\alar
    m\jwsendpoint\AlarmBean.java Validated.
    [jwsc] JWS:
    JWS:
    C:\projects\appli\main\src\net\aze\appli\services\aler
    t\jwsendpoint\AlertBean.java Validated.
    [jwsc] Processing 2 JAX-WS web services...
    [jwsc] warning: Annotation types without
    thout processors: [javax.ejb.Stateless,
    javax.annotation.Resource,
    javax.annotation.security.RolesAllowed]
    [jwsc]
    jwsc]
    C:\DOCUME~1\wg\LOCALS~1\Temp\_jg4rtr3\net\aze\appli\jw
    s\alert\PTAlert.java:33: The endpoint interface
    net.aze.appli.jws.alarm.PTAlarm does not match the
    interface net.aze.appli.jws.alert.PTAlert.
    [jwsc] public interface PTAlert {
    [jwsc]        ^
    [jwsc] 1 error
    [jwsc] 1 warning
    [jwsc] Command invoked: apt
    : apt C:\apps\bea10\JROCKI~1\jre\bin\java.exe
    -classpath
    C:\projects\appli\lib\common\caplib.jar;C:\pr......[pr
    e]
    C:\projects\aze\main\bea-build.xml:15: The following
    error occurred while executing this line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    46: The following error occurred while executing this
    line:
    C:\projects\aze\main\ant\bea-generate-webservices.xml:
    110: weblogic.wsee.tools.WsBuildException: Error
    processing JAX-WS web servicesHere is my bean implementation :
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alarm.PTAlarm")
    @HandlerChain(file =
    "../../../handler/alarmHandlerChain.xml")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlarmBean implements PTAlarm {
    @Resource
    private SessionContext sessionContext;
    public AlarmCreateOut persist(AlarmCreateIn in)
    in) {
    return
    return
    n
    AlarmDelegate.getInstance(sessionContext).persist(in);
    @Stateless()
    @Resource(name = "jdbc/applids", mappedName =
    "applids", type = DataSource.class)
    @WebService(endpointInterface =
    "net.aze.appli.jws.alert.PTAlert")
    @RolesAllowed({"anonym", "systemUser"})
    public class AlertBean implements PTAlert {
    @Resource
    private SessionContext sessionContext;
    public AlertCreateOut persist(AlertCreateIn in)
    in) {
    return
    return
    n
    AlertDelegate.getInstance(sessionContext).persist(in);
    }Jwsc seems to mix the interfaces... If I try to
    generate only one bean in jwsc it works...
    Any ideas? I can't find the solution, could it be a
    bug?
    Thanks for your help.
    Edited by will_mad at 09/11/2007 1:56 AMI too am getting similar error. If you hit a solution, do let me know :)

  • Java.lang.NoSuchMethodError: oracle.iam.rm.server_api.Server.search

    Hi All,
    I will integrate OIM 9.1.0.1 and ORM 10.1.4.1 and i have a porblem with the Recon Tasks of OIM. If I start the RoleManagerUserReconciliation_Full i get following error:
    2009-01-26 17:28:38,187 ERROR [STDERR] java.lang.NoSuchMethodError: oracle.iam.rm.server_api.Server.search(Loracle/iam/rm/server_api/IdentityToken;Ljava/lang/String;Ljava/lang/String;Loracle/iam/rm/server_api/CriterionSet;Loracle/iam/rm/server_api/ColumnSet;J)Loracle/iam/rm/server_api/ServerPaginatedResultSet
    The Server.class is located in the server_api_14.jar
    Can sombody help me to solve this problem.
    Thanks
    Thomas

    Hi Trevor,
    weird - there is another thread related to this issue:
    Re: BUG 5930745
    Did you use the JDeveloper 10.1.3.1 Production or Preview version (see http://blogs.oracle.com/Didier/2006/10/22#a114)
    Regards,
    Didier.

  • Line numbers in JWS classfile generated by jwsc Ant task

    Does anyone know how to get the jswc ant task to add line number attributes to JWS class file that it generates. When I try to use Eclipse to set a breakpoint in the service code I get a pop up that states
    +"Unable to install breakpoint in.....due to missing line number attributes. Modify compiler option to generate line number attributes"+
    I looked at the documentation for jswc and I dont see any options that can be passed to the java compiler.
    Karl

    Pls set debug attribute of JWSC ant task to true or on, e.g.
    <jwsc srcdir="." destdir="${output.dir}" debug="on" keepGenerated="true">
              </jwsc>

  • ODI-17517: Error during task interpretation. Task: 6 java.lang.Exception

    Hi,
    Can some one provide a resolution for below error:
    I have created an interface which load data from csv file which has 320 columns, to a Synonym which has 320 columns in it
    using LKM File to SQL, IKM Sql Control Append.
    I am getting below error when executing the interface :
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: ODI-17517: Error during task interpretation. Task: 6 java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: java.lang.StringIndexOutOf . . . '' Token Parsing Error: Lexical error at line 2, column 42. Encountered: "
    " (92), after : "": <at unknown location> BSF info: Create external table at line: 0 column: columnNo
    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:485)
    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:711)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
    at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: org.apache.bsf.BSFException: BeanShell script error: Sourced file: inline evaluation of: ``out.print("The application script threw an exception: java.lang.StringIndexOutOf . . . '' Token Parsing Error: Lexical error at line 2, column 42. Encountered: "
    " (92), after : "": <at unknown location>
    BSF info: Create external table at line: 0 column: columnNo
    at bsh.util.BeanShellBSFEngine.eval(Unknown Source)
    at bsh.util.BeanShellBSFEngine.exec(Unknown Source)
    at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:471)
    ... 11 more
    Text: The application script threw an exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 2 BSF info: Create external table at line: 0 column: columnNo
    out.print("createTblCmd = r\"\"\"\ncreate table ") ;
    out.print(odiRef.getTable("L", "COLL_NAME", "W")) ;
    out.print("<?=(extTabColFormat.getUseView())?\"_ET\":\"\"?>\n(\n\t") ;
    out.print(odiRef.getColList("", "[CX_COL_NAME]
    t"+
    "<?=extTabColFormat.getExtTabDataType(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]
    u0022, \\u0022[DEST_WRI_DT]
    u0022, \\u0022[COL_FORMAT]
    u0022, \\u0022[BYTES]
    u0022, \\u0022[LONGC]
    u0022, \\u0022[SCALE]
    u0022)?>"
    , ",\\n
    t", "","")) ;
    out.print("\n)\nORGANIZATION EXTERNAL\n(\n\tTYPE ORACLE_LOADER\n\tDEFAULT DIRECTORY dat_dir\n\tACCESS PARAMETERS\n\t(\n\t\tRECORDS DELIMITED BY 0x'") ;
    out.print(odiRef.getSrcTablesList("[XFILE_SEP_ROW]","")) ;
    out.print("'\n\t\t") ;
    out.print(odiRef.getUserExit("EXT_CHARACTERSET")) ;
    out.print("\n\t\t") ;
    out.print(odiRef.getUserExit("EXT_STRING_SIZE")) ;
    out.print("\n\t\tBADFILE\t\t'") ;
    out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
    out.print("_%a.bad'\n\t\tLOGFILE\t\t'") ;
    out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
    out.print("_%a.log'\n\t\tDISCARDFILE\t'") ;
    out.print(odiRef.getSrcTablesList("", "[RES_NAME]", "", "")) ;
    out.print("_%a.dsc'\n\t\tSKIP \t\t") ;
    out.print(odiRef.getSrcTablesList("", "[FILE_FIRST_ROW]", "", "")) ;
    out.print("\n") ;
    if (odiRef.getSrcTablesList("", "[FILE_FORMAT]", "", "").equals("F")) {out.print("\n\t\tFIELDS\n\t\t") ;
    out.print(odiRef.getUserExit("EXT_MISSING_FIELD")) ;
    out.print("\n\t\t(\n\t\t\t") ;
    out.print(odiRef.getColList("", "[CX_COL_NAME]\\tPOSITION([FILE_POS]:[FILE_END_POS])
    t"+
    "<?=extTabColFormat.getExtTabFormat(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]
    u0022, \\u0022DEST_WRI_DT
    u0022, \\u0022[COL_FORMAT]
    u0022, \\u0022[BYTES]
    u0022, \\u0022[LONGC]
    u0022, \\u0022[SCALE]
    u0022)?>"
    , ",\\n\\t\\t
    t", "","")) ;
    out.print("\t\t\n\t\t)\n\t)\n") ;
    } else {out.print("\n\t\tFIELDS TERMINATED BY x'") ;
    out.print(odiRef.getSrcTablesList("", "[XFILE_SEP_FIELD]", "", "")) ;
    out.print("'\n\t\t") ;
    if(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").equals("")){out.print("\n\t\t") ;
    } else {out.print("OPTIONALLY ENCLOSED BY '") ;
    out.print(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(0,1)) ;
    out.print("' AND '") ;
    out.print(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(1,2)) ;
    out.print("' ") ;
    }out.print("\n\t\t") ;
    out.print(odiRef.getUserExit("EXT_MISSING_FIELD")) ;
    out.print("\n\t\t(\n\t\t\t") ;
    out.print(odiRef.getColList("", "[CX_COL_NAME]
    t"+
    "<?=extTabColFormat.getExtTabFormat(\\u0022[CX_COL_NAME]\\u0022,\\u0022[SOURCE_DT]
    u0022, \\u0022DEST_WRI_DT
    u0022, \\u0022[COL_FORMAT]
    u0022, \\u0022[BYTES]
    u0022, \\u0022[LONGC]
    u0022, \\u0022[SCALE]
    u0022)?>"
    , ",\\n\\t\\t
    t", "","")) ;
    out.print("\t\t\n\t\t)\n\t)\n") ;
    }out.print("\tLOCATION (") ;
    out.print(odiRef.getSrcTablesList("", "'[RES_NAME]'", "", "")) ;
    out.print(")\n)\n") ;
    out.print(odiRef.getUserExit("EXT_PARALLEL")) ;
    out.print("\nREJECT LIMIT ") ;
    out.print(odiRef.getUserExit("EXT_REJECT_LIMIT")) ;
    out.print("\n\"\"\"\n \n# Create the statement\nmyStmt = myCon.createStatement()\n \n# Execute the trigger creation\nmyStmt.execute(createTblCmd)\n \nmyStmt.close()\nmyStmt = None\n \n# Commit, just in case\nmyCon.commit()") ;
    ****** ORIGINAL TEXT ******
    createTblCmd = r"""
    create table <%=odiRef.getTable("L", "COLL_NAME", "W")%><?=(extTabColFormat.getUseView())?"_ET":""?>
    <%=odiRef.getColList("", "[CX_COL_NAME]\t"+
    "<?=extTabColFormat.getExtTabDataType(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022[DEST_WRI_DT]\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
    , ",\n\t", "","")%>
    ORGANIZATION EXTERNAL
    TYPE ORACLE_LOADER
    DEFAULT DIRECTORY dat_dir
    ACCESS PARAMETERS
    RECORDS DELIMITED BY 0x'<%=odiRef.getSrcTablesList("[XFILE_SEP_ROW]","")%>'
    <%=odiRef.getUserExit("EXT_CHARACTERSET")%>
    <%=odiRef.getUserExit("EXT_STRING_SIZE")%>
    BADFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.bad'
    LOGFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.log'
    DISCARDFILE '<%=odiRef.getSrcTablesList("", "[RES_NAME]", "", "")%>_%a.dsc'
    SKIP <%=odiRef.getSrcTablesList("", "[FILE_FIRST_ROW]", "", "")%>
    <% if (odiRef.getSrcTablesList("", "[FILE_FORMAT]", "", "").equals("F")) {%>
    FIELDS
    <%=odiRef.getUserExit("EXT_MISSING_FIELD")%>
    <%=odiRef.getColList("", "[CX_COL_NAME]\tPOSITION([FILE_POS]:[FILE_END_POS])\t"+
    "<?=extTabColFormat.getExtTabFormat(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022DEST_WRI_DT\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
    , ",\n\t\t\t", "","")%>
    <%} else {%>
    FIELDS TERMINATED BY x'<%=odiRef.getSrcTablesList("", "[XFILE_SEP_FIELD]", "", "")%>'
    <% if(odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").equals("")){%>
    <%} else {%>OPTIONALLY ENCLOSED BY '<%=odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(0,1)%>' AND '<%=odiRef.getSrcTablesList("", "[FILE_ENC_FIELD]", "", "").substring(1,2)%>' <%}%>
    <%=odiRef.getUserExit("EXT_MISSING_FIELD")%>
    <%=odiRef.getColList("", "[CX_COL_NAME]\t"+
    "<?=extTabColFormat.getExtTabFormat(\u0022[CX_COL_NAME]\u0022,\u0022[SOURCE_DT]\u0022, \u0022DEST_WRI_DT\u0022, \u0022[COL_FORMAT]\u0022, \u0022[BYTES]\u0022, \u0022[LONGC]\u0022, \u0022[SCALE]\u0022)?>"
    , ",\n\t\t\t", "","")%>
    <%}%> LOCATION (<%=odiRef.getSrcTablesList("", "'[RES_NAME]'", "", "")%>)
    <%=odiRef.getUserExit("EXT_PARALLEL")%>
    REJECT LIMIT <%=odiRef.getUserExit("EXT_REJECT_LIMIT")%>
    # Create the statement
    myStmt = myCon.createStatement()
    # Execute the trigger creation
    myStmt.execute(createTblCmd)
    myStmt.close()
    myStmt = None
    # Commit, just in case
    myCon.commit().
    at com.sunopsis.dwg.dbobj.SnpSessStep.createTaskLogs(SnpSessStep.java:738)
    at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:461)
    at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2093)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:366)
    at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:216)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:300)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:292)
    at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:855)
    at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:126)
    at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
    at java.lang.Thread.run(Thread.java:662)

    Hi
    I saw your issue and found one think that "String index out of range", can you please compare the columns datatype and column size with target table and ODI table.
    ODI Table:
    After Reverse Engine, CSV changed into table format can you please open the table from designer>model>csv table and goto columns tab, it will list out the all column name datatype and size. compare the column size and type with your target table.
    hope this will resolve your issue.
    Regards,
    Phanikanth

  • Java.lang.NoSuchMethodError: setBasename

    Hi All
    I recently migrated to jsf 1.2 while trying to access the login page i get the following error
    Can anyone help me out on this??
    com.sun.faces.lifecycle.LifecycleImpl phase
    WARNING: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@84a5c3) threw exception
    javax.faces.FacesException: javax.servlet.ServletException: java.lang.NoSuchMethodError: setBasename
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:427)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:454)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: javax.servlet.ServletException: java.lang.NoSuchMethodError: setBasename
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:324)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:422)
         ... 25 more
    Caused by: java.lang.NoSuchMethodError: setBasename
         at jsp_servlet.__login._jsp__tag1(__login.java:396)
         at jsp_servlet.__login._jspService(__login.java:179)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:422)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:454)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    Edited by: user11096200 on Jun 24, 2009 5:06 AM

    Thanks for the reply,
    I tried rebuilding the application with JSF 1.2 jars in classpath ,but i get another exception and i'm using weblogic 10.1 MP1 and JSF1.2 that comes with weblogic 10.
    com.sun.faces.lifecycle.LifecycleImpl phase
    WARNING: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@8b24fa) threw exception
    java.lang.ClassCastException: java.lang.String
         at jsp_servlet.__login._jsp__tag1(__login.java:442)
         at jsp_servlet.__login._jspService(__login.java:180)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:422)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:454)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:116)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:134)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3392)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

  • 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.");
        }

Maybe you are looking for

  • Help:procedure 2 handleunknown indexes inABAP dictionary for BW SAP_BW 350?

    Hi all, can anyone help me with the procedure to handle unknown indexes in ABAP dictionary for a BW SAP_BW 350 Production system? The list of some of the indexes are as follows : /BI0/E0CCA_C11~P /BI0/E0FIGL_C01~P /BI0/E0OPA_C11~P /BI0/E0PS_C04~P /BI

  • Time issue on MacBook Pro

    Hi, I've had a problem with my mac for some time. Whenever I open or modify a file, the time shown is incorrect. The date is always correct, but the time shows 7:08pm for everything. The same occurs in Time Machine backups, iCal events and email from

  • Trying to use AVTransmit with AVReceive

    I am working on a video conferencing app that leverages multicast. I am new to JMF so please forgive my newbie status. I would like to receive Audio/Video streams on my app and retransmit them via multicast. My main question is can I receive a RTP/Vi

  • Viewing Netflix Trailers with QuickTime in Safari

    I use both Safari and Firefox browsers, but I have come to prefer Safari. I also subscribe to the Netflix DVD rental service. I enjoy the Netflix feature that allows viewing movie trailers by clicking a "Preview" button. When I click Preview in Firef

  • Keynote 3 and Quicktime videos

    I had keynote 2. Did some cool slides that i exported to final cut express as a qt movie. and put it in my timeline no problem. I upgraded to Keynote 3 now and can export a slide as a qt mov. but CANNOT import ANY QT movies into fce. Is there a compa