Wrong exception being thrown on CMP bean error

In OC4J Release 2 I'm getting the wrong exception thrown from a CMP bean error.
Situation:
Servlet calls an update method on a stateless session bean with trans-attribute of Required. This update method finds 2 entity beans by primary key and updates both of them (all with trans-attribute of Supports). When an error is thrown in the second entity bean (by trying to set a value to something that breaks a constraint), I get the following error:
com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error preparing bean instance: com.evermind.transaction.MarshallingXAException
at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1164)
at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
Nested exception is:
com.evermind.transaction.MarshallingXAException
at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:70)
at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
Nested exception is:
java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
at Test2_EntityBeanWrapper5.setEntityBean(Test2_EntityBeanWrapper5.java:1496)
at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
at Test2_EntityBeanWrapper5.saveState(Test2_EntityBeanWrapper5.java:1442)
at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:39)
at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62) at Test2_EntityBeanWrapper5.setEntityBean(Test2_EntityBeanWrapper5.java:1496)
at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
at Test2_EntityBeanWrapper5.saveState(Test2_EntityBeanWrapper5.java:1442)
at com.evermind.server.ejb.EntityEJBObject.prepare(EntityEJBObject.java:39)
at com.evermind.server.ApplicationServerTransactionSynchronization.prepareComponentsSuccess(ApplicationServerTransactionSynchronization.java:403)
at com.evermind.server.ApplicationServerTransactionSynchronization.beforeCompletion(ApplicationServerTransactionSynchronization.java:565)
at com.evermind.server.ApplicationServerTransaction.beforeCompletion(ApplicationServerTransaction.java:1063)
at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:552)
at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:834)
at TestSession_StatefulSessionBeanWrapper3.updatebothtests(TestSession_StatefulSessionBeanWrapper3.java:1160)
at __jspPage1_insertEntityTest_jsp._jspService(__jspPage1_insertEntityTest_jsp.java:224)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at com.evermind.server.http.HttpApplication.serviceJSP(HttpApplication.java:5680)
at com.evermind.server.http.JSPServlet.service(JSPServlet.java:31)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:667)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:702)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
Why am I getting a MarshallingXAException instead of a SQLException? In the old OC4J, I got a SQLException wrapped in an OrionRemoteException, with the details of what constraint was broken, instead of this.
I've also duplicated this by doing the entity bean updates directly from the servlet wrapped in a UserTransaction.
Jeff.

Tell me whether your transaction has been rolled back or not....If it has been rolled back, then those messages, printed on your server console are debug messages...just ignore them...
After this exception, can u able to execute other applications in OC4J?
--Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Exception is thrown when creating bean

              Hi, I have some questions about transaction.
              In my case, i call a stateful session bean through the stateless session bean.
              When the bean is created, following exception is thrown
              "javax.transaction.TransactionRolledbackException: Current server is the coordinator
              and transaction is not found. It was probably rolled back and forgotten already."
              The transaction attribute of the stateless session bean is "Required" and the
              one of stateful session bean is "NotSupported".
              I dont know what is happening, would anyone help me please.
              Thanks
              

    Try asking this in the interest.ejb group.
              Thanks.
              "Leo" <[email protected]> wrote in message news:3f7b7c21$[email protected]..
              >
              > Hi, I have some questions about transaction.
              > In my case, i call a stateful session bean through the stateless session bean.
              > When the bean is created, following exception is thrown
              >
              > "javax.transaction.TransactionRolledbackException: Current server is the coordinator
              > and transaction is not found. It was probably rolled back and forgotten already."
              >
              > The transaction attribute of the stateless session bean is "Required" and the
              > one of stateful session bean is "NotSupported".
              >
              > I dont know what is happening, would anyone help me please.
              >
              > Thanks
              >
              >
              

  • REST Services - Permission exceptions being thrown

    In setting up a mobile site which will make use of REST services we have started to see exceptions in the log file. These exceptions do not happen all the time - that is they are random in nature. We may see them for about an hour or so and then not see them for a day.
    We are seeing the same exceptions as identified in this Re: REST secureProductCatalog exception and I used the following [Not able to invoke ATG Rest services thread|https://forums.oracle.com/forums/thread.jspa?messageID=10615221&#10615221] as a reference as well.
    Working through the ATG10 document, have set up the restSecurityConfiguration.xml which identifies the beans with a secure setting of false, have set up the secureCustomCatalog.xml which identifies each of the item descriptors and the acl that is to be applied.
    Have created an external user as well.
    I created a simple unit test class - outside of my development environment - to simulate the remote call to the ATG server to verify the behavior. Everything passed.
    Now I was able to reproduce the issue if after I establish the session (LogIn) , I log out before the call to the repository.
    What I am wondering is -
    1. Is there any other way in which this kind of error can be created/occurred?
    2. Is there any other configuration that needs to happen?
    As a side note, is there any way in which to configure REST so that it does not dump a stack trace to the log file in the event of this error - possible to create a more meaningful shorter message? When the issue happens, it just fills up the log files.

    The issue turned out to be centered around the amount of connections from the mobile site to the REST service. This was verified via a load test.
    Solution was to modify the mobile logic that would check if a connection/session was already open/available and use it, otherwise create a new one.
    This seems to have addressed the issue

  • Cannot create CMP bean, Error: "Werent current caller"

    Hi,
    I generated a CMP entity ejbean with JDeveloper and deployed it. I can use that bean with a client and retrieve a specific instance using the home interface's findByPrimaryKey() method.
    But I can not create a new bean using the home interface's create( long newPrimKey) method. The following error occures only if the specified newPrimKey is not occupied yet. If I use an occupied key, I get an expectable "javax.ejb.DuplicateKeyException"...
    java.lang.InternalError: Werent current caller, server stacktrace (to disable this message, use -Dejb.assert=false at startup): java.lang.Throwable: Werent current caller
         at Person_EntityBeanWrapper11.setEntityBean(Person_EntityBeanWrapper11.java:5404)
         at com.evermind.server.ejb.EntityEJBHome.passivateAndRelease(EntityEJBHome.java:344)
         at com.evermind.server.ejb.EntityEJBObject.releaseContext(EntityEJBObject.java:378)
         at PersonHome_EntityHomeWrapper13.create(PersonHome_EntityHomeWrapper13.java:542)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:80)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
         void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
         java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
         de.fiscus.sfs.cmp.Person __Proxy0.create(long)
         void SamplePersonClient1.main(java.lang.String[])
    Any idea?? I'm really stuck with this!
    Thank you.
    CU, Chris

    Chris,
    The problem is that both clients and EJBs are in the same server and you are using RMIInitialContextFactory. You have to use default context and package this client in the same EAR. Please look at http://otn.oracle.com/sample_code/tech/java/oc4j/htdocs/oc4jsamplecode/oc4j-demo-ejb.html#CMP for samples. Also some EJB/client sample programs are packaged with Oc4J disand you can find at $IAS_HOME/j2ee/home/demo/cmp distribution ctory.
    However the client program should work fine if your client and EJBs are running on different Oc4J containers.
    regards
    Debu
    Hi Debu,
    the client is a java application. Here is the code:
    [...in main method...]
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "admin");
    env.put(Context.PROVIDER_URL, "ormi://CHRISTIANE/statful");
    Context ctx = new InitialContext(env);
    PersonHome personHome = (PersonHome)ctx.lookup("Person");
    Person person;
    person = personHome.create( 14261026 );
    CU, Chris

  • Why is this exception being thrown

    Everytime this piece of code is run we get this Exception. Is there a way to avoid that at all. Though it is being handled properly but it would still be better if this could be avoided. Any ideas
    JavaDeveloper mspete = JavaDeveloper().getInstance();
    try{
    mspete.setJob(new Job(goodWages));
    mspete.setHouse(new House(4BDRM));
    mspete.getHouse.add(Wife);
    mspete.getHouse.add(Kids);
    mspete.setMood(Feelin.GOOD);
    catch(LayedOffDueToOffShoreDevelopmentException){
    RepoMan reaper = new RepoMan();
    reaper.take(mspete.getHouse());
    mspete.setHouse(new House(BOX));
    mspete.lose(Wife,Kids);
    mspete.get(Shotgun);
    mspete.shoot(mspete);

    Try mspete.clone() cus that almost equals me, my error handling weren't quite as extreme though. Mine was more like
    if(mspete.clone() instanceof Rob) {
      Rob rob = (Rob)mspete.clone();
      pub.go();
      rob.drink(pub.buyLotsOfBeer());
      rob.fallOverDrunk();
    }Rob.

  • Exception being thrown...why?

    If I have
    stmt = myConn.createStatement();my program works fine
    But I need to be able to call rs.beforeFirst()
    By default resultset is forward only...so I do
    stmt = myConn.createStatement(ResultSet.TYPE_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);But I get the following exception.
    Exception in thread "main" java.lang.AbstractMethodError:
    org.postgresql.jdbc1.Jdbc1Connection.createStatement(II)Ljava/sql/Statement;
            at GUIFrame.<init>(GUIFrame.java:28)
            at TopClass.main(TopClass.java:8)

    stmt =
    myConn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
    ResultSet.CONCUR_READ_ONLY);
    org.postgresql.jdbc1.Jdbc1Connection.createStat
    ement(I
    I)Ljava/sql/Statement;
    at GUIFrame.<init>(GUIFrame.java:28)
    at TopClass.main(TopClass.java:8)
    Because the createStatement(int, int) method has been
    around since 1.2, and you are using an earlier
    driver. Upgrade your driver.
    http://jdbc.postgresql.org/download.html
    Good Luck
    Lee
    Thanks Lee.
    Maybe you are right. I have checked what driveer we have, and it is pg73jdbc1.jar
    Then I went to
    http://jdbc.postgresql.org/download.html
    and I notuice that this driver is for JDBC1. Is createStatement(int, int) part of JDBC 2? If so what workaround is available for me to go back in my ResultSet?
    Thanks.

  • Exception being thrown by java3D

    Can any one explain what might be the reason of this exception? This exception comes from where i cant reach...
    java.lang.NullPointerException
    at javax.media.j3d.RenderMolecule.addRenderAtom(Unknown Source)
    at javax.media.j3d.RenderBin.findRenderMolecule(Unknown Source)
    at javax.media.j3d.RenderBin.insertRenderAtom(Unknown Source)
    at javax.media.j3d.RenderBin.processGeometryAtom(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.select(Unknown Source)
    at javax.media.j3d.BHTree.getVisibleBHTrees(Unknown Source)
    at javax.media.j3d.GeometryStructure.getVisibleBHTrees(Unknown Source)
    at javax.media.j3d.RenderBin.processMessages(Unknown Source)
    at javax.media.j3d.StructureUpdateThread.doWork(Unknown Source)
    at javax.media.j3d.J3dThread.run(Unknown Source)
    Many thanks...
    rahul

    At any cost, printStackTrace should return the details of the stack, I guess it is problem with the way you are logging.Because you writing to browser outputsream and browser might be skipping most of the things
    well try replace your catch with either system.out
    or
    catch( SQLException sqlException )
    try{
    java.io.PrintWriter log = new java.io.PrintWriter(new java.io.FileWriter("c:\\log.txt", false)
    e.printStackTrace(log);
    log.close();
    }catch(ex){}
    out.println( "SQLException Part 2: " + sqlException.getMessage() + "<BR>" );
    toWrite = toWrite + "SQLException: " + sqlException.getMessage() + "\n" ;
    catch( Exception exception )
    try{
    java.io.PrintWriter log = new java.io.PrintWriter(new java.io.FileWriter("c:\\log.txt", false)
    e.printStackTrace(log);
    log.close();
    }catch(ex){}
    out.println( "Exception Part 2: " + exception.getMessage() + "<BR>" );
    toWrite = toWrite + "Exception: " + exception.getMessage() + "\n" ;
    open c:\log.txt and just check what has printed..
    with regards
    LOkesh T.C

  • Exception not thrown on Key Exists

    using c# api:
    I have a Btree DB configured with two secondary DB's and a custom comparer, I have initialized the DB with 'DuplicatesPolicy.NONE'. To my understanding this should cause an exception to be raised if I try to enter a duplicate. On Put(), I get no such exception.
    Why? Am I supposed to throw this from comparer? (Actually tried this but it looks like it leaves cursor in undefined state). How Do I get the KeyExists Exception to be raised when a key exists???
    To my understadning I cannot use PutNoDuplicate() as a primary with secondaries cannot have duplicates configured, and you can only use PutNoDuplicate if there is a sorted duplicate policy...
    Any suggestions?

    Hi,
    The documentation could be a little misleading here. If you specify DuplicatesPolicy.NONE for a database, then duplicates will not be allowed in the database, and when trying to put a key/data pair in the database when the key already exist will fail:
    "Insertion when the key of the key/data pair being inserted already exists in the database will fail. "
    Failing here means that there will be no duplicate created, without any exception being thrown as the default behavior is to "Store the key/data pair in the database, replacing any previously existing key if duplicates are disallowed"; see the Database.Put() methods (BTreeDatabase extends from / is a sub-class of Database).
    You should use the PutNoOverwrite method. When the key that your are trying to insert already exists in the database, you will get a KeyExistException exception.
    Regards,
    Andrei

  • Error in Deploying CMP Bean!!!

    i'm writing a CMP Bean. i wrote the Bean , home and remote interfaces. i'm using weblogic 7.0 as my application server.
    1. what is the default data base for the weblogic 7.0.
    2. should v create any table while deploying the CMP bean in a database. i think there is no need because the container will take care of it.
    3. what is the need of <Data-source-name> in the deployment descriptor file weblogic-cmp-ejb-jar.xml. this is a mandatory field. can i give a random name here? if not, how 2 create a data source name.
    please refer my deployment descriptor file.s
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls700/dtd/weblogic-rdbms20-persistence-700.dtd'>
    <weblogic-rdbms-jar>
    <weblogic-rdbms-bean>
    <ejb-name>Product</ejb-name>
    <data-source-name>examples-dataSource-demoPool</data-source-name>
    <table-map>
    <table-name>TORDER</table-name>
    <field-map>
    <cmp-field>productID</cmp-field>
    <dbms-column>PRODUCTID</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>name</cmp-field>
    <dbms-column>NAME</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>description</cmp-field>
    <dbms-column>DESCRIPTION</dbms-column>
    </field-map>
    <field-map>
    <cmp-field>basePrice</cmp-field>
    <dbms-column>BASEPRICE</dbms-column>
    </field-map>
    </table-map>
    </weblogic-rdbms-bean>
    <create-default-dbms-tables>True</create-default-dbms-tables>
    </weblogic-rdbms-jar>
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>Product</ejb-name>
    <home>examples.ProductHome</home>
    <remote>examples.Product</remote>
    <ejb-class>examples.ProductBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.String</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>ProductBean</abstract-schema-name>
    <cmp-field>
    <field-name>productID</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>name</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>description</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>basePrice</field-name>
    </cmp-field>
    <primkey-field>productID</primkey-field>
    <query>
    <query-method>
    <method-name>findByName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.name = ?1]]>
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findByDescription</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.description = ?1]]>
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findByBasePrice</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.basePrice = ?1]]>
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findExpensiveProducts</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.basePrice > ?1]]>
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findCheapProducts</method-name>
    <method-params>
    <method-param>double</method-param>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.basePrice < ?1]]>
    </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAllProducts</method-name>
    <method-params>
    </method-params>
    </query-method>
    <ejb-ql>
    <![CDATA[SELECT OBJECT(p) FROM ProductBean AS p WHERE p.productID IS NOT NULL]]>
    </ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>Product</ejb-name>
    <method-intf>Remote</method-intf>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>
    <?xml version="1.0"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd" >
    <weblogic-ejb-jar>
    <weblogic-enterprise-bean>
    <ejb-name>Product</ejb-name>
    <entity-descriptor>
    <entity-cache>
         <max-beans-in-cache>1000</max-beans-in-cache>
    </entity-cache>
    <persistence>
         <persistence-type>
         <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
         <type-version>6.0</type-version>
         <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
         </persistence-type>
         <persistence-use>
         <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
         <type-version>6.0</type-version>
         </persistence-use>
    </persistence>
    </entity-descriptor>
    <jndi-name>RemoteProductHome</jndi-name>
    </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    4. when i tried to deploy the following error occurs.. how to fix the errror.
    weblogic.management.ApplicationException: activate failed forrgcmp1
    Module Name: rgcmp1, Error: Exception activating module: EJBModule(rgcmp1,status=PREPARED)
    Unable to deploy EJB: Product from rgcmp1.jar:
    The DataSource with the JNDI name: examples-dataSource-demoPool could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
    TargetException:
    Unable to deploy EJB: Product from rgcmp1.jar:
    The DataSource with the JNDI name: examples-dataSource-demoPool could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1097)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1078)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1144)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:764)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)

    i tried to configure my data source and the following error occured.
    After opening the Admin console, in 'connection pool' i created a demo pool and deployed it.(i refered the samples (Weblogic) for doing this ...even to tell more precisely i did a copy/paste).
    Name : demopool
    URL : jdbc:pointbase:server://localhost/demo
    Driver Classname : com.pointbase.xa.xaDataSource
    Properties (key=value); ser=examples                DatabaseName=jdbc:pointbase:server://localhost/demo
    password: weblogic
    open sting password: weblogic
    then i tried to create the data source..
    Name: examples-dataSource-demoPool
    jndi name: rgexample
    pool name: demopool
    Row Prefetch Size : 48
    Stream Chunk Size : 256
    then the following error occured while deployment.
    java.lang.reflect.InvocationTargetException: weblogic.management.DistributedManagementException: Distributed Management [1 exceptions]
    Error creating data source
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:653)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
         at $Proxy18.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
         at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
         at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
         at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
         at $Proxy14.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    Distributed update exception
    - remote object: RaghuDomain:Location=egserver,Name=egserver,Type=ServerConfig
    - remote server: weblogic.management.internal.RemoteMBeanServerImpl@673498
    - actionName: addDeployment
    - params: [Ljava.lang.Object;@19f294
    - signature: [Ljava.lang.String;@4f787
    Distributed update exception
    - remote object: RaghuDomain:Location=egserver,Name=egserver,Type=ServerConfig
    - remote server: weblogic.management.internal.RemoteMBeanServerImpl@673498
    java.lang.Exception: weblogic.common.ResourceException: DataSource(rgexample) can't be created with non-existent Pool (connection or multi) (demopool)
         at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:126)
         at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:262)
         at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
         at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
         at $Proxy18.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
         at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
         at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
         at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
         at $Proxy14.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
         at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:286)
         at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
         at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
         at $Proxy18.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
         at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
         at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
         at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
         at $Proxy14.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    --------------- nested within: ------------------
    weblogic.management.DeploymentException: Error creating data source - with nested exception:
    [java.lang.Exception: weblogic.common.ResourceException: DataSource(rgexample) can't be created with non-existent Pool (connection or multi) (demopool)
         at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:126)
         at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:262)
         at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
         at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
         at $Proxy18.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
         at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
         at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
         at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
         at $Proxy14.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
         at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:295)
         at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
         at $Proxy18.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
         at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
         at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
         at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
         at $Proxy14.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
    --------------- nested within: ------------------
    weblogic.management.DistributedOperationUpdateException: Error creating data source - with nested exception:
    [weblogic.management.DeploymentException: Error creating data source - with nested exception:
    [java.lang.Exception: weblogic.common.ResourceException: DataSource(rgexample) can't be created with non-existent Pool (connection or multi) (demopool)
         at weblogic.jdbc.common.internal.JdbcInfo.validateConnectionPool(JdbcInfo.java:126)
         at weblogic.jdbc.common.internal.JdbcInfo.startDataSource(JdbcInfo.java:262)
         at weblogic.jdbc.common.internal.JDBCService.addDeploymentx(JDBCService.java:293)
         at weblogic.jdbc.common.internal.JDBCService.addDeployment(JDBCService.java:270)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:375)
         at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:154)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:750)
         at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:732)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:435)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:596)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
         at $Proxy18.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
         at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
         at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
         at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
         at $Proxy14.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:234)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:210)
         at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:607)
         at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:437)
         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.invoke(RemoteMBeanServerImpl.java:928)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:472)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:200)
         at $Proxy18.addDeployment(Unknown Source)
         at weblogic.management.internal.DynamicMBeanImpl.unprotectedUpdateDeployments(DynamicMBeanImpl.java:1802)
         at weblogic.management.internal.DynamicMBeanImpl.access$2(DynamicMBeanImpl.java:1755)
         at weblogic.management.internal.DynamicMBeanImpl$2.run(DynamicMBeanImpl.java:1733)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1729)
         at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:1053)
         at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:371)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1358)
         at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1333)
         at weblogic.management.internal.RemoteMBeanServerImpl.setAttribute(RemoteMBeanServerImpl.java:874)
         at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:326)
         at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:195)
         at $Proxy14.setTargets(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:145)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.se--------------- nested within: ------------------
    weblogic.management.console.utils.SetException: An error occurred while updating Targets-Server on Proxy for RaghuDomain:Name=examples-dataSource-demoPool,Type=JDBCDataSource - with nested exception:
    [java.lang.reflect.InvocationTargetException - with target exception:
    [weblogic.management.DistributedManagementException: Distributed Management [1 exceptions]
    Error creating data source]]
         at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:181)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
         at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1075)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:418)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5517)
         at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:685)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3156)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2506)
         at weblogic.kernel.Exe

  • Error while deploying CMP Bean

    hi all,
    i'm very new in J2EE Technology .I was trying one of the sample application available in sun one examples and sample applicationsm site.
    I have registered a datasource called hari
    in my server instance
    when im deploying the J2EE Application which contains a CMP Bean, when i deploy in the final stage i'm getting an error
    "javax.naming.InvalidNameException:
    error loading c:\j2sdkee1.3.1\repository\c3018a\applications\CMPApp1046345051707Server.jar;nested exception is:
    javax.naming.InvalidNameException:
    Real JNDI name cannot be empty for hari
    can anyone help me to fix this problem ,where exactly i have to mention the real name for this DataSource

    Sounds like there is a resource-ref in your application that
    has not been mapped to a physical datasource in the
    sun-j2ee-ri.xml file.
    e.g. :
    <resource-ref>
    <res-ref-name>jdbc/AccountDB</res-ref-name>
    <jndi-name>jdbc/XACloudscape</jndi-name>
    <default-resource-principal>
    <name>scott</name>
    <password>tiger</password>
    </default-resource-principal>
    </resource-ref>
    See the J2EE Tutorial for additional examples.
    --ken

  • Exception not being thrown

    I added code to throw an exception when a user-initiated search returned no rows, but for some reason, the exception isn't being raised on the browser. Code:
    mnVo.setWhereClause(queryparams);
    mnVo.executeQuery();
    if(mnVo.first() == null)
    throw new oracle.jbo.JboException("No records on file");
    If I step through the code, I see the throw statement executing, but it is never surfaced. What does get raised is:
    JBO-29000: Unexpected exception caught: java.lang.ArrayIndexOutOfBoundsException, msg=0
    This gets raised (apprently) outside of my code, and the debugger can't find it. What do I need to have in place in order to handle this condition?

    I'm a java newby, so I 'think' I understand what you mean, and I 'think' I already did? Here's the code now:
    if(mnVo.first() == null)
    throw new oracle.jbo.JboException("No records on file");
    catch (Exception e)
    { throw new oracle.jbo.JboException("No Records Found");}
    This behaves identically as it did before...I can see it being thrown in the debugger, but the browser never gets it, and it gets the other error which is pretty non-sensical to a user.
    I failed to mention earlier that this code is in the Application Module in the Client Interface, in case that makes a difference?

  • Exception - Deploying CMP bean with Postgres DB

    Hi,
    When I deploy a CMP bean in Weblogic6.1 configured with Postgres Database it throws the following exception.
    <Oct 22, 2002 5:55:10 PM IST> <Error> <J2EE> <Error deploying application EjbTes
    t:
    Unable to deploy EJB: EjbTest.jar from EjbTest.jar:
    Exception: 'java.lang.NullPointerException' while trying to invoke: setB
    eanParamsForCreate at line 25
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:302)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
    at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
    <Oct 22, 2002 5:55:10 PM IST> <Error> <Management> <Error deploying application
    .\config\siptech\applications\EjbTest.jar: java.lang.reflect.UndeclaredThrowable
    Exception>
    Thankx,
    Jagan

    Hi. This isn't a jdbc question, so you'll have better luck posting this to the ejb group.
    Joe
    Jagan wrote:
    Hi,
    When I deploy a CMP bean in Weblogic6.1 configured with Postgres Database it throws the following exception.
    <Oct 22, 2002 5:55:10 PM IST> <Error> <J2EE> <Error deploying application EjbTes
    t:
    Unable to deploy EJB: EjbTest.jar from EjbTest.jar:
    Exception: 'java.lang.NullPointerException' while trying to invoke: setB
    eanParamsForCreate at line 25
    at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:302)
    at weblogic.ejb20.deployer.Deployer.runEJBC(Deployer.java:296)
    at weblogic.ejb20.deployer.Deployer.compileEJB(Deployer.java:684)
    at weblogic.ejb20.deployer.Deployer.deploy(Deployer.java:851)
    <Oct 22, 2002 5:55:10 PM IST> <Error> <Management> <Error deploying application
    .\config\siptech\applications\EjbTest.jar: java.lang.reflect.UndeclaredThrowable
    Exception>
    Thankx,
    Jagan

  • SQL error during CMP bean deployment

    Hi,
    the following exception occures when I deploy a CMP bean to a remote OC4J server (it works fine when I use the internal OC4J process of JDeveloper using the same JDBC connection):
    Auto-unpacking E:\Apps\OC4J\j2ee\home\applications\statful.ear... done.
    Auto-deploying statful (Assembly had been updated)...
    SQL error: E/A-Exception: The Network Adapter could not establish the connection
    Warning: Error creating table: E/A-Exception: The Network Adapter could not esta
    blish the connection
    Auto-deploying statful.jar (ejb-jar.xml had been touched since the previous depl
    oyment)... SQL error: E/A-Exception: The Network Adapter could not establish the
    connection
    Warning: Error creating table: E/A-Exception: The Network Adapter could not esta
    blish the connection
    done.
    The JDBC connection string is "jdbc:oracle:thin:@guopingc:1521:localdb", and it works well if I use it in another java client, like DBVisualizer.
    Thanks!
    CU, Chris

    Chris,
    Thanks for that quick little tip! I've been having the same error and just spent close to two hours looking through newsgroups et al. for help. Naturally, they all suggest that the database isn't started or the connection data is incorrect. I did what you suggested and now I'm back in business!
    If any Oracle or Atlassian oc4j folks are reading - I was receiving a "Network adaptor could not establish a connection" message when deploying to oc4j from jdeveloper. (To Oracle 8.1.7 w/ jdeveloper 9.0.2.8.2 and ocj4 that came with that.) HOWEVER #1, "test"ing both my app server connnection and database connection worked perfectly from within jdeveloper. I could even open the DB connection and view the db contents. HOWEVER #2, my deployment worked for a while before I started seeing this error. That is, I first created 4 EJBs and deployedc to the container completely successfully. I made some changes and re-deployed successfully. Then I added 3 more beans and started getting the error! This should be fixed.....

  • Exception is being thrown

    I tried out this small code for using hashset but it gives exceptions. I have no idea why is it so?
    import java.util.HashSet;
    import java.util.Iterator;
    import java.util.Set;
    class Students implements Comparable
         private String name;
         private float gpa = 0.0F;
         Students(String n, float g)
              name = n;
              gpa = g;
         Students(){}
         public String getName() {
              return name;
         public float getGpa() {
              return gpa;
         @Override
         public int compareTo(Object o) {
              // TODO Auto-generated method stub
              if(this.getGpa() > ((Students)o).getGpa())
                   return 1;
              else if(this.getGpa() < ((Students)o).getGpa())
                   return -1;
              else
                   return 0;
         public boolean equals(Object o){
              if(this.getGpa() == ((Students)o).getGpa())
                   return true;
              else
                   return false;
         public int hashCode(){
              return (int)(10*gpa);
    public class HashFunction {
         public static void main(String args[]){
              Students s1= new Students("Fred", 3.0F);
              Students s2 = new Students("Sam", 3.1F);
              Students s3 = new Students("Steve", 3.5F);
              Set s = new HashSet();
              s.add(s1);
              s.add(s2);
              s.add(s3);
              Iterator i = s.iterator();
              while(i.hasNext())
                   System.out.println(((Students)i.next()).getName() + " " + ((Students)i.next()).getGpa());
    }The exception trace that is generated is as follows:
    Exception in thread "main" java.util.NoSuchElementException
         at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796)
         at java.util.HashMap$KeyIterator.next(HashMap.java:828)
         at HashFunction.main(HashFunction.java:68)

    roaan wrote:
    I had one more question. I am reading from the file like this
              String word;
              word = file.nextWord();
              try{
                   while(word != null)
                        word = word.toLowerCase();
                        wf.put(word);
                        word = file.nextWord();
              catch(Exception e){
                   e.printStackTrace();
         }Now when the end of the file is reached word contains null and throws a nullpointer exception. I am catching that exception but is there a way out that when my word is null i should simply exit out of the loop (i check that word is not equal to null in my while loop but still it throws an excpetion).Nothing there can throw NPE from word being null. The only possibilities of NPE in the code you posted are
    1. if file is null
    2. if wf is null
    3. if NPE is being thrown inside nextWord(), which has nothing to do with word being null.
    Once you make sure that the above are not happening, that code will be fine and you won't need to catch NPE. And in fact, catching NPE like that is bad practice anyway.

  • Why is exception not thrown in AseCommand when "Truncation error occurred"?

    In the below SQL, data is written to SOURCE and from there to TARGET.
    The DECIMAL columns in TARGET are deliberately smaller than those in SOURCE (eg a DECIMAL (12, 2) column populated from a DECIMAL (19,11) source).
    When I run this in an Query tool (eg, SqlDbx) I get the messages:
    "Truncation error occurred
    Command has been aborted"
    But when I run this using the .net Client (supplied with the Developer Edition of ASE 16.0) no exception is thrown (the INSERT fails though).  The method is AseCommand.ExecuteNonQuery().
    Is this deliberate? 
    Is this believed to be correct?
    How can I tell that a truncation error has been raised?
    Thanks
    IF OBJECT_ID ('dbo.TARGET') IS NOT NULL
      DROP TABLE dbo.TARGET
    GO
    CREATE TABLE dbo.TARGET
      S_Name_NVARCHAR NVARCHAR (50) null,
        S_RedComponent_DEC_15_6 decimal(15, 6) NULL,
        S_BlueComponent_DEC_12_2 decimal(12, 2) NULL, 
        S_GreenComponent_DEC_18_10 decimal(18, 10) NULL
    GO
    IF OBJECT_ID ('dbo.SOURCE') IS NOT NULL
      DROP TABLE dbo.SOURCE
    GO
    CREATE TABLE dbo.SOURCE
      Name_NVARCHAR      NVARCHAR (2000) NULL,
      RedComponent_DEC   DECIMAL (19,11) NULL,
      GreenComponent_DEC DECIMAL (19,11) NULL,
      BlueComponent_DEC  DECIMAL (19,11) NULL
    GO
    INSERT INTO dbo.SOURCE (Name_NVARCHAR, RedComponent_DEC, GreenComponent_DEC, BlueComponent_DEC)
    VALUES ('Beige', 272.195, 272.195, 244.42)
    GO
    INSERT INTO dbo.SOURCE (Name_NVARCHAR, RedComponent_DEC, GreenComponent_DEC, BlueComponent_DEC)
    VALUES ('Bisque', 283.305, 253.308, 217.756)
    GO
    INSERT INTO dbo.SOURCE (Name_NVARCHAR, RedComponent_DEC, GreenComponent_DEC, BlueComponent_DEC)
    VALUES ('Black', 0, 0, 0)
    GO
    INSERT INTO dbo.SOURCE (Name_NVARCHAR, RedComponent_DEC, GreenComponent_DEC, BlueComponent_DEC)
    VALUES ('BlanchedAlmond', 283.305, 261.085, 227.755)
    GO
    --Is there data to migrate?
    SELECT LEFT( S.Name_NVARCHAR,8000),S.GreenComponent_DEC,S.GreenComponent_DEC,S.GreenComponent_DEC
    FROM (
    SELECT * FROM SOURCE
    ) S
    --Yes.migrate away!
    --Next line gives a truncation error occurred in Sybase (gives a truncation error occurred in a query tool
    --but fails silently in AseCommand.ExecuteNonQuery).
    INSERT dbo.TARGET (S_Name_NVARCHAR,S_RedComponent_DEC_15_6,S_BlueComponent_DEC_12_2,S_GreenComponent_DEC_18_10)
    SELECT LEFT( S.Name_NVARCHAR,8000),S.GreenComponent_DEC,S.GreenComponent_DEC,S.GreenComponent_DEC
    FROM (
    SELECT * FROM SOURCE
    ) S
    select * from dbo.TARGET

    Hi Dave,
    I am consulting internally on this. To my understanding, this behavior is based on the ASE severity level, as returned in the TDS_EED token. AseExceptions are thrown when severity level is 11 or higher.
    Our docs are not explanatory in this regard.  Once I get clarification we will provide something in the form of wiki or KBA or doc bug to further explain the detail.  Apologize for the delay and problems this caused. I guess since the command is aborted by ASE, therefore no insertion occurs, even though ASE indicates truncation occurs prior - makes this confusing.
    The message severity, etc is controlled by ASE and the client is just following suit according to the TDS spec. Its just lacking in the client docs. This can be remedied.
    ASE does provide the option to allow truncation and not abort.  It's a set command:
    Enter a query:
    1 > set arithabort numeric_truncation off
    Enter a query:
    1 > INSERT dbo.TARGET (S_Name_NVARCHAR,S_RedComponent_DEC_15_6,S_BlueComponent_DEC_12_2,S_GreenComponent_DEC_18_10) SELECT LEFT( S.Name_NVARCHAR,8000),S.GreenComponent_DEC,S.GreenComponent_DEC,S.GreenComponent_DEC FROM (SELECT * FROM SOURCE
    ) S
    4 rows Affected.
    Notice though ASE does NOT send truncation message. This is when it is well known and accepted to insert and truncate the numeric data.
    Cheers,
    -Paul

Maybe you are looking for

  • Audio reference levels across applications

    Hi, After many mysterious problems using Final Cut Studio with my m-audio 1010 digital audio card I am completely confussed as to why audio levels are so inconsistent across say, Final Cut, DVD Studio, Soundtrack pro and even iTunes. An edit in Final

  • I can't open mail app in my mac?

    because mail is different version of my mac

  • Query  need suggestions

    MASTER TABLE select num_jd, jd_veh, jd_vip from ent_RENT 3845     3896     3897 3828     287     288 3827     285     286 CHILD TABLE JD_VEH_rent select jd_veh from jd_veh_rent 3896 child table hd_vip_rent select jd_vip from jd_vip_rent 3897 Now i wa

  • About Time series Functions

    Hi Gurus, How to implement time series(i.e. year ago,qtr ago,month ago) functions with out using any functions in 10G. how many types of imports we have in the physical layer. Thanks,

  • Can't see review stars and comments of clothing websites

    Example #1= "Landsend.com", click "men", click "pants" http://www.landsend.com/ix/mens-clothing/Men/Mens-Pants/index.html?seq=1~2~3&catNumbers=1~23&visible=1~2~1&cm_re=D-4-8&pageSize=72 Can see pants and pictures, but where the usual 1-5 *s are, it s