Unreported exception during connection

hi all,
I am trying to connect to the database.I am using
Class.forName("oracle.jdbc.driver.OracleDriver");
connection = DriverManager.getConnection(driver+"@"+host+":"+port+":"+serverID,userID,password);
statement = connection.createStatement();
but i am getting the following error.
Error(105,16): unreported exception: java.lang.ClassNotFoundException; must be caught or declared to be thrown
I tried making the following changes:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
connection = DriverManager.getConnection(driver+"@"+host+":"+port+":"+serverID,userID,password);
statement=connection.createStatement();
but got the following error
Error(110,55): cannot access class oracle.jdbc.driver.OracleDriver; file oracle\jdbc\driver\OracleDriver.class not found
I am using the jdevloper9i rc2 and have been working on this project for some time now but didnt got any of the above errors in the different modules of the project when i used any of the above statements,The above errors never occured before.
Also i did checked my classpath for the classes.jar which was set as
c:/<jdev direc>/jdbc/lib/classes12.jar
kindly suggest..
regards,
nikhil

Nikil:
hi all,
I am trying to connect to the database.I am using
Class.forName("oracle.jdbc.driver.OracleDriver");
connection = DriverManager.getConnection(driver+"@"+host+":"+port+":"+serverID,userID,password);
statement = connection.createStatement();
but i am getting the following error.
Error(105,16): unreported exception: java.lang.ClassNotFoundException; must be caught or declared to be thrownThis is because Class.forName can throw a ClassNotFoundException. Wrap your code with try/catch as in
   try
      Class.forName ...
   catch(Exception ex)
      // exception handling
   }==================
I tried making the following changes:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
connection = DriverManager.getConnection(driver+"@"+host+":"+port+":"+serverID,userID,password);
statement=connection.createStatement();
but got the following error
Error(110,55): cannot access class oracle.jdbc.driver.OracleDriver; file oracle\jdbc\driver\OracleDriver.class not found
I am using the jdevloper9i rc2 and have been working on this project for some time now but didnt got any of the above errors in the different modules of the project when i used any of the above statements,The above errors never occured before.
Also i did checked my classpath for the classes.jar which was set as
c:/<jdev direc>/jdbc/lib/classes12.jarLook for classes12.jar on your C drive and set your classpath with the correct file name. The location has changed over time.
Thanks.
Sung
kindly suggest..
regards,
nikhil

Similar Messages

  • 4i Viewer "General exception during connect" error

    4i Viewer servlet runs but with the following error --- "General exception during connect" (in the lower LH part of webpage). We're using a distributed setup: a WinNT4(sp6a)/IIS 4.0/JRun 3.0 machine and a Discoverer 4i server (WinNT4 sp6a). Plus has been tested and works (applet to EUL/db). JRun classpath is set correctly because the servlet starts. Does anyone know how to resolve this issue with the servlet connection to Discoverer services (servlet->Locator->Session)?

    hi,
    did you got the solution i am having same problem.

  • Processing exception during a "Render" operation -- adobe form

    Hi All,
    I am getting following error when I am running any adobe form including tutorials from sdn.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Error during call to AdobeDocumentServer: <b>Processing exception during a "Render"</b> operation.
    Request start time: Fri Jun 23 14:27:34 IST 2006
    com.adobe.ProcessingError: <b>File not found error writing stream: <Render><Template><Name></b> "http://in-ccusapep01:50000/webdynpro/dispatcher/local/TutWD_DynamicForm/DynamicFormApp/wd_keyagQrztI_a3fvmxOUpvPuSA==/sapwebdynpro.xft;jsessionid=(J2EE4083000)ID0174858350DB00090618831087003045End;saplb_*=(J2EE4083000)4083050?sap.session.download=4&sap-wd-cltwndid=4f233921029611db9f3700142216317c&sap-wd-appwndid=Id4f233921029611db9f3700142216317c1b&sap-wd-norefresh=true :
    <b>java.io.FileNotFoundException: IO error detected while opening HTTP/HTTPS connection</b>: http://in-ccusapep01:50000/webdynpro/dispatcher/local/TutWD_DynamicForm/DynamicFormApp/wd_keyagQrztI_a3fvmxOUpvPuSA==/sapwebdynpro.xft;jsessionid=(J2EE4083000)ID0174858350DB00090618831087003045End;saplb_*=(J2EE4083000)4083050?sap.session.download=4&sap-wd-cltwndid=4f233921029611db9f3700142216317c&sap-wd-appwndid=Id4f233921029611db9f3700142216317c1b&sap-wd-norefresh=true :
    <b>java.io.FileNotFoundException: HTTP Status-code: 503 Service Unavailable</b> - connecting to http://in-ccusapep01:50000/webdynpro/dispatcher/local/TutWD_DynamicForm/DynamicFormApp/wd_keyagQrztI_a3fvmxOUpvPuSA==/sapwebdynpro.xft;jsessionid=(J2EE4083000)ID0174858350DB00090618831087003045End;saplb_*=(J2EE4083000)4083050?sap.session.download=4&sap-wd-cltwndid=4f233921029611db9f3700142216317c&sap-wd-appwndid=Id4f233921029611db9f3700142216317c1b&sap-wd-norefresh=true
    Exception Stack Trace:
    com.adobe.ProcessingError: File not found error writing stream: <Render><Template><Name> "http://in-ccusapep01:50000/webdynpro/dispatcher/local/TutWD_DynamicForm/DynamicFormApp/wd_keyagQrztI_a3fvmxOUpvPuSA==/sapwebdynpro.xft;jsessionid=(J2EE4083000)ID0174858350DB00090618831087003045End;saplb_*=(J2EE4083000)4083050?sap.session.download=4&sap-wd-cltwndid=4f233921029611db9f3700142216317c&sap-wd-appwndid=Id4f233921029611db9f3700142216317c1b&sap-wd-norefresh=true :
    java.io.FileNotFoundException: IO error detected while opening HTTP/HTTPS connection: http://in-ccusapep01:50000/webdynpro/dispatcher/local/TutWD_DynamicForm/DynamicFormApp/wd_keyagQrztI_a3fvmxOUpvPuSA==/sapwebdynpro.xft;jsessionid=(J2EE4083000)ID0174858350DB00090618831087003045End;saplb_*=(J2EE4083000)4083050?sap.session.download=4&sap-wd-cltwndid=4f233921029611db9f3700142216317c&sap-wd-appwndid=Id4f233921029611db9f3700142216317c1b&sap-wd-norefresh=true :
    java.io.FileNotFoundException: HTTP Status-code: 503 Service Unavailable - connecting to http://in-ccusapep01:50000/webdynpro/dispatcher/local/TutWD_DynamicForm/DynamicFormApp/wd_keyagQrztI_a3fvmxOUpvPuSA==/sapwebdynpro.xft;jsessionid=(J2EE4083000)ID0174858350DB00090618831087003045End;saplb_*=(J2EE4083000)4083050?sap.session.download=4&sap-wd-cltwndid=4f233921029611db9f3700142216317c&sap-wd-appwndid=Id4f233921029611db9f3700142216317c1b&sap-wd-norefresh=true
         at com.adobe.Render.execute(Unknown Source)
         at com.adobe.BaseADSRequest.doWork(Unknown Source)
         at com.adobe.AdobeDocumentServicesWorker.execute(Unknown Source)
         at com.adobe.AdobeDocumentServicesEJB.processRequest(Unknown Source)
         at com.adobe.AdobeDocumentServicesEJB.rpData(Unknown Source)
         at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:120)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
         at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
         at SoapServlet.doPost(SoapServlet.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
         at com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper.createPDFDocumentForUIElement(AdobeFormHelper.java:486)
         at com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.InteractiveForm.afterHandleActionEvent(InteractiveForm.java:185)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.afterHandleActionEvent(ClientApplication.java:1154)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:402)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Please help.
    Thanks is advance .
    Raktim

    Hi tiffny
    FQDN is fully qualified domain name . Like a computer can be accessed with http://mycomputer:50000. or http://mycomputer.mycompany.com:50000. Last one is FQDN.
    When u download from service.sap.com u can see whether it is 6 or 7 .
    Thanks
    Raktim

  • Unreported exception java.lang.Exception; must be caught or declared

    I've got a piece of code that's causing an error during compilation.
    W:\Java\Covenant\src\covenant\Login.java:174: unreported exception java.lang.Exception; must be caught or declared to be thrownThe line of code it is refering to is:
    new Overview().setVisible(true);And it is part of a try/catch statement:
        private void logincheck(java.awt.event.ActionEvent evt) {                           
            try {
                char[] PasswordInput = Password.getPassword();
                String PasswordRaw = new String(PasswordInput);
                String Passwordmd5 = md5(PasswordRaw);
                String UsernameInput = Username.getText();
                URL theUrl = new URL("http://www.phoenixrising.at/iris/validate.php?login=1&u=" + UsernameInput + "&p=" + Passwordmd5 +"");
                BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                        theUrl.openStream()));
                String inputLine = in.readLine();
                if (inputLine.equals("valid")) {
                    new Overview().setVisible(true);
                    this.setVisible(false);
                    System.out.println( "You have entered the correct password" );
                } else {
                    System.out.println(theUrl);
                in.close();
            } catch (MalformedURLException ex) {
                ex.printStackTrace();
            } catch (IOException ex) {
                ex.printStackTrace();
        }      Can anyone see what might be causing this error?

    Can anyone see what might be causing this error? That line of code declares that it throws exception java.lang.Exception, so you must either catch it ("must be caught" - like you do the more specific Exceptions) or declare your logincheck method to throw it ("or declared to be thrown").

  • Unreported exception

    hi all,
    what is the problem to cause the error?? please teach me. thanks.
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\jsp\HMC\HTML\testDL3_jsp.java:76: unreported exception java.sql.SQLException; must be caught or declared to be thrown
    Connection c = DriverManager.getConnection(
    ^
    An error occurred at line: 9 in the jsp file: /jsp/HMC/HTML/testDL3.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\jsp\HMC\HTML\testDL3_jsp.java:79: unreported exception java.sql.SQLException; must be caught or declared to be thrown
    Statement s = c.createStatement();
    ^
    An error occurred at line: 9 in the jsp file: /jsp/HMC/HTML/testDL3.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\jsp\HMC\HTML\testDL3_jsp.java:140: unreported exception java.sql.SQLException; must be caught or declared to be thrown
    s.executeUpdate(sql);
    ^
    An error occurred at line: 9 in the jsp file: /jsp/HMC/HTML/testDL3.jsp
    Generated servlet error:
    C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\examples\jsp\HMC\HTML\testDL3_jsp.java:154: unreported exception java.sql.SQLException; must be caught or declared to be thrown
         c.close();
    ^

    Either put your code in try / catch(SQLException)/ finally blocks, either declare the method where your code resides to throw a SQLException, using the throws clause.
    Google for any JDBC code and you'll see countless examples on how to do this.

  • Unreported exception; java.sql.SQLException; must be caught or declared to

    Hi everyone,
    For my Java course assignment we need to make a small application that uses a MS Access database. But de code below gives me a "Unreported exception; java.sql.SQLException; must be caught or declared to be thrown at line xx" error.
    public class ConnectieBeheer
      private static Connection con;
      private static Statement stmt;
      private static ResultSet res;
      private static ResultSetMetaData md;
      private ConnectieBeheer(){}
      public static void openDB() {
        Driver driver = new JdbcOdbcDriver();
        Properties info = new Properties();
        String url = "jdbc:odbc:theater";
        con = driver.connect(url, info);       <--- Error here
        if (con != null)
          stmt =  con.createStatement();      <--- Error here
          DatabaseMetaData dma = con.getMetaData();      <--- Error here
      }So I tried this :
    public static void openDB() throws SQLException {Now I do not get an error.
    The OpenDB method is called from a different class like this :
      public static void test1(){
        ConnectieBeheer.openDB();
        System.out.println("DB opened");
      }But now it gives the same "Unreported exception; java.sql.SQLException; must be caught or declared to be thrown at line xx" error but now at the line ConnectieBeheer.openDB();
    Why is this? And what can I do to correct this?
    Thanks!
    Steven.

    you should read the sun tutoriel about exceptions handling ;
    there are two ways to handle an exception : either you redirects it (using "throws" statement, what you did for the openDB method), or you catch it using a try { ... } catch (Exception exc) {}
    if you want to get rid of the error what you can do is :
      public static void test1(){
        try {
            ConnectieBeheer.openDB();
        } catch (java.sql.SQLException sqle) {
            sqle.printStackTrace();
        System.out.println("DB opened");
      }

  • Distributed Environment - Exception during commit of transact

    The Application is deployed in 3 machines (Win2K) in Weblogic 6.1 SP2 with Oracle
    8i as the Database - Presentation EAR file in one machine, Business Logic EAR
    file in second machine and Persistence EAR file in the third machine. The Database
    is also in the third machine. Tx Datasource is configured in all the 3 weblogic
    instances to point to the Database.
    The application has a 'Save' operation in which case the EJB in the Business Logic
    Layer connects to the Datasource of the Persistence Layer. The following error
    is seen in the console of the second machine (Business Logic) while Saving.
    <Error> <EJB> <Exception during commit of transact
    ion Name=[EJB com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB.proc
    ess(reefwork.bp.BusinessProcessEvent)],Xid=1:d4f44d847f28edb9(7225037),Status=Ro
    lled back. [Reason=javax.transaction.SystemException: Aborting prepare because
    s
    ome resources could not be assigned],numRepliesOwedMe=0,numRepliesOwedOthers=0,s
    econds since begin=1,seconds left=10,ServerResourceInfo[weblogic.jdbc.jts.Connec
    tion]=(state=new,assigned=none),SCInfo[mydomain+myserver]=(state=rolledback),pro
    perties=({weblogic.transaction.name=[EJB com.toontown.matchmaker.ejb.service.Bus
    inessProcessGatewayEJB.process(reefwork.bp.BusinessProcessEvent)], weblogic.jdbc
    =t3://130.10.11.30:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDesc
    riptor=(CoordinatorURL=myserver+130.10.7.94:7001+mydomain+, Resources={})],Coord
    inatorURL=myserver+130.10.7.94:7001+mydomain+): javax.transaction.SystemExceptio
    n: Aborting prepare because some resources could not be assigned
    at weblogic.transaction.internal.TransactionImpl.abort(TransactionImpl.java:924)
    at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTransactionImpl.java:1566)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:218)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:190)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:231)
    at com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB_yd4d11_
    EOImpl.process(BusinessProcessGatewayEJB_yd4d11_EOImpl.java:46)
    at com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB_yd4d11_
    EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.transaction.RollbackException: Aborting prepare because some resources
    could not be assigned - with nested exception:
    [javax.transaction.SystemException: Aborting prepare because some resources coul
    d not be assigned]
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(
    TransactionImpl.java:1475)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:263)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:190)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:231)
    at com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB_yd4d11_
    EOImpl.process(BusinessProcessGatewayEJB_yd4d11_EOImpl.java:46)
    at com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB_yd4d11_
    EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    Please note that 130.10.7.94 is the IP of Business Logic Layer and 130.10.11.30
    is the IP of Persistence Layer.
    Thanks!

    Try changing the server name on either on persistence machine or business logic
    machine
    "Devika" <[email protected]> wrote:
    >
    >
    The Application is deployed in 3 machines (Win2K) in Weblogic 6.1 SP2
    with Oracle
    8i as the Database - Presentation EAR file in one machine, Business Logic
    EAR
    file in second machine and Persistence EAR file in the third machine.
    The Database
    is also in the third machine. Tx Datasource is configured in all the
    3 weblogic
    instances to point to the Database.
    The application has a 'Save' operation in which case the EJB in the Business
    Logic
    Layer connects to the Datasource of the Persistence Layer. The following
    error
    is seen in the console of the second machine (Business Logic) while Saving.
    <Error> <EJB> <Exception during commit of transact
    ion Name=[EJB com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB.proc
    ess(reefwork.bp.BusinessProcessEvent)],Xid=1:d4f44d847f28edb9(7225037),Status=Ro
    lled back. [Reason=javax.transaction.SystemException: Aborting prepare
    because
    s
    ome resources could not be assigned],numRepliesOwedMe=0,numRepliesOwedOthers=0,s
    econds since begin=1,seconds left=10,ServerResourceInfo[weblogic.jdbc.jts.Connec
    tion]=(state=new,assigned=none),SCInfo[mydomain+myserver]=(state=rolledback),pro
    perties=({weblogic.transaction.name=[EJB com.toontown.matchmaker.ejb.service.Bus
    inessProcessGatewayEJB.process(reefwork.bp.BusinessProcessEvent)], weblogic.jdbc
    =t3://130.10.11.30:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDesc
    riptor=(CoordinatorURL=myserver+130.10.7.94:7001+mydomain+, Resources={})],Coord
    inatorURL=myserver+130.10.7.94:7001+mydomain+): javax.transaction.SystemExceptio
    n: Aborting prepare because some resources could not be assigned
    at weblogic.transaction.internal.TransactionImpl.abort(TransactionImpl.java:924)
    at weblogic.transaction.internal.ServerTransactionImpl.globalPrepare(ServerTransactionImpl.java:1566)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:218)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:190)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:231)
    at com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB_yd4d11_
    EOImpl.process(BusinessProcessGatewayEJB_yd4d11_EOImpl.java:46)
    at com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB_yd4d11_
    EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    --------------- nested within: ------------------
    weblogic.transaction.RollbackException: Aborting prepare because some
    resources
    could not be assigned - with nested exception:
    [javax.transaction.SystemException: Aborting prepare because some resources
    coul
    d not be assigned]
    at weblogic.transaction.internal.TransactionImpl.throwRollbackException(
    TransactionImpl.java:1475)
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:263)
    at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:190)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:231)
    at com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB_yd4d11_
    EOImpl.process(BusinessProcessGatewayEJB_yd4d11_EOImpl.java:46)
    at com.toontown.matchmaker.ejb.service.BusinessProcessGatewayEJB_yd4d11_
    EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
    at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:93)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:267)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:22)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    Please note that 130.10.7.94 is the IP of Business Logic Layer and 130.10.11.30
    is the IP of Persistence Layer.
    Thanks!

  • Exception in connect using WLST in Embedded Mode

    If I try to run the example for WLST in embedded mode, I get an exception during the connect:
    Connecting to t3://localhost:7001 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'TestDomain'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    Exception in thread "main" Traceback (innermost last):
      File "<string>", line 1, in ?
      File "<iostream>", line 22, in connect
    WLSTException: 'Error occured while performing connect : Error connecting to the server Use dumpStack() to view the full stacktrace'The server in question is running, and the connect command from an interactive interpreter (from the commandline) works fine. I added a call to dumpStack() in a try-catch and got:
    This Exception occurred at Fri Sep 21 15:16:48 CEST 2007.
    java.lang.NullPointerException
         at com.sun.corba.se.impl.io.ValueHandlerImpl.writeReplace(ValueHandlerImpl.java:452)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:761)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:864)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:659)
         at com.sun.corba.se.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:232)
         at weblogic.management._RemoteMBeanServer_Stub.addNotificationListener(Unknown Source)
         at weblogic.management.scripting.WLSTHelper.addChangeListener(WLSTHelper.java:327)
         at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:315)
         at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:201)
         at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:60)
         at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:121)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
         at org.python.core.PyMethod.__call__(PyMethod.java:96)
         at org.python.core.PyObject.__call__(PyObject.java:248)
         at org.python.core.PyObject.invoke(PyObject.java:2016)
         at org.python.pycode._pyx6.connect$1(<iostream>:16)
         at org.python.pycode._pyx6.call_function(<iostream>)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyTableCode.call(PyTableCode.java:404)
         at org.python.core.PyTableCode.call(PyTableCode.java:274)
         at org.python.core.PyFunction.__call__(PyFunction.java:175)
         at org.python.pycode._pyx14.f$0(<string>:1)
         at org.python.pycode._pyx14.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyCode.call(PyCode.java:14)
         at org.python.core.Py.runCode(Py.java:1135)
         at org.python.core.Py.exec(Py.java:1157)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:137)
         at weblogic.management.scripting.utils.WLSTInterpreter.exec(WLSTInterpreter.java:367)
         at com.lmco.jsf.alis.obphm.afrs.weblogic.WLSTTest.connect(WLSTTest.java:40)
         at com.lmco.jsf.alis.obphm.afrs.weblogic.WLSTTest.main(WLSTTest.java:81)What am I doing wrong?

    public static void main(String[] args) throws
    Exception{
    Very bad programming practice!Not for a simple test program where you aren't going to do anything useful. In this case, it's exactly the right thing - as soon as the test hits an error, it falls over and dumps a stack trace, which is what it exists to do.
    In general, tho, you're correct, "throws Exception" loosens your contract to the point of meaninglessness.
    G

  • Startup Error:  scheduler: runtime exception during start up: null

    Dear All,
    We are getting the error in the scheduler service.
    Startup Error:  scheduler: runtime exception during start up: null
    We have installed TREX 7 on our Portal server (SP15).
    We can now create index but while assigning  datasource we are getting an exception.
    (Scheduler service not starting, is it the probable error)????
    com.sapportals.wcm.WcmException: Error: service not available
    at
    com.sapportals.wcm.control.classification.ClassificationControl.getSchedulerStatus(ClassificationControl.java:3404)
    at
    com.sapportals.wcm.control.classification.ClassificationControl.renderScheduler(ClassificationControl.java:3314)
    at
    com.sapportals.wcm.control.classification.ClassificationControl.renderCrawlerParams(ClassificationControl.java:3262)
    at
    com.sapportals.wcm.control.classification.ClassificationControl.renderClasses(ClassificationControl.java:3194)
    at
    com.sapportals.wcm.control.classification.ClassificationControl.renderIndexFolders(ClassificationControl.java:1657)
    at
    com.sapportals.wcm.control.classification.ClassificationControl.render
    (ClassificationControl.java:786)
    at com.sapportals.wdf.layout.HorizontalLayout.renderControls
    (HorizontalLayout.java:42)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.VerticalLayout.renderPanes
    (VerticalLayout.java:74)
    at com.sapportals.wcm.control.layout.VerticalGroupLayout.renderPanes
    (VerticalGroupLayout.java:51)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes
    (HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes
    (HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.WdfCompositeController.internalRender
    (WdfCompositeController.java:697)
    at com.sapportals.wdf.WdfCompositeController.buildComposition
    (WdfCompositeController.java:665)
    at com.sapportals.htmlb.AbstractCompositeComponent.preRender
    (AbstractCompositeComponent.java:33)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:406)
    at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:237)
    at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest
    (PageProcessor.java:129)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent
    (PageProcessorComponent.java:134)
    at
    com.sapportals.wcm.portal.component.base.ControllerComponent.doContent
    (ControllerComponent.java:77)
    at
    com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service
    (AbstractPortalComponent.java:114)
    at
    com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent
    (PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest
    (PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest
    (PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include
    (PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)at
    com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent
    (PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest
    (PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest
    (PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle
    (PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest
    (ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run
    (Dispatcher.java:524)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service
    (Dispatcher.java:407)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet
    (HttpHandlerImpl.java:401)
    at
    com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet
    (RequestAnalizer.java:386)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet
    (RequestAnalizer.java:364)
    at
    com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle
    (RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle
    (Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request
    (Processor.java:175)
    at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run
    (MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run
    (ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute
    (SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run
    (SingleThread.java:172)
    Please provide solution ASAP.
    Points will be added for sure
    Regards,
    Sameer

    Hi Kalaivani,
    Thanks for your reply.
    Actually, we are not able to create DataSouce of the corresponding index, while assigning the DataSource to index getting class com.sapportals.wcm.WcmException(Error: service not available) exception.
    I tried to assign different-2 DataSources (as you suggested) but same problem persists.
    Kindly find the exception's logs below..
    com.sapportals.wcm.WcmException: Error: service not available
    at com.sapportals.wcm.control.classification.ClassificationControl.getSchedulerStatus(ClassificationControl.java:3404)
    at com.sapportals.wcm.control.classification.ClassificationControl.renderScheduler(ClassificationControl.java:3314)
    at com.sapportals.wcm.control.classification.ClassificationControl.renderCrawlerParams(ClassificationControl.java:3262)
    at com.sapportals.wcm.control.classification.ClassificationControl.renderClasses(ClassificationControl.java:3194)
    at com.sapportals.wcm.control.classification.ClassificationControl.renderIndexFolders(ClassificationControl.java:1657)
    at com.sapportals.wcm.control.classification.ClassificationControl.render(ClassificationControl.java:786)
    at com.sapportals.wdf.layout.HorizontalLayout.renderControls(HorizontalLayout.java:42)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:155)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.VerticalLayout.renderPanes(VerticalLayout.java:74)
    at com.sapportals.wcm.control.layout.VerticalGroupLayout.renderPanes(VerticalGroupLayout.java:51)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.layout.HorizontalLayout.renderPanes(HorizontalLayout.java:73)
    at com.sapportals.wdf.stack.Pane.render(Pane.java:158)
    at com.sapportals.wdf.stack.PaneStack.render(PaneStack.java:73)
    at com.sapportals.wdf.WdfCompositeController.internalRender(WdfCompositeController.java:697)
    at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:665)
    at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.htmlb.Container.preRender(Container.java:120)
    at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:406)
    at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:237)
    at com.sapportals.wcm.portal.component.base.KMControllerDynPage.doOutput(KMControllerDynPage.java:134)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:77)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Please provide solution ASAP. Points will be rewarded.
    Thanks & Regards,
    Sameer

  • Unreported Exception java.lang.InstantiationException

    Dear Friends,
    I am developing javabean connectivty for inserting records to mysql database from jsp. when i try to compile java bean program. It gives an error like unreported Exception java.lang.InstantiationException: Must be caught or declared to be thrown*. This is my mode. Please anyone help to solve this error. if you find any error in my code, please suggest me. Thanks in advance.
    package com.webdeveloper.servlets;
    import java.sql.*;
    import java.io.*;
    public class InsertBean {
    private String dbURL = "jdbc:mysql://localhost:3306/test";
    private Connection dbCon;
    private Statement st;
    String dbuser = "root";
    String dbpass = "admin";
    String Name = null;
    String Address = null;
    String Zip = null;
    public InsertBean() {
    super();
    public String getName() {
    return this.Name;
    public String getAddress() {
    return this.Address;
    public String getZip() {
    return this.Zip;
    public void setName(String pname) {
    this.Name = pname;
    public void setAddress(String paddress) {
    this.Address = paddress;
    public void setZip(String pzip) {
    this.Zip = pzip;
    public void doInsert() throws ClassNotFoundException, SQLException {
    Class.forName("com.mysql.jdbc.Driver").newInstance();//it gives error in this line
    dbCon = DriverManager.getConnection(dbURL,dbuser,dbpass);
    Statement s = dbCon.createStatement();
    String sql = "Insert into Person values ('" + this.Name;
    sql = sql + "', '" + this.Address + "', " + this.Zip;
    sql = sql + ")";
    int insertResult = s.executeUpdate(sql);
    dbCon.close();
    }

    Dear BalusC,
    Thanks for your suggestion. I used try catch block also. But it still gives same error. I have modified my following code. Is there any thing wrong in my code? Please give me your suggestion. Thankyou.
    // Java Document
    package com.webdeveloper.servlets;
    import java.sql.*;
    import java.io.*;
    public class InsertBean {
    private String dbURL = "jdbc:mysql://localhost:3306/test";
    private Connection dbCon;
    private Statement st;
    String dbuser = "root";
    String dbpass = "admin";
    String Name = null;
    String Address = null;
    String Zip = null;
    public InsertBean() {
    super();
    public String getName() {
    return this.Name;
    public String getAddress() {
    return this.Address;
    public String getZip() {
    return this.Zip;
    public void setName(String pname) {
    this.Name = pname;
    public void setAddress(String paddress) {
    this.Address = paddress;
    public void setZip(String pzip) {
    this.Zip = pzip;
    public void doInsert() throws ClassNotFoundException, SQLException {
         try{
         Class.forName("com.mysql.jdbc.Driver").newInstance();
    dbCon = DriverManager.getConnection(dbURL,dbuser,dbpass);
    Statement s = dbCon.createStatement();
    String sql = "Insert into Person values ('" + this.Name;
    sql = sql + "', '" + this.Address + "', " + this.Zip;
    sql = sql + ")";
    int insertResult = s.executeUpdate(sql);
         catch(Exception e){
         System.out.println("error occured :" + e);
         dbCon.close();
    }

  • System Error:ADS :com.adobe processingException:XMLFM Exception during render Exception

    Dear All, We have configured ADS in DEV and QAS it is working fine. We have done the same configuration in PRD but it is giving the following error when we execute the program FP_CHECK_DESTINATION_SERVICE: SYSTEM ERROR: ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: XMLFM Exception during render: org.omg.CORBA.COMM_FAILURE(200,101). Exception of class CX_FP_RUNTIME_INTERNAL System Info : SAP ECC EHP6 SAP NW 7.31 Kindly suggest some solution. Regards, Mustafa

    HI
    Note 944221 - Troubleshooting if problems occur in forms processing
    Note 717568 - FPRUNX001, 002 or 004 with output of PDF-based forms
    Note "959462 - ISR/Adobe/Web Dynpro Java: Configuration problems"
    Note 1288500 - HR-RU: ADS: XMLFM Exception-P(200101) message no.FPRUNX001
    Note 1143442 - Shift report: Error "ADS: XMLFM Exception"
    AND YOU CAN CHACK AGAINST FOLLOWING Problem:
    1). Check the JCO RFC from Java to ABAP server.
    2). Check the ADS connection in SM59.
    Check the document more troubleshooting steps
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30ec0508-9438-2c10-f393-a41fb255698d?QuickLink=index&overridelayout=true
    http://forums.sdn.sap.com/thread.jspa?threadID=842415

  • Exception During Transcoding: unrecognized fill type

    I'm running Flex 2.0.1 with HotFix 3. and everytime I output
    any SWF from Flash, whether it be Flash 9/AS3 or Flash 8/AS2, and
    try to embed it into my Flex Application I get an "exception during
    transcoding: unrecognized fill style type: 19" error. I've tried
    embeding the symbol that I want as well as embedding the entire
    swf. I've noticed that when I change the fill type from Gradient to
    Solid the style type goes from 19 to 255.
    Is this a bug with the flex compiler?

    I'm on Mac OSX Snow Leopard and I have the Adobe CS4 Master Collection updated to latest. I was using DVD Studio pro for a short project and I started to recreate the whole thing in Encore CS4 as I had more flexibility with Photoshop based menu system for the DVD.
    I have a simple menu system created in Photoshop with the corresponding (+) naming for the layers. My menu has 4 text buttons, 1 logo layer and a background. I left all the text as text, didn't rasterize the text. ( I tried that after the crashes but with same bad result)
    In Encore CS4 I imported the PSD file as a Menu Asset. I set up a video asset to loop as the background, and an audio asset to play.
    I have 4 timeline assets with short videos.
    I connected each button to the apropriate timeline to play.
    At the end of each timeline I set up to go back to the Menu.
    The Menu is set to Firts Play.
    That't it.
    When I go to Build I hit the Check Project and it tells me that I have 2 Orphan Menus. Now when I try to click on them Adobe Encore CS4 Crashes.
    If I don't click on them and I hit Continue with Building, it starts transcoding but after a few minutes of trasncoding it crashes.
    I found a long thread about the Orphan menu BUG Crash, but I didn't found a solution. I cleared my cache, I recreated the menu with rasterized text, but crashed again. I created a new menu system with buttons taken from the Library, the Orphan menu was not there anymore at Check Project, and the transcoding was building ok, but then after 30 minutes of trasncoding it crashed again.
    Please help as I am frustrated with Encore CS4!!
    Imre

  • Consuming portlet get error ADF_FACES-60096:Server Exception during PPR

    hi all,
    i got a strange error when consuming portlet in webcenter portal application.
    i'm using jdeveloper 11.1.1.5 and webcenter framework extension 11.1.1.4
    i have a Portlet Producer Application and a Standards-based Java Portlet (JSR 286) in it.
    The view page of the portlet is a jspx file (view.jspx)
    There is a raw af:table component in the view.jspx file (with no data binding)
    At this time, run the view.jspx in the portlet producer application.
    The view.jspx page shows up in the browser and looks fine just as expected.
    After deploying the portlet to WLS, i include the portlet to the WebCenter Portal Application's home.jspx as an ADF Rich Portlet (from the WSRP Producer in IDE Connections) and run the Portal project.
    Wierd thing happens, a short time after the home page shows up in the browser, the portlet with an af:table in it shows up, but the portlet refresh itself repeatedly and an error is printed in the WLS log:
    [Application wcApp0202 deployed to Server Instance IntegratedWebLogicServer]
    Target URL -- http://127.0.0.1:7101/wcApp0202-Portal-context-root/index.html
    <JUApplicationDefImpl> <logDefaultDynamicPageMapPattern> The definition at portal.DataBindings.cpx, uses a pagemap pattern match that hides other cpx files.
    <SkinFactoryImpl> <getSkin> Cannot find a skin that matches family portal and version v1.1. We will use the skin portal.desktop.
    ADFPortletExternalContextImpl.encodeResourceURL: This resource is not using Stateless Proxying:/testP01/adf/styles/cache/portal-desktop-ctwpkz-zh_CN-ltr-gecko-prtl.css
    <ConfigUtils> <getADFConfig> null
    *<RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #149*
    java.lang.IllegalStateException: The expected request type is not the same as the current request type.
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:333)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.<init>(FacesContextFactoryImpl.java:86)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:260)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
         at com.bea.portlet.container.PortletRequestDispatcherImpl.forward(PortletRequestDispatcherImpl.java:292)
         at org.apache.myfaces.portlet.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:1094)
         at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:700)
         at javax.portlet.faces.GenericFacesPortlet.serveResource(GenericFacesPortlet.java:291)
         at oracle.portlet.bridge.adf.application.ADFBridgePortlet.serveResource(ADFBridgePortlet.java:187)
         at com.bea.portlet.container.PortletStub.doResource(PortletStub.java:1043)
         at com.bea.portlet.container.FilterChainGenerator.runFilterChain(FilterChainGenerator.java:141)
         at com.bea.portlet.container.PortletStub.renderResource(PortletStub.java:779)
         at com.bea.portlet.container.AppContainer.invokeResourceStub(AppContainer.java:1376)
         at com.bea.portlet.container.AppContainer.invokeResource(AppContainer.java:1328)
         at com.bea.wsrp.producer.adapter.javaportlet.JavaPortletAdapter.getResource(JavaPortletAdapter.java:694)
         at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doGetResource(MarkupServiceHandler.java:766)
         at com.bea.wsrp.producer.handlers.markup.MarkupServiceHandler.doService(MarkupServiceHandler.java:295)
         at com.bea.wsrp.producer.handlers.AbstractServiceHandler.service(AbstractServiceHandler.java:71)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:349)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:250)
         at com.bea.wsrp.producer.container.ProducerEndPoint.processNow(ProducerEndPoint.java:208)
         at oracle.portlet.server.adapter.web.WSRP_v2_Markup_PortTypeSoapToEndpoint.getResource(WSRP_v2_Markup_PortTypeSoapToEndpoint.java:128)
         at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.invoke_getResource(WSRP_v2_Markup_Binding_SOAP_Tie.java:66)
         at oasis.names.tc.wsrp.v2.bind.runtime.WSRP_v2_Markup_Binding_SOAP_Tie.processingHook(WSRP_v2_Markup_Binding_SOAP_Tie.java:1445)
         at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:299)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:442)
         at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:1081)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:333)
         at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:232)
         at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:185)
         at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:484)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.producer.container.endpoint.ProducerEndpointFilter.doFilter(ProducerEndpointFilter.java:34)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    I tried to delete the af:table from view.jspx, redeploy the portlet and rerun the portal, the home.jspx page shows up in the browser and looks fine just as expected.
    But the same practice goes on well in jdeveloper 11.1.1.3 with webcenter framework extension 11.1.1.3
    What is the problem ?
    Regards,
    Pen-Pen
    Edited by: Pen-Pen on 2012-2-5 下午6:27

    Hi Yannick,
    Thanks for you reply.
    I have edited the question with more details.
    For your questions:
    The error happens when the WLS try to render the portlet for the first time. (a short time after the home page shows up in the browser)
    I'm a starter in webcenter & portlet, so i'm not sure if i use any portlet specific objects. I just create a Standards-based Java Portlet (JSR 286) with almost all the steps in default except in step 3 of 8, i change the view.jsp to view.jspx. In the portlet, i use ADF BC tech & ADF Faces. (There are readonly VO's from database 10g and AMs)
    I think i got the error during PPR. (when the WLS try to render the portlet for the first time)
    BTW: in the WebCenter Portal Application's home.jspx, i include the portlet as an ADF Rich Portlet from the WSRP Producer in IDE Connections.

  • Embedded LDAP exception during startup

    Hi,
    I'm getting the following exception during startup on my server:
    "Server failed during initialization.
    Exception:weblogic.security.spi.ProviderInitializationException:
    Entitlement Engine unable to connect to the embedded LDAP server"
    The full stack trace is below..
    What's strange about this, is that it only happens on one of the boxes
    I've tried this one. Every other box (_exact_ copy of the
    configuration) works fine.
    This is Weblogic 7.0 running on Redhat Linux.
    ======== full error log with embedded ldap debugging at level 11
    ===========
    ####<May 1, 2003 4:02:09 PM PDT> <Debug> <EmbeddedLDAP> <s1> <mserver>
    <main> <kernel identity> <> <000000> <binding as root user: cn=admin>
    ####<May 1, 2003 4:02:09 PM PDT> <Debug> <EmbeddedLDAP> <s1> <mserver>
    <main> <kernel identity> <> <000000> <Creating LDAP Connection
    delegate, useSSL is false>
    ####<May 1, 2003 4:02:09 PM PDT> <Debug> <EmbeddedLDAP> <s1> <mserver>
    <main> <kernel identity> <> <000000> <Initializing LDAP Connection
    delegate>
    ####<May 1, 2003 4:02:09 PM PDT> <Debug> <EmbeddedLDAP> <s1> <mserver>
    <main> <kernel identity> <> <000000> <Connecting delegate to :14102>
    ####<May 1, 2003 4:02:09 PM PDT> <Critical> <WebLogicServer> <s1>
    <mserver> <main> <kernel identity> <> <000364> <Server failed during
    initialization. Exception:weblogic.security.spi.ProviderInitializationException:
    Entitlement Engine unable to connect to the embedded LDAP server>
    weblogic.security.spi.ProviderInitializationException: Entitlement
    Engine unable to connect to the embedded LDAP server
    at weblogic.security.providers.authorization.DefaultAuthorizationUtils.getEngine(DefaultAuthorizationUtils.java:160)
    at weblogic.security.providers.authorization.DefaultRoleMapperProviderImpl.initialize(DefaultRoleMapperProviderImpl.java:121)
    at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
    at weblogic.security.service.RoleManager.initialize(RoleManager.java:152)
    at weblogic.security.service.RoleManager.<init>(RoleManager.java:97)
    at weblogic.security.service.SecurityServiceManager.doRole(SecurityServiceManager.java:1511)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1365)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
    at weblogic.Server.main(Server.java:32)
    ####<May 1, 2003 4:02:10 PM PDT> <Emergency> <WebLogicServer> <s1>
    <mserver> <main> <kernel identity> <> <000342> <Unable to initialize
    the server: Fatal initialization exception
    Throwable: weblogic.security.spi.ProviderInitializationException:
    Entitlement Engine unable to connect to the embedded LDAP server
    weblogic.security.spi.ProviderInitializationException: Entitlement
    Engine unable to connect to the embedded LDAP server
    at weblogic.security.providers.authorization.DefaultAuthorizationUtils.getEngine(DefaultAuthorizationUtils.java:160)
    at weblogic.security.providers.authorization.DefaultRoleMapperProviderImpl.initialize(DefaultRoleMapperProviderImpl.java:121)
    at weblogic.security.service.SecurityServiceManager.createSecurityProvider(SecurityServiceManager.java:1820)
    at weblogic.security.service.RoleManager.initialize(RoleManager.java:152)
    at weblogic.security.service.RoleManager.<init>(RoleManager.java:97)
    at weblogic.security.service.SecurityServiceManager.doRole(SecurityServiceManager.java:1511)
    at weblogic.security.service.SecurityServiceManager.initializeRealm(SecurityServiceManager.java:1365)
    at weblogic.security.service.SecurityServiceManager.loadRealm(SecurityServiceManager.java:1315)
    at weblogic.security.service.SecurityServiceManager.initializeRealms(SecurityServiceManager.java:1432)
    at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:1157)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:697)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:589)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:277)
    at weblogic.Server.main(Server.java:32)

    "Ryan D'Silva" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    I'm getting the following exception during startup on my server:
    "Server failed during initialization.
    Exception:weblogic.security.spi.ProviderInitializationException:
    Entitlement Engine unable to connect to the embedded LDAP server"
    Make sure the config.xml has the following
    <EmbeddedLDAP Credential="..."/>
    It should be generated if it is not there. Is the config.xml read-only or
    copied from a master config.xml without an EmbeddedLDAP credential?

  • My iPhone 4 with iOS 6 is making me start to hate Apple. Any App and at any time I open and I can not view it or move for more than 2 minutes, they close themselves. During connections, it also gives this problem and the signal disappears after a few seco

    My iPhone 4 with iOS 6 is making me start to hate Apple. Any App and at any time I open and I can not view it or move for more than 2 minutes, they close themselves. During connections, it also gives this problem and the signal disappears after a few seconds back but often the person on the other end has hung up ... I can not stand it anymore, someone suggests something?
    Besides these problems, there is the battery, which was bad got worse, she is not lasting more than 10 hours, even without using the phone.
    Sometimes it even seems that the problem was solved, but my joy did not last long after I celebrate all the problems return, is incredible ...
    thanks.
    Sorry my bad Inglês.

    Try a reset hold home/sleep buttons until Apple logo appears
    If that does not improve try a restore
    http://support.apple.com/kb/HT4137
    For your information
    We are NOT Apple here we are all users helping other users
    so emotion is ignored

Maybe you are looking for