PointBase connection

Hi,
I am trying to connect to pointbase database on my machine using JSPs.
My pointbase system is the one that comes with J2EE bundle. And I am using Sun Java Application Server for hosting JSPs.
This is the code I use to connect:
InitialContext ic = new InitialContext();
DataSource ds = (DataSource) ic.lookup(dbName);
Connection con = ds.getConnection();
And I get the following exception:
============
java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Database SAMPLE does not exist or cannot be found in database home /pointbase/databases specified either specify database.home= in pointbase.ini or use the ;database.home= to indicate the database folder. pointbase.ini should be available in the current folder or you can specify the location for pointbase.ini with java -D:property=value where "property" is pointbase.ini and "value" is pointbase.ini.
================
I do not know the exact settings to make and where to make them.
Please let me know how to solve this problem if you know it.
Thanks
Hamid

You should repost this in the SJS Application Server Forum, since this is the WebServer Fourm :)
However, by looking at your problem I suggest you look into the sample documentation to see the parameters that you need to provide to the connection pool.
Also I suggest than when you respost the problem in the AppServer forum you include your connection-pool/jdbc-resource declarations from server.xml

Similar Messages

  • SQLException in Weblogic Server 8.1(Workshop)

    Hi,
    I am using Weblogic Workshop 8.1. I was trying to develop worklist application in Integration domain using Task and Task worker controls. Since worklist infos are stored in pointbase database, migrated pointbase to oracle by reconfiguring the Integration domain in Configuration wizard. I changed the 3 default pointbase connection pools(cgPool,bpmArchPool, cgJMSPool-nonXA) to oracle. I was able to work on worklist application.. but i am getting the following error very frequently.. If i restart the server it works fine...
    An unexpected exception occurred while attempting to locate the run-time information for this Web Service. Error: java.sql.SQLException:Cannot obtain connection: driverURL = jdbc:weblogic:pool:cgPool, props = {enableTwoPhaseCommit=true, connectionPoolID=cgPool, jdbcTxDataSource=true, dataSourceName=cgDataSource}. Nested Exception: java.lang.RuntimeException: Failed to setAutoCommit to true for pool connection. at weblogic.jdbc.wrapper.PoolConnection.init(Lweblogic/jdbc/common/internal/ConnectionEnvV(PoolConnection.java:52) at weblogic.jdbc.pool.Driver.allocateConnection(Lweblogic/jdbc/common/internal/ConnectionEnvLjava/sql/Connection;(Driver.java:254) at weblogic.jdbc.pool.Driver.connect(Ljava/lang/String;Ljava/util/PropertiesLjava/sql/Connection;(Driver.java:164) at weblogic.jdbc.jts.Driver.getNonTxConnection(Ljava/lang/String;Ljava/util/PropertiesLjava/sql/Connection;(Driver.java:540) at weblogic.jdbc.jts.Driver.connect(Ljava/lang/String;Ljava/util/PropertiesLjava/sql/Connection;(Driver.java:139) at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava/sql/Connection;(RmiDataSource.java:329) at com.bea.wlw.runtime.core.util.Util.getConnection(Ljava/lang/StringLjava/sql/Connection;(Util.java:666) at com.bea.wlw.runtime.core.bean.BMPContainerBean.getConnection()Ljava/sql/Connection;(BMPContainerBean.java:2200) at com.bea.wlw.runtime.core.bean.BMPContainerBean.initTableAccess(Lcom/bea/wlw/runtime/core/dispatcher/DispFileLcom/bea/wlw/runtime/core/bean/BMPContainerBean$TableAccess;(BMPContainerBean.java:1643) at com.bea.wlw.runtime.core.dispatcher.DispComponentJar.confirmDeployment(Lcom/bea/wlw/runtime/core/dispatcher/DispFileV(DispComponentJar.java:99) at com.bea.wlw.runtime.core.dispatcher.DispResources.confirmDeployment(Lcom/bea/wlw/runtime/core/dispatcher/DispFileV(DispResources.java:752) at com.bea.wlw.runtime.core.dispatcher.DispCache.ensureDispUnit(Lcom/bea/wlw/runtime/core/dispatcher/LoadContextLcom/bea/wlw/runtime/core/dispatcher/DispUnit;(DispCache.java:767) at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.getDispUnit(Ljavax/servlet/ServletContext;Lcom/bea/wlw/runtime/core/dispatcher/HttpRequest;Ljavax/servlet/http/HttpServletResponse;Z)Lcom/bea/wlw/runtime/core/dispatcher/DispUnit;(HttpServerHelper.java:501) at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest

    Ramachandran Jaganmohan wrote:
    Hi,
    I am still getting the exception as below....
    <Jun 26, 2006 2:08:46 PM GMT+05:30> <Error> <WLW> <000000> <SQLException in cleanupDocumentReference
    s(): VendorCode = 17002
    java.sql.SQLException: Io exception: Connection reset by peer.Hi. I wish I could help you more, but you really need a DBA to see what is
    happening at the DBMS. This exception just means the DBMS hung up on the
    driver.
    Joe
    at oracle.jdbc.driver.DatabaseError.throwSqlException(Ljava/lang/String;Ljava/lang/String;I)
    V(DatabaseError.java:125)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(ILjava/lang/Object;)V(DatabaseError.ja
    va:162)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(Ljava/io/IOException;)V(DatabaseError.
    java:274)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_for_rows(Z)V(T4CPreparedStatement.java:64
    6)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()V(OracleStatement.java:1081)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal()I(OraclePreparedStatement.jav
    a:2905)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate()I(OraclePreparedStatement.java:
    2977)
    at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate()I(PreparedStatement.java:147)
    at com.bea.wli.store.impl.SQLStore$StandardStoreAccess.deleteDeadReferences(Ljava/sql/Connec
    tion;)I(SQLStore.java:1861)
    at com.bea.wli.store.impl.SQLStore.cleanupDocumentReferences(Ljava/sql/Connection;ZZ)V(SQLSt
    ore.java:3417)
    at com.bea.wli.store.impl.WLIAdminMDB.sqlStoreCleanupDocumentReferences()V(WLIAdminMDB.java:
    607)
    at com.bea.wli.store.impl.WLIAdminMDB.onMessage(Ljavax/jms/Message;)V(WLIAdminMDB.java:457)
    at weblogic.ejb20.internal.MDListener.execute(Lweblogic/kernel/ExecuteThread;)V(MDListener.j
    ava:400)
    at weblogic.ejb20.internal.MDListener.transactionalOnMessage(Ljavax/jms/Message;)V(MDListene
    r.java:333)
    at weblogic.ejb20.internal.MDListener.onMessage(Ljavax/jms/Message;)V(MDListener.java:298)
    at weblogic.jms.client.JMSSession.onMessage(Ljavax/jms/MessageListener;Lweblogic/jms/common/
    MessageImpl;)V(JMSSession.java:2686)
    at weblogic.jms.client.JMSSession.execute(Lweblogic/kernel/ExecuteThread;)V(JMSSession.java:
    2598)
    at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.ja
    va:224)
    at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
    at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
    <Jun 26, 2006 2:08:46 PM GMT+05:30> <Error> <WLW> <000000> <Unable to clean up Document references i
    n the SQL Document Store>
    qNBWorkerControl.setTaskCompletionDueBusinessDateSystemCalendar
    <Jun 26, 2006 2:08:48 PM GMT+05:30> <Error> <JTA> <BEA-110412> <Xid=BEA1-01BBF2A62AC026C12C0A(401421
    80),Status=Committed,HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
    since begin=23,seconds left=119,activeThread=Thread[ExecuteThread: '8' for queue: 'weblogic.kernel.
    Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],XAServerResourceInfo[JMS_cgJMSStore]=(
    ServerResourceInfo[JMS_cgJMSStore]=(state=committed,assigned=cgServer),xar=JMS_cgJMSStore,re-Registe
    red = false),XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(ServerResourceInfo[weblo
    gic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=cgServer),xar=weblogic.jdbc.wrapper.JT
    SXAResourceImpl@2c0500a,re-Registered = false),SCInfo[integration+cgServer]=(state=committed),proper
    ties=({ISOLATION LEVEL=2, weblogic.jdbc=t3://<Machine ip>:7001}),OwnerTransactionManager=ServerTM[Ser
    verCoordinatorDescriptor=(CoordinatorURL=cgServer+<Machine ip>:7001+integration+t3+, XAResources={JMS
    FileStore, weblogic.jdbc.wrapper.JTSXAResourceImpl, JMScgJMSStore},NonXAResources={})],Coordinator
    URL=cgServer+<Machine ip>:7001+integration+t3+) completed heuristically: (weblogic.jdbc.wrapper.JTSXA
    ResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: Closed Connection)) >
    <Jun 26, 2006 2:08:48 PM GMT+05:30> <Error> <EJB> <BEA-010026> <Exception occurred during commit of
    transaction Xid=BEA1-01BBF2A62AC026C12C0A(40142180),Status=Committed,HeuristicErrorCode=XA_HEURHAZ,n
    umRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=23,seconds left=118,XAServerResourceInf
    o[JMS_cgJMSStore]=(ServerResourceInfo[JMS_cgJMSStore]=(state=committed,assigned=cgServer),xar=JMS_cg
    JMSStore,re-Registered = false),XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(Serve
    rResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=committed,assigned=cgServer),xar=weblo
    gic.jdbc.wrapper.JTSXAResourceImpl@2c0500a,re-Registered = false),SCInfo[integration+cgServer]=(stat
    e=committed),properties=({ISOLATION LEVEL=2, weblogic.jdbc=t3://<Machine ip>:7001}),OwnerTransactionM
    anager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=cgServer+<Machine ip>:7001+integration+t3
    +, XAResources={JMS_FileStore, weblogic.jdbc.wrapper.JTSXAResourceImpl, JMS_cgJMSStore},NonXAResourc
    es={})],CoordinatorURL=cgServer+<Machine ip>:7001+integration+t3+): javax.transaction.HeuristicMixedE
    xception: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAExcepti
    on: Closed Connection))
    at weblogic.transaction.internal.ServerTransactionImpl.internalCommit()V(ServerTransactionIm
    pl.java:278)
    at weblogic.transaction.internal.ServerTransactionImpl.commit()V(ServerTransactionImpl.java:
    228)
    at weblogic.ejb20.internal.MDListener.execute(Lweblogic/kernel/ExecuteThread;)V(MDListener.j
    ava:430)
    at weblogic.ejb20.internal.MDListener.transactionalOnMessage(Ljavax/jms/Message;)V(MDListene
    r.java:333)
    at weblogic.ejb20.internal.MDListener.onMessage(Ljavax/jms/Message;)V(MDListener.java:298)
    at weblogic.jms.client.JMSSession.onMessage(Ljavax/jms/MessageListener;Lweblogic/jms/common/
    MessageImpl;)V(JMSSession.java:2686)
    at weblogic.jms.client.JMSSession.execute(Lweblogic/kernel/ExecuteThread;)V(JMSSession.java:
    2598)
    at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.ja
    va:224)
    at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)
    at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)
    .>
    Login 1===>>>BankManager1
    <Jun 26, 2006 2:09:25 PM GMT+05:30> <Warning> <Common> <BEA-000631> <Unknown resource "weblogic.jdbc
    .common.internal.ConnectionEnv@27f7745" being released to pool "cgPool". Printing out current pool c
    ontents.>
    <Jun 26, 2006 2:09:25 PM GMT+05:30> <Warning> <WLW> <000000> <Id=top-level; Method=DBControl.QNBDBCo
    ntrol.getDeptName(); Failure=java.sql.SQLException: Attempted operation on Connection that is alread
    y closed. [ServiceException]>
    <Jun 26, 2006 2:09:25 PM GMT+05:30> <Error> <JTA> <BEA-110412> <Name=[EJB com.bea.wlw.runtime.core.b
    ean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)],Xid=BEA1-01C5F2A62AC026C12C
    0A(46507041),Status=Rolled back. [Reason=weblogic.transaction.internal.AppSetRollbackOnlyException],
    HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,second
    s left=60,activeThread=Thread[ExecuteThread: '6' for queue: 'weblogic.kernel.Default',5,Thread Group
    for Queue: 'weblogic.kernel.Default'],XAServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]
    =(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback,assigned=cgServer),x
    ar=weblogic.jdbc.wrapper.JTSXAResourceImpl@2c5b4e9,re-Registered = false),SCInfo[integration+cgServe
    r]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.bea.wlw.runtime.core.bean.Sync
    DispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)], weblogic.jdbc=t3://<Machine ip>:700
    1}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=cgServer+172.16.5.8
    9:7001+integration+t3+, XAResources={JMS_FileStore, weblogic.jdbc.wrapper.JTSXAResourceImpl, JMS_cgJ
    MSStore},NonXAResources={})],CoordinatorURL=cgServer+<Machine ip>:7001+integration+t3+) completed heu
    ristically: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAExcep
    tion: No connection associated with xid = BEA1-01C5F2A62AC026C12C0A-7765626C6F6769632E6A6462632E7772
    61707065722E4A545358415265736F75726365496D706C)) >
    <Jun 26, 2006 2:09:25 PM GMT+05:30> <Error> <EJB> <BEA-010025> <Exception occurred during rollback o
    f transaction Name=[EJB com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.
    core.request.Request)],Xid=BEA1-01C5F2A62AC026C12C0A(46507041),Status=Rolled back. [Reason=weblogic.
    transaction.internal.AppSetRollbackOnlyException],HeuristicErrorCode=XA_HEURHAZ,numRepliesOwedMe=0,n
    umRepliesOwedOthers=0,seconds since begin=0,seconds left=60,XAServerResourceInfo[weblogic.jdbc.wrapp
    er.JTSXAResourceImpl]=(ServerResourceInfo[weblogic.jdbc.wrapper.JTSXAResourceImpl]=(state=rolledback
    ,assigned=cgServer),xar=weblogic.jdbc.wrapper.JTSXAResourceImpl@2c5b4e9,re-Registered = false),SCInf
    o[integration+cgServer]=(state=rolledback),properties=({weblogic.transaction.name=[EJB com.bea.wlw.r
    untime.core.bean.SyncDispatcherBean.invoke(com.bea.wlw.runtime.core.request.Request)], weblogic.jdbc
    =t3://<Machine ip>:7001}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorUR
    L=cgServer+<Machine ip>:7001+integration+t3+, XAResources={JMS_FileStore, weblogic.jdbc.wrapper.JTSXA
    ResourceImpl, JMS_cgJMSStore},NonXAResources={})],CoordinatorURL=cgServer+<Machine ip>:7001+integrati
    on+t3+): javax.transaction.SystemException: Heuristic hazard: (weblogic.jdbc.wrapper.JTSXAResourceIm
    pl, HeuristicHazard, (javax.transaction.xa.XAException: No connection associated with xid = BEA1-01C
    5F2A62AC026C12C0A-7765626C6F6769632E6A6462632E777261707065722E4A545358415265736F75726365496D706C))
    at weblogic.transaction.internal.ServerTransactionImpl.internalRollback()V(ServerTransaction
    Impl.java:384)
    at weblogic.transaction.internal.ServerTransactionImpl.rollback()V(ServerTransactionImpl.jav
    a:350)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(Lweblogic/ejb20/internal/InvocationWrapp
    er;Ljava/lang/Throwable;)V(BaseEJBObject.java:300)
    at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(Lweblogic/ejb20/internal/Invocation
    Wrapper;Ljava/lang/Throwable;)V(StatelessEJBObject.java:168)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(Lcom/bea/wlw/runtime/co
    re/request/Request;)Lcom/bea/wlw/runtime/core/request/Response;(SyncDispatcher_k1mrl8_EOImpl.java:56
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Lcom/bea/wlw/runtime/core/d
    ispatcher/DispFile;Lcom/bea/wlw/runtime/core/request/Request;)Lcom/bea/wlw/runtime/core/request/Resp
    onse;(Dispatcher.java:161)
    at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(Lcom/bea/wlw/runtime/core/re
    quest/Request;)Ljava/lang/Object;(ServiceHandleImpl.java:436)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl._invoke(Lcom/bea/wlw/runtime/core/reques
    t/ExecRequest;)Ljava/lang/Object;(WlwProxyImpl.java:326)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl.invoke(Ljava/lang/Object;Ljava/lang/refl
    ect/Method;[Ljava/lang/Object;)Ljava/lang/Object;(WlwProxyImpl.java:315)
    at $Proxy39.getDeptName(Ljava/lang/String;)Ljava/lang/String;(Unknown Source)
    at LoginWorklist.LoginWorklistController.loginAction(LLoginWorklist/LoginWorklistController$
    LoginActionForm;)Lcom/bea/wlw/netui/pageflow/Forward;(LoginWorklistController.jpf:192)
    at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava/lang/Object;ILjava/lang/Object;[Ljava/l
    ang/Object;)Ljava/lang/Object;(Unknown Source)
    at jrockit.reflect.NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/la
    ng/Object;(Unknown Source)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)L
    java/lang/Object;(Unknown Source)
    at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;I)Ljava/lang/Object;
    (Unknown Source)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(Ljava/lang/reflect/Method;Lo
    rg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Lorg/apache/struts/action/
    ActionMapping;)Lorg/apache/struts/action/ActionForward;(FlowController.java:1512)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Ljava/lang/String;Lorg/a
    pache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServle
    tResponse;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;(FlowCont
    roller.java:1447)
    at com.bea.wlw.netui.pageflow.FlowController.internalExecute(Lorg/apache/struts/action/Actio
    nMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/
    http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;(FlowController.java:778)
    at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(Lorg/apache/struts/action/A
    ctionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/serv
    let/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;(PageFlowController.java:211)
    at com.bea.wlw.netui.pageflow.FlowController.execute(Lorg/apache/struts/action/ActionMapping
    ;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Htt
    pServletResponse;)Lorg/apache/struts/action/ActionForward;(FlowController.java:608)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servlet/http/HttpSe
    rvletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg/apache/st
    ruts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForw
    ard;(RequestProcessor.java:484)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerform(Ljavax/servlet/h
    ttp/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg
    /apache/struts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/
    ActionForward;(PageFlowRequestProcessor.java:1504)
    at org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpServletRequest;
    Ljavax/servlet/http/HttpServletResponse;)V(RequestProcessor.java:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(Ljavax/servlet/http/HttpServl
    etRequest;Ljavax/servlet/http/HttpServletResponse;)V(PageFlowRequestProcessor.java:674)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(Ljavax/servlet/http/HttpServ
    letRequest;Ljavax/servlet/http/HttpServletResponse;)V(AutoRegisterActionServlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(Ljavax/servlet/http/HttpServletR
    equest;Ljavax/servlet/http/HttpServletResponse;)V(PageFlowActionServlet.java:152)
    at org.apache.struts.action.ActionServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljav
    ax/servlet/http/HttpServletResponse;)V(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/serv
    let/http/HttpServletResponse;)V(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/Servl
    etResponse;)V(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;
    (ServletStubImpl.java:1072)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Lja
    vax/servlet/ServletResponse;Lweblogic/servlet/internal/FilterChainImpl;)V(ServletStubImpl.java:465)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax/servlet/ServletRequest;Lja
    vax/servlet/ServletResponse;)V(ServletStubImpl.java:348)
    java.lang.reflect.UndeclaredThrowableException
    at $Proxy39.getDeptName(Ljava/lang/String;)Ljava/lang/String;(Unknown Source)
    at LoginWorklist.LoginWorklistController.loginAction(LLoginWorklist/LoginWorklistController$
    LoginActionForm;)Lcom/bea/wlw/netui/pageflow/Forward;(LoginWorklistController.jpf:192)
    at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava/lang/Object;ILjava/lang/Object;[Ljava/l
    ang/Object;)Ljava/lang/Object;(Unknown Source)
    at jrockit.reflect.NativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/la
    ng/Object;(Unknown Source)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava/lang/Object;[Ljava/lang/Object;)L
    java/lang/Object;(Unknown Source)
    at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;I)Ljava/lang/Object;
    (Unknown Source)
    at com.bea.wlw.netui.pageflow.FlowController.invokeActionMethod(Ljava/lang/reflect/Method;Lo
    rg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Lorg/apache/struts/action/
    ActionMapping;)Lorg/apache/struts/action/ActionForward;(FlowController.java:1512)
    at com.bea.wlw.netui.pageflow.FlowController.getActionMethodForward(Ljava/lang/String;Lorg/a
    pache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServle
    tResponse;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForward;(FlowCont
    roller.java:1447)
    at com.bea.wlw.netui.pageflow.FlowController.internalExecute(Lorg/apache/struts/action/Actio
    nMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/
    http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;(FlowController.java:778)
    at com.bea.wlw.netui.pageflow.PageFlowController.internalExecute(Lorg/apache/struts/action/A
    ctionMapping;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/serv
    let/http/HttpServletResponse;)Lorg/apache/struts/action/ActionForward;(PageFlowController.java:211)
    at com.bea.wlw.netui.pageflow.FlowController.execute(Lorg/apache/struts/action/ActionMapping
    ;Lorg/apache/struts/action/ActionForm;Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Htt
    pServletResponse;)Lorg/apache/struts/action/ActionForward;(FlowController.java:608)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Ljavax/servlet/http/HttpSe
    rvletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg/apache/st
    ruts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/ActionForw
    ard;(RequestProcessor.java:484)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.processActionPerform(Ljavax/servlet/h
    ttp/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;Lorg/apache/struts/action/Action;Lorg
    /apache/struts/action/ActionForm;Lorg/apache/struts/action/ActionMapping;)Lorg/apache/struts/action/
    ActionForward;(PageFlowRequestProcessor.java:1504)
    at org.apache.struts.action.RequestProcessor.process(Ljavax/servlet/http/HttpServletRequest;
    Ljavax/servlet/http/HttpServletResponse;)V(RequestProcessor.java:274)
    at com.bea.wlw.netui.pageflow.PageFlowRequestProcessor.process(Ljavax/servlet/http/HttpServl
    etRequest;Ljavax/servlet/http/HttpServletResponse;)V(PageFlowRequestProcessor.java:674)
    at com.bea.wlw.netui.pageflow.AutoRegisterActionServlet.process(Ljavax/servlet/http/HttpServ
    letRequest;Ljavax/servlet/http/HttpServletResponse;)V(AutoRegisterActionServlet.java:527)
    at com.bea.wlw.netui.pageflow.PageFlowActionServlet.process(Ljavax/servlet/http/HttpServletR
    equest;Ljavax/servlet/http/HttpServletResponse;)V(PageFlowActionServlet.java:152)
    at org.apache.struts.action.ActionServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljav
    ax/servlet/http/HttpServletResponse;)V(ActionServlet.java:525)
    at javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/serv
    let/http/HttpServletResponse;)V(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/Servl
    etResponse;)V(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava/lang/Object;
    (ServletStubImpl.java:1072)

  • Oracle data source and Sun App Server 8

    Hi -- This could be more of a JNDI question than a JDBC question... Please let me know if I have posted to the wrong place.
    I downloaded Sun Application Server version 8 and installed it on a windows 2000 pc. The install went fine, as did the build and deploy of the jdbc-simple .ear file. I can run jdbc-simple with no problems.
    Now, through the App Server Admin Interface, I have added a new connection pool utilizing Oracle's OCI driver and I can successfully ping the database from App Server. I created a JDBC Resource that uses the Oracle pool and gave it the JNDI Name "jdbc/oracle-dev ". At this point, I am stuck. I want to use "jdbc-simple" to connect to my new JDBC Resource instead of the pointbase resource.
    Could someone please help me make the necessary modifications to jdbc-simple so that is uses the new "jdbc/oracle-dev " JDBC Resource I created rather than the pointbase connection that was supplied by default during install?
    Thanks for any help,
    Jason Earnhardt

    That helpes quite a bit. I still can't get the app to retrieve data, but I am getting a more useful message in the log:
    [Error in allocating a connection. Cause: Connection could not be allocated because: ORA-01017: invalid username/password; logon denied]
    As you suggested, I removed the <default-resource-principal> stuff from sun-web.xml and modified it to match your example. Additionally, I changed the <res-ref-name> in web.xml from "jdbc/jdbc-simple" to "jdbc/oracle-dev".
    The Connection Pool "Ping" from the Admin Console is successful with the user and password I have set in the parameters. (it fails if I change them, so I am pretty sure that is set up correctly) Is there another place I should check for user/pass information? Do I need to do anything to the samples/database.properties file?
    By the way, this is the 4th quarter 2004 release of app server. Would it be beneficial to move to the Q1 2005 beta?
    Many thanks for your help so far...

  • Problem Connecting to PointBase

    Hi,
    I am trying to connect to pointbase database on my machine using JSPs.
    My pointbase system is the one that comes with J2EE bundle.
    And I am using Sun Java Application Server for hosting JSPs.
    This is the code I use to connect:
    InitialContext ic = new InitialContext();
    DataSource ds = (DataSource) ic.lookup(dbName);
    Connection con = ds.getConnection();And I get the following exception:
    ============
    java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be
    allocated because: Database SAMPLE does not exist or cannot be found in database home
    /pointbase/databases specified either specify database.home=<folder> in pointbase.ini or use the
    <URL>;database.home=<folder> to indicate the database folder. pointbase.ini should be available
    in the current folder or you can specify the location for pointbase.ini with java -D:property=value
    where "property" is pointbase.ini and "value" is <path>pointbase.ini.================
    I do not know the exact settings to make and where to make them.
    I am guessing I somehow need to specify these properties in some script file.
    Please let me know how to solve this problem if you know it.
    Thanks
    Hamid

    well this is certainly a configuration issue. can you connect to and access the database from a client tool? i'd try that just to make sure the database is alive and well. then i'd check the dbName or URL to make sure you are pointing to the right place. and forgive me for asking the simple questions, but did you create the database? did you start the database?
    also, i see a lot of people are accessing databases in JSP's these days. maybe i'm old school or something, but everywhere i've worked you'd be shot for doing it. is it just me? or is this a just-for-fun type of project

  • Connecting to Pointbase database in netbeans

    hello all,
    has anyone used Pointbase database in Netbean? I am having connecting to Pointbase due to incorrect password. any idea how i can change password?
    thanks.

    Use the default admin login and modify the password directly in the systables.

  • Connecting to a DB in Pointbase: need help

    Folks:
    I am trying to create a database using the bundled Pointbase tool with WLS 7.0
    and I am not having much luck.
    I am trying to use the default driver, com.pointbase.jdbc.jdbcUniversalDriver,
    and the default, jdbc:pointbase:server//localhost/demo without much success (the
    error code is SQL State 08004 SQL-Server rejected establishment of SQL-Connection).
    Is there something else I need to do to connect to the DB?
    Thanks,
    - Alex -
    [email protected]

    Hello Alex,
    Can you try using username cajun and password abc.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Alex Nghiem" <[email protected]> wrote in message
    news:3db9edc4$[email protected]..
    >
    Raj:
    I am simply running PointBase using the PointBase console tool. The userID is
    prefilled with PUPUBLIC but I have no idea what the password (it's alreadyprefilled
    as well). Login with this default information is what causes the error.What ID
    and password should I use?
    Thanks,
    - Alex -
    [email protected]
    "Raj Alagumalai" <[email protected]> wrote:
    Hello Alex,
    Can you provide more information on what you are trying to do and which
    domain you are working with ?
    Can you also check the username password that you are using to access
    the
    database.
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Alex Nghiem" <[email protected]> wrote in message
    news:3db5af7b$[email protected]..
    Folks:
    I am trying to create a database using the bundled Pointbase tool withWLS
    7.0
    and I am not having much luck.
    I am trying to use the default driver,com.pointbase.jdbc.jdbcUniversalDriver,
    and the default, jdbc:pointbase:server//localhost/demo without muchsuccess (the
    error code is SQL State 08004 SQL-Server rejected establishment ofSQL-Connection).
    Is there something else I need to do to connect to the DB?
    Thanks,
    - Alex -
    [email protected]

  • Pointbase Server, Connection Pool Issue

    Hi All,
              I have set up a cluster containing two nodes - one local and other
              remote machine.
              I have extended my domain to include the Integration and Workshop
              extensions, as my application needs them. I have also configured the
              Node Manager to start the remote server and also setup the workshop
              database on my machine.
              I have set the classpath in the Node Manager to contain the jars -
              E:\bea_sp5\weblogic81\server\lib\weblogic.jar;E:\bea_sp5\weblogic81\common\eval\pointbase\lib\pbserver44.jar;
              E:\bea_sp5\weblogic81\common\eval\pointbase\lib\pbtools44.jar;
              E:\bea_sp5\weblogic81\server\lib\wli.jar;E:\bea_sp5\weblogic81\server\lib\knex.jar;
              <Jun 15, 2006 2:52:59 PM GMT+05:30> <Info>
              <[email protected]:5557> <Starting Server
              VSDClusterDomain2::MngdServer2 ...>
              <Jun 15, 2006 2:53:00 PM GMT+05:30> <Info>
              <[email protected]:5557> <Server VSDClusterDomain2::MngdServer2
              started, process id = 2,364>
              <Jun 15, 2006 2:53:02 PM GMT+05:30> <Info> <WebLogicServer>
              <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM
              Version 1.4.2_08-b03 from Sun Microsystems Inc.>
              <Jun 15, 2006 2:53:02 PM GMT+05:30> <Info> <Management> <BEA-141140>
              <The managed server is going to contact the admin server at
              http://15.76.223.63:7001 to check if there exists a running admin
              server at this URL.>
              <Jun 15, 2006 2:53:04 PM GMT+05:30> <Info> <Configuration Management>
              <BEA-150017> <This server is being started as a dependent managed
              server.>
              <Jun 15, 2006 2:53:04 PM GMT+05:30> <Info> <Management> <BEA-141107>
              <Version: WebLogic Server 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641358
              WebLogic XMLX Module 8.1 SP5 Mon Sep 19 23:06:54 PDT 2005 641358
              WebLogic Integration 8.1 SP5 Wed Sep 21 21:56:54 PDT 2005 643163>
              <Jun 15, 2006 2:53:04 PM GMT+05:30> <Info> <Configuration Management>
              <BEA-150015> <Connecting to the administration server
              http://15.76.223.63:7001 to retrieve the initial configuration.>
              <Jun 15, 2006 2:53:13 PM GMT+05:30> <Notice> <Log Management>
              <BEA-170019> <The server log file
              E:\bea_sp5\weblogic81\common\nodemanager\MngdServer2\MngdServer2.log is
              opened. All server side log events will be written to this file.>
              <Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090082>
              <Security initializing using security realm myrealm.>
              <Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090170>
              <Loading the private key stored under the alias DemoIdentity from the
              jks keystore file E:\bea_sp5\weblogic81\server\lib\DemoIdentity.jks.>
              <Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090171>
              <Loading the identity certificate stored under the alias DemoIdentity
              from the jks keystore file
              E:\bea_sp5\weblogic81\server\lib\DemoIdentity.jks.>
              <Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090169>
              <Loading trusted certificates from the jks keystore file
              E:\bea_sp5\weblogic81\server\lib\DemoTrust.jks.>
              <Jun 15, 2006 2:53:16 PM GMT+05:30> <Notice> <Security> <BEA-090169>
              <Loading trusted certificates from the jks keystore file
              E:\bea_sp5\jdk142_08\jre\lib\security\cacerts.>
              <Jun 15, 2006 2:53:17 PM GMT+05:30> <Notice> <WebLogicServer>
              <BEA-000328> <Starting WebLogic Managed Server "MngdServer2" for domain
              "VSDClusterDomain2">
              <Jun 15, 2006 2:53:21 PM GMT+05:30> <Warning> <HTTP> <BEA-101296>
              <Unable to load the default compiler class "com.sun.tools.javac.Main".
              Using the default javac compiler to compile JSPs.>
              <Jun 15, 2006 2:53:22 PM GMT+05:30> <Notice> <Cluster> <BEA-000138>
              <Listening for announcements from cluster Cluster1 on 237.0.0.1:7001.>
              <Jun 15, 2006 2:53:22 PM GMT+05:30> <Notice> <Cluster> <BEA-000133>
              <Waiting to synchronize with other running members of Cluster1.>
              <Jun 15, 2006 2:53:53 PM GMT+05:30> <Error> <JDBC> <BEA-001150>
              <Connection Pool "cgJMSPool-nonXA" deployment failed with the following
              error: No registered driver accepts URL:
              jdbc:pointbase:server://15.76.223.63:9093/workshop.>
              <Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001150>
              <Connection Pool "bpmArchPool" deployment failed with the following
              error: No registered driver accepts URL:
              jdbc:pointbase:server://15.76.223.63:9093/workshop.>
              <Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001150>
              <Connection Pool "cgPool" deployment failed with the following error:
              No registered driver accepts URL:
              jdbc:pointbase:server://15.76.223.63:9093/workshop.>
              <Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001151> <Data
              Source "cgDataSource-nonXA" deployment failed with the following error:
              DataSource(cgDataSource-nonXA;weblogic.jdbc.jts.ebusinessPool) can't be
              created with non-existent Pool (connection or multi)
              (cgJMSPool-nonXA).>
              <Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001151> <Data
              Source "cgDataSource" deployment failed with the following error:
              DataSource(cgDataSource;cgSampleDataSource) can't be created with
              non-existent Pool (connection or multi) (cgPool).>
              <Jun 15, 2006 2:53:54 PM GMT+05:30> <Error> <JDBC> <BEA-001151> <Data
              Source "bpmArchDataSource" deployment failed with the following error:
              DataSource(bpmArchDataSource) can't be created with non-existent Pool
              (connection or multi) (bpmArchPool).>
              <Jun 15, 2006 2:54:07 PM GMT+05:30> <Alert> <JMS> <BEA-040052>
              <JMSServer "cgJMSServer_auto_2" store failed to open
              java.io.IOException: JMS JDBC store, connection pool =
              <cgJMSPool-nonXA>, prefix = <VSD_2>: connection pool does not exist.
              java.io.IOException: JMS JDBC store, connection pool =
              <cgJMSPool-nonXA>, prefix = <VSD_2>: connection pool does not exist
              at
              weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:488)
              at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1599)
              at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:548)
              at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
              at weblogic.jms.backend.BEStore.open(BEStore.java:262)
              at weblogic.jms.backend.BEStore.start(BEStore.java:151)
              at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
              at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
              at weblogic.jms.backend.BackEnd.migratableActivate(BackEnd.java:2939)
              at
              weblogic.cluster.migration.MigratableGroup.add(MigratableGroup.java:107)
              at
              weblogic.cluster.migration.MigrationManager.privateRegister(MigrationManager.java:180)
              at
              weblogic.cluster.migration.MigrationManager.register(MigrationManager.java:127)
              at weblogic.jms.JMSService.addJMSServer(JMSService.java:2226)
              at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
              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
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              at
              weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
              at
              weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
              at
              weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
              at
              weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
              at
              weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
              at
              weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
              at
              weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
              at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
              at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
              at weblogic.Server.main(Server.java:32)
              <Jun 15, 2006 2:54:07 PM GMT+05:30> <Error> <JMS> <BEA-040368> <The
              following exception has occurred:
              weblogic.jms.common.JMSException: JMS can not open store
              cgJMSStore_auto_2
              at weblogic.jms.backend.BEStore.start(BEStore.java:163)
              at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
              at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
              at weblogic.jms.backend.BackEnd.migratableActivate(BackEnd.java:2939)
              at
              weblogic.cluster.migration.MigratableGroup.add(MigratableGroup.java:107)
              at
              weblogic.cluster.migration.MigrationManager.privateRegister(MigrationManager.java:180)
              at
              weblogic.cluster.migration.MigrationManager.register(MigrationManager.java:127)
              at weblogic.jms.JMSService.addJMSServer(JMSService.java:2226)
              at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
              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
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              at
              weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
              at
              weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
              at
              weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
              at
              weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
              at
              weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
              at
              weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
              at
              weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
              at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
              at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
              at weblogic.Server.main(Server.java:32)
              Caused by: java.io.IOException: JMS JDBC store, connection pool =
              <cgJMSPool-nonXA>, prefix = <VSD_2>: connection pool does not exist
              at
              weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:488)
              at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1599)
              at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:548)
              at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
              at weblogic.jms.backend.BEStore.open(BEStore.java:262)
              at weblogic.jms.backend.BEStore.start(BEStore.java:151)
              ... 33 more
              weblogic.jms.common.JMSException: JMS can not open store
              cgJMSStore_auto_2
              at weblogic.jms.backend.BEStore.start(BEStore.java:163)
              at weblogic.jms.backend.BackEnd.openStores(BackEnd.java:1171)
              at weblogic.jms.backend.BackEnd.resume(BackEnd.java:1290)
              at weblogic.jms.backend.BackEnd.migratableActivate(BackEnd.java:2939)
              at
              weblogic.cluster.migration.MigratableGroup.add(MigratableGroup.java:107)
              at
              weblogic.cluster.migration.MigrationManager.privateRegister(MigrationManager.java:180)
              at
              weblogic.cluster.migration.MigrationManager.register(MigrationManager.java:127)
              at weblogic.jms.JMSService.addJMSServer(JMSService.java:2226)
              at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
              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
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              at
              weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
              at
              weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
              at
              weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
              at
              weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
              at
              weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
              at
              weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
              at
              weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
              at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
              at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
              at weblogic.Server.main(Server.java:32)
              Caused by: java.io.IOException: JMS JDBC store, connection pool =
              <cgJMSPool-nonXA>, prefix = <VSD_2>: connection pool does not exist
              at
              weblogic.jms.store.JDBCIOStream.throwIOException(JDBCIOStream.java:488)
              at weblogic.jms.store.JDBCIOStream.checkPool(JDBCIOStream.java:1599)
              at weblogic.jms.store.JDBCIOStream.open(JDBCIOStream.java:548)
              at weblogic.jms.store.JMSStore.open(JMSStore.java:224)
              at weblogic.jms.backend.BEStore.open(BEStore.java:262)
              at weblogic.jms.backend.BEStore.start(BEStore.java:151)
              ... 33 more
              --------------- nested within: ------------------
              weblogic.cluster.migration.MigrationException: Failed to activate
              JMSServer cgJMSServer_auto_2 - with nested exception:
              [weblogic.jms.common.JMSException: JMS can not open store
              cgJMSStore_auto_2]
              at weblogic.jms.backend.BackEnd.migratableActivate(BackEnd.java:2946)
              at
              weblogic.cluster.migration.MigratableGroup.add(MigratableGroup.java:107)
              at
              weblogic.cluster.migration.MigrationManager.privateRegister(MigrationManager.java:180)
              at
              weblogic.cluster.migration.MigrationManager.register(MigrationManager.java:127)
              at weblogic.jms.JMSService.addJMSServer(JMSService.java:2226)
              at weblogic.jms.JMSService.addDeployment(JMSService.java:2031)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:337)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.java:597)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentTarget.java:575)
              at
              weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.java:241)
              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
              weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:755)
              at
              weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:734)
              at
              weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:516)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              at
              com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              at
              weblogic.management.internal.RemoteMBeanServerImpl.private_invoke(RemoteMBeanServerImpl.java:990)
              at
              weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:948)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:948)
              at
              weblogic.management.internal.MBeanProxy.invokeForCachingStub(MBeanProxy.java:475)
              at
              weblogic.management.configuration.ServerMBean_Stub.updateDeployments(ServerMBean_Stub.java:7731)
              at
              weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.java:1321)
              at
              weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:339)
              at
              weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:229)
              at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:136)
              at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:965)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:360)
              at weblogic.Server.main(Server.java:32)
              Why do you think this error is occuring? Any other setting needs to be
              done to overcome this problem ?
              Thanks in advance,
              Sandeep

    Please verify following
    1) have you defined jndi name for database correctly ??
    2) Have you added sqljdbc jar file in soa suite server?
    3) How much time it takes when you execute same query in JDev ?
    4) If you think configuration is issue, please verify the Jdev conn details @ http://soasphere.blogspot.com/2008/11/connecting-sql-server-from-jdeveloper.html and soa suite server side required settings @ Deploy error because of  sql server database adapter

  • Help! Connection pointbase error

    i used webserver7.0.
    this is my server.xml:
    <jdbc-resource>
    <jndi-name>jdbc/sample</jndi-name>
    <datasource-class>com.pointbase.jdbc.jdbcUniversalDriver</datasource-class>
    <property>
    <name>password</name>
    <value>PBPUBLIC</value>
    </property>
    <property>
    <name>datasourceName</name>
    <value>sample</value>
    </property>
    <property>
    <name>user</name>
    <value>PBPUBLIC</value>
    </property>
    <property>
    <name>networkProtocol</name>
    <value>pointbase</value>
    </property>
    <property>
    <name>databaseName</name>
    <value>sample</value>
    </property>
    <property>
    <name>serverName</name>
    <value>localhost</value>
    </property>
    <property>
    <name>port</name>
    <value>9092</value>
    </property>
    <description/>
    </jdbc-resource>
    <class-path-suffix>C:/Sun/JavaES5/WebServer7/lib/mysql-connector-java-3.1.14-bin.jar;C:/pointbase56/lib\pbclient56ev.jar</class-path-suffix>
    my sun-web.xml is
    <resource-ref>
    <res-ref-name>jdbc/jdbc-simple</res-ref-name>
    <jndi-name>jdbc/sample</jndi-name>
    </resource-ref>
    and web.xml is
    web.xml
    <resource-ref>
    <res-ref-name>jdbc/jdbc-simple</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    my code is :
    String dsName = "java:comp/env/jdbc/jdbc-simple";
    DataSource ds = (javax.sql.DataSource) initContext.lookup(dsName);
    Connection conn = ds.getConnection();
    i got a error:
    "com.pointbase.jdbc.jdbcUniversalDriver"

    The DataSource class has to be a class that implements javax.sql.DataSource.
    AFAIK com.pointbase.jdbc.jdbcUniversalDriver does not implement that class.
    You have to determine which class in your JDBC Driver does by looking at the driver classes. It varies depending on the vendor, database and version of the driver.
    Try using "com.pointbase.jdbc.jdbcDataSource"
    Docs:
    http://docs.sun.com/app/docs/doc/820-1062/6ncoqnpdk?a=view#gaiei
    http://docs.sun.com/app/docs/doc/820-1061/6ncopp90c?a=view

  • How to connect to pointbase inside Workshop Studio?

    I create a new WLS domain, and startup pointbase. From pointbase console I create a new pointbase(named test_wls8) with port 9093. Inside Studio, I open the blank DbXpolorer view and create a "new connection".
    The driver classpath I choiced is:
    C:\bea814\weblogic81\common\eval\pointbase\lib\pbserver44.jar
    The JDBC driver class is:
    "om.pointbase.jdbc.jdbcUniversalDriver"
    The DB URL is:
    jdbc:pointbase:server://localhost:9093/test_wls8
    The username and password of the DB is correct.
    After I finished the above, I press "Test Connection" to test. But there come out a dialog said: "Database connection failed to open: No suitable driver".
    I don't know what's wrong with my config. Are there anybody met it before? Thanks!

    Yes, using pbclient44.jar should work fine. Try the following steps.
    - Edit connection, make sure pbclient44.jar is the only file in "Driver Classpath" - Click OK
    - Quit Workshop
    - Relaunch
    - Edit Connection & Test
    - With this you should be able to obtain a connection
    In case even this attempt fails, please delete the existing connection > Quit Workshop > Relaunch > Create a new connection selecting "pbclient44.jar"

  • Unable to connect to PointBase

    When I attempt to connect to Pointbase by doing a Test Connection. The entire application freezes.
    I have to a q at the Pointbase console, then the error message is returned and it says
    IO Exception when creating a netJDBCConnection object: java.net.SocketException ......
    This should have resulted from Pointbase being killed.
    By why the failure to connect in the first place? What to check for?
    Same behavior when I double-click on the Travel db icon

    One possibility is that there may be two installations of PointBase on your computer . I have two, one from the Sun Server and the other from Creator. Which one are you connecting to?
    Before you start your Studio Creator IDE, you start your PointBase Database from [  C:\Sun\Creator\SunAppServer8\pointbase\tools\serveroption
    \startservr.bat and also startcommander.bat]. This may be different in your case, but look for "SunAppServer8".
    Now you start your Creator IDE and you can see the Travel database. PointBase server starts from a bat file, rather than as a service. If for some reason you do not get the correct port, you can go to the PointBase commander and change the port.

  • I am creating a connection to the pointbase database and I am getting error

    Loading JDBC Driver -> com.pointbase.jdbc.jdbcUniversalDriver
    java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Unknown Source)
         at testing.DDLExample.<init>(DDLExample.java:65)
         at testing.DDLExample.main(DDLExample.java:301) Creating Statement...
    java.lang.NullPointerException
         at testing.DDLExample.performDDL(DDLExample.java:98)
         at testing.DDLExample.main(DDLExample.java:302)
    Exception in thread "main"
    BELOW IS MY CLASS:
    public class DDLExample {
    final static String driverClass = "com.pointbase.jdbc.jdbcUniversalDriver";
    final static String connectionURL = "jdbc:pointbase:embedded:sample";
    final static String userID = "pbpublic";
    final static String userPassword = "pbpublic";
    Connection con = null;
    * Construct a DDLExample object. This constructor will create an Oracle
    * database connection.
    public DDLExample() {
    try {
    System.out.print(" Loading JDBC Driver -> " + driverClass + "\n");
    Class.forName(driverClass).newInstance();
    System.out.print(" Connecting to -> " + connectionURL + "\n");
    this.con = DriverManager.getConnection(connectionURL, userID, userPassword);
    System.out.print(" Connected as -> " + userID + "\n");

    i found it on the sun server and i set the classpath to that jar file but i still get the error... how would you set this in eclipse...
    you know where we set CLASSPATH VARIABLES in eclipse like setting ECLIPSE_HOME to c:/Eclipse/eclipse...
    what would the variable name be for C:\Sun\AppServer\pointbase\lib\pbclient.jar

  • Connecting BookDB with pointbase in tuto examples

    At last I successed to build bookstore example.
    I create the db with "asant create-db_common" command
    As it's mentioned in tuto i want to connect db from pointbase
    in url i write the path in the tuto.But it says no db in that url
    i'm sure that it's the same url given in the tuto.What should i do?
    Another question : while creating web applications with IIS in windows localhost refers to "inetpub\wwwroot" . In J2ee what does localhost refer to ?

    I am not sure what your overall question is, but you need to update the examples/build.properties file to have the correct values.
    localhost is refering to the machine that the appserver is running on.

  • Pointbase : How can I create a stored procedure with Pointbase database?

    Hello,
    Excuse me for my english, I'm not anglophone. I try to create a stored procedure.
    This is my file SampleExternalMethods.java :
      import java.sql.*;    //import com.pointbase.jdbc.jdbcInOutDoubleWrapper;          public class SampleExternalMethods    {      // A connection object to allow database callback      static Connection conn = null;      static Statement l_stmt;      static Statement m_stmt;      static CallableStatement m_callStmt = null;      static ResultSet l_rs = null;          public static void main(String[] args)      {        try        {          String url = "jdbc:pointbase:server://localhost/pointbaseDB";          String username = "PBPUBLIC";          String password = "PBPUBLIC";          conn = DriverManager.getConnection(url, username, password);          doCreateProcedure();          doInvokeProcedure();        } catch (SQLException e) {          e.printStackTrace();        } finally {          if (m_stmt != null) {            try {              m_stmt.close();            } catch (Exception e) {              e.printStackTrace();            }          }          if (m_callStmt != null) {            try {              m_callStmt.close();            } catch (Exception e) {              e.printStackTrace();            }          }          if (conn != null) {            try {              conn.close();            } catch (Exception e) {              e.printStackTrace();            }          }        }      }                  public static void getCountry(String Iso_Code)      {        try        {          // Query the database for the country iso code          l_stmt = conn.createStatement();          l_rs = l_stmt.executeQuery( "SELECT * FROM countries"          + " WHERE country_iso_code ='" + Iso_Code + "'");          //Affichage du résultat de la requête          l_rs.next();          System.out.print(l_rs.getString(1) + " - ");          System.out.print(l_rs.getString(2) + " - ");          System.out.println(l_rs.getString(3));          // Close the result set          l_rs.close();        } catch (SQLException e) {          e.printStackTrace();        } finally {          if (l_rs != null) {            try {              l_rs.close();            } catch (Exception e) {              e.printStackTrace();            }          }          if (l_stmt != null) {            try {              l_stmt.close();            } catch (Exception e) {              e.printStackTrace();            }          }        }      }            public static void doCreateProcedure() throws SQLException {        // SQL statement to create a stored procedure        String SQL_CREATE_PROC = "CREATE PROCEDURE getCountry(IN P1 VARCHAR(30))"        + " LANGUAGE JAVA"        + " SPECIFIC getCountry"        + " NO SQL"        + " EXTERNAL NAME \"SampleExternalMethods::getCountry\""        + " PARAMETER STYLE SQL";        // Create a SQL statement        m_stmt = conn.createStatement();        // Execute the SQL        m_stmt.executeUpdate(SQL_CREATE_PROC);        // Close the statement        //m_stmt.close();      }          public static void doInvokeProcedure() throws SQLException {        // Create SQL to invoke stored procedures        String SQL_USE_PROC = "{ call getCountry(?) }";        // Create a callable statement with three binding parameters        m_callStmt = conn.prepareCall(SQL_USE_PROC);        m_callStmt.setString(1, "CA");        m_callStmt.executeQuery();        // Close the callable statement        //m_callStmt.close();      }    } 
    Afterwards, I have read this note in a Pointbase document:
    To invoke the dateConvert external Java method from a stored function, you must use the
    CREATE FUNCTION statement. The dateConvert external Java method is called from the
    class, SampleExternalMethods.
    In order for the database to access this external Java method, the class SampleExternalMethods
    must be included in the database CLASSPATH. For PointBase Embedded - Server Option, it
    must be in the Server CLASSPATH, but not in the Client CLASSPATH.
    If PointBase Server is run with the Java Security Manager, in the java policy file grant
    ’com.pointbase.sp.spPermission’ to the class that implements the external Java method.
    An "spPermission" consists of a class name with no action. The class name is a name of a class
    that could be used in creating a Stored Procedure in PointBase. The naming convention follows
    the hierarchical property naming convention and that is supported by
    "java.security.BasicPermission". An asterisk may appear by itself, or if immediately preceded
    by ".", may appear at the end of the name, to signify a wildcard match. The name cannot
    contain any white spaces.
    I'm not sure, but I suppose that I must include the class SampleExternalMethods in a .jar file.
    The database CLASSPATH could be : C:\Sun\AppServer\pointbase\lib\
    These my files in this database CLASSPATH:
    pbclient.jar
    pbembedded.jar
    pbtools.jar
    pbupgrade.jar
    I have tryed to include the class SampleExternalMethods in pbclient.jar and pbembedded.jar with this command:
    jar -uf pbembedded.jar SampleExternalMethods
    Afterwards I do that,
    1) Start Pointbase
    2) Configuration of classpath
    set classpath=C:\Sun\AppServer\pointbase\lib\pbclient.jar
    set classpath=%classpath%;D:\J2EE\Ch07Code\Ch07_06
    I precise that my file SampleExternalMethods is into D:\J2EE\Ch07Code\Ch07_06\Ch07.
    Then, I run the program:
    D:\J2EE\Ch07Code\Ch07_06>java -Djdbc.drivers=com.pointbase.jdbc.jdbcUniversalDriver Ch07.SampleExternalMethods
    But I have an error message:
    Exception in thread "main" java.lang.NoClassDefFoundError: Ch07.SampleExternalMethods (wrong name: SampleExternalMethods)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.DefineClass(ClassLoader.java:539)
    The problem, I suppose, comes from that the class SampleExternalMethods
    must be included in the database CLASSPATH, but there is a pbserver.jar with pointbase normally, but I didn't find it. That's why I use pbembedded.jar or pbclient.jar in order to include the class SampleExternalMethods. May be I must start from C:\Sun\AppServer\pointbase\lib\ instead of D:\J2EE\Ch07Code\Ch07_06\Ch07?
    Please, can somebody helps me?
    Thank you in advance.
    cagou!

    jschell wrote:
    And I doubt you can recurse like that for embedded java. You must have a class that does the functionality and another class that creates the proc.
    >And I doubt you can recurse like that for embedded java. You must have a class that does the functionality and another class that creates the proc.
    >
    And I doubt you can recurse like that for embedded java. You must have a class that does the functionality and another class that creates the proc.
    Thank you for your response, I have done two classes:
    SampleExternalMethods.java:
    package Ch07;
    import java.sql.*;*
    *public class SampleExternalMethods*
    *public static void getCountry(String Iso_Code)*
    *// A connection object to allow database callback*
    *Connection l_conn = null;*
    *Statement l_stmt = null;*
    *ResultSet l_rs = null;*
    *try*
    *String url = "jdbc:pointbase:server://localhost/pointbaseDB";*
    *String username = "PBPUBLIC";*
    *String password = "PBPUBLIC";*
    *l_conn = DriverManager.getConnection(url, username, password);*
    *// Query the database for the country iso code*
    *l_stmt = l_conn.createStatement();*
    *l_rs = l_stmt.executeQuery( "SELECT* FROM PBPUBLIC.COUNTRIES"
    +" WHERE country_iso_code ='"+ Iso_Code +"'");+
    +//Affichage du r&eacute;sultat de la requ&ecirc;te+
    +l_rs.next();+
    +System.out.print(l_rs.getString(1)+ " - ");
    System.out.print(l_rs.getString(2) +" - ");+
    +System.out.println(l_rs.getString(3));+
    +// Close the result set+
    +l_rs.close();+
    +} catch (SQLException e) {+
    +e.printStackTrace();+
    +} finally {+
    +if (l_rs != null) {+
    +try {+
    +l_rs.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +if (l_stmt != null) {+
    +try {+
    +l_stmt.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +if (l_conn != null) {+
    +try {+
    +l_conn.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +}+
    +}+
    +}+
    CreateMethods.java:
    +package Ch07;+
    +import java.sql.*;+
    +public class CreateMethods+
    +{+
    +// A connection object to allow database callback+
    +static Connection m_conn = null;+
    +static Statement m_stmt;+
    +static CallableStatement m_callStmt = null;+
    +public static void main(String[] args)+
    +{+
    +try+
    +{+
    +String url = "jdbc:pointbase:server://localhost/pointbaseDB";+
    +String username = "PBPUBLIC";+
    +String password = "PBPUBLIC";+
    +m_conn = DriverManager.getConnection(url, username, password);+
    +doCreateProcedure();+
    +doInvokeProcedure();+
    +} catch (SQLException e) {+
    +e.printStackTrace();+
    +} finally {+
    +if (m_stmt != null) {+
    +try {+
    +m_stmt.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +if (m_callStmt != null) {+
    +try {+
    +m_callStmt.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +if (m_conn != null) {+
    +try {+
    +m_conn.close();+
    +} catch (Exception e) {+
    +e.printStackTrace();+
    +}+
    +}+
    +}+
    +}+
    +public static void doCreateProcedure() throws SQLException {+
    +// SQL statement to create a stored procedure+
    +String SQL_CREATE_PROC = "CREATE PROCEDURE PBPUBLIC.getCountry(IN P1 VARCHAR(30))"+
    " LANGUAGE JAVA"
    +" SPECIFIC getCountry"+
    " NO SQL"
    +" EXTERNAL NAME \"SampleExternalMethods::getCountry\""+
    " PARAMETER STYLE SQL";
    // Create a SQL statement
    m_stmt = m_conn.createStatement();
    // Execute the SQL
    m_stmt.executeUpdate(SQL_CREATE_PROC);
    // Close the statement
    //m_stmt.close();
    public static void doInvokeProcedure() throws SQLException {
    // Create SQL to invoke stored procedures
    String SQL_USE_PROC = "{ call getCountry(?) }";
    // Create a callable statement with three binding parameters
    m_callStmt = m_conn.prepareCall(SQL_USE_PROC);
    m_callStmt.setString(2, "CA");
    m_callStmt.executeQuery();
    // Close the callable statement
    //m_callStmt.close();
    }But I have the same error message that previously.
    I have read this note and I suppose that the problem is linked:
    If PointBase Server is run with the Java Security Manager, in the java policy file grant
    *’com.pointbase.sp.spPermission’ to the class that implements the external Java method.*
    An "spPermission" consists of a class name with no action. The class name is a name of a class
    that could be used in creating a Stored Procedure in PointBase. The naming convention follows
    the hierarchical property naming convention and that is supported by
    *"java.security.BasicPermission". An asterisk may appear by itself, or if immediately preceded*
    by ".", may appear at the end of the name, to signify a wildcard match. The name cannot
    contain any white spaces.
    Can you explain me what I must to do in order to solve this problem of spPermission.
    Thanks.

  • How can I connect to SQL Server CE?

    Hi!
    How can I connect to SQL Server CE ?
    Any idea?
    I found jdbc driver for SQL Server 6.5,7.0,2000.
    But no driver for SQL CE.
    Thanks for any suggestion....

    I am also searching for same answer.
    I wanna choose Access as a db. but I can't find that so I have a no choice to select SQL2000CE though.
    I am stuck in driver problem. I can't find that.
    Should I use Oracle Lite or PointBase?
    I am under a lot of stress... like you've been...
    I wish you find and post that....

  • Problem with EJB and JMS - Failed to obtain/create connection

    hello ejb and jms programmers,
    My problem is my topic MDB keep on retrieving the same message when there is a database connection failure. Maybe somebody could help me how to prevent to retrieve the same data?
    Given:
    - I purposedly turn off the pointbase database because im testing my error handling.
    - Im using SJSAS 8 as my application server.
    - My message Driven Bean of topic type.
    - Im using CMP for my entity bean
    Here is the scenario of whats happening - step by step:
    1. A separate application publishes a message to JMS queue server
    2. My MDB retrieves this message and do some processing then inserts a record (transaction history) in my database
    3. But my db is turned off or down
    4. My MDB sends a successful processing reply to the JMS queue server
    5. Then i noticed that my server.log keeps on growing so when i opened it, the record was not inserted and printed the stacktrace below "RAR5117 : Failed to obtain/create connection. Reason : javax.transaction.SystemException" (complete stacktrace below)
    6. I understand the cause of the stacktrace is because the DB is turned off. But what i dont understand is that my MDB keeps on reading the same message. Since my MDB is of topic type, isnt a topic MDB supposedly reads a message only once???
    So my questions are:
    1. how do i handle insert database error?
    2. how can i stop my MDB from processing the same message?
    3. any better suggestions?
    Thank you in advance :)
    leigh
    *** more complete stack trace ***
    [#|2005-01-09T15:35:57.097+0800|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.core.transaction|_ThreadID=17;|JTS5041: The resource manager is doing work outside a global transaction
    javax.transaction.xa.XAException
         at com.pointbase.xa.xaException.getXAException(Unknown Source)
         at com.pointbase.xa.xaConnectionResource.start(Unknown Source)
         at com.sun.gjc.spi.XAResourceImpl.start(XAResourceImpl.java:162)
    [#|2005-01-09T15:35:57.167+0800|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=17;|RAR5027:Unexpected exception in resource pooling
    javax.transaction.SystemException
         at com.sun.jts.jta.TransactionImpl.enlistResource(TransactionImpl.java:185)
         at com.sun.enterprise.distributedtx.J2EETransaction.enlistResource(J2EETransaction.java:360)
         at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.enlistResource(J2EETransactionManagerImpl.java:303)
         at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:115)
    [#|2005-01-09T15:35:57.177+0800|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=17;|RAR5117 : Failed to obtain/create connection. Reason : javax.transaction.SystemException|#]
    [#|2005-01-09T15:35:57.227+0800|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=17;|RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: javax.transaction.SystemException]|#]
    [#|2005-01-09T15:35:57.237+0800|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.ejb|_ThreadID=17;|EJB5071: Some remote or transactional roll back exception occurred
    com.sun.jdo.api.persistence.support.JDODataStoreException: JDO77006: SQL exception: state = null, error code = 0.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: javax.transaction.SystemException
    FailedObjectArray: [[email protected]5ac]
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.getConnectionInternal(TransactionImpl.java:1444)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.TransactionImpl.getConnection(TransactionImpl.java:1339)

    Hi annie,
    Wherever you are handling database transactions,
    you'd not be able to create a Connection if database
    is closed (I think you mentioned turning off the
    database) then at this condition, you should
    certainly throw a System level exception and stop all
    processing with some meaningful flow to indicate a
    failure (like display message on UI). Even
    network problems are handled by exceptions... so I
    don't see a reason why you didn't wrap it in the
    first place.
    Anyway, try handling specific exceptions rather than
    the general Exception... this will give you a better
    idea of what to do in case of an exception.Yes i know this. I am practicing this in my non-j2ee server applications. But the j2ee app im making, i just pass the db url in the descriptor and the app server automatically creates the connection for my app. So where would i put exception handling?
    2. how can i stop my MDB from processing the same
    message?Guaranteed delivery is not supposed to stop
    processing. It will continue to process the message
    after certain intervals till the message is
    delivered. You shouldn't deliver it at all, if you
    are able to detect that the database is off
    The problem here is that my MDB automatically retrieves the message from the JMS queue server. Im not the one retrieving the messages manually.
    My assumed behavior of topic MDB is once the a certain MDB retrieves a message it will not retrieve the same message anymore.
    thank you in advance.
    leigh

Maybe you are looking for

  • Can't get navigatetourl to work

    i've created a flash animation with as3. at the end of the timeline i've got a stop(); action on the last frame which is working just fine. on the following frame i have the navigatetourl action navigateToURL(new URLRequest(" http://www.mydomain.com/

  • Target costs for product cost collector

    hi, can anyone tell me when are the target costs updated for product cost collector. it is after we post actual costs or after we calculate variance. Thanks

  • Drill down problem in query in BI 7

    HI all,        I m facing a problem regarding one query on customer.... in that NO. OF CUSTOMER , CUSTOMER NO., AND STATUS (1 OR 0) fields are there. depending upon "no of customer" we r giving the "status" as 1 (for non zero value of "no of customer

  • Crystal report "Failed to load database information" error after publish

    I have seen similar questions, but none of the answers seem to apply to my situation. I am upgrading an older web application to Visual Studio 2013, using the SAP Visual Studio Crystal Reports tools. Everything works great until I publish. I have two

  • SmoothDivScroller in apex

    Hi all, I'm getting a problem with implementing the SmoothDivScroller in apex. - APEX version: 4 - DB version and edition: XE - Web server architecture (EPG, OHS or APEX listener): apex listener - Browser(s)/version(s) used: IE7, Chrome 10, Mozilla 3