Problem looking up bean

Hi,
I'm getting the following exception when trying to lookup a bean from another bean
java.lang.NullPointerException
at com.evermind.server.ejb.DelayedHomeBinding.getInstance(DelayedHomeBinding.java:44)
at com.evermind.naming.MapContext.lookup(MapContext.java:53)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:122)
at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:64)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.smarthaven.component.taxonomy.TaxonomyEntityBean.ejbRemove(TaxonomyEntityBean.java:134)
at TaxonomyEntity_EntityBeanWrapper36.__removeCore(TaxonomyEntity_EntityBeanWrapper36.java:211)
at TaxonomyEntity_EntityBeanWrapper36.remove(TaxonomyEntity_EntityBeanWrapper36.java:162)
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:64)
I'm having two entity beans: a TaxonomyEntityBean and a TaxonomyNodeEntityBean. The TaxonomyEntityBean uses the TaxonomyNodeEntityBean when it's removed. Using a standalone testclient I'm creating one TaxonomyEntityBean and a couple of TaxonomyNodeEntityBeans. After that I'm REMOVING the TaxonomyEntityBean, which, in his turn, tries to lookup the TaxonomyNodeEntityBeanHome (to remove them as well). The second lookup (from bean to bean) fails. The lookup from the client to the first bean is done using JNDI, the second (in the server) is done using references. I'm sure the ejb-jar.xml file and the orion-ejb-jar.xml files are correct. Xml snippets from the TaxonomyEntity are shown below (TaxonomyNodeEntity works correctly, so left out). Also, some code is shown.
Could anybody help ;-)
thnx,
Alef
<!-- TAXONOMYENTITY (ejb-jar) -->
<entity id="TaxonomyEntity">
<ejb-name>smarthaven.taxonomy.TaxonomyEntity</ejb-name>
<home>com.smarthaven.component.taxonomy.TaxonomyEntityHome</home>
<remote>com.smarthaven.component.taxonomy.TaxonomyEntity</remote>
<ejb-class>com.smarthaven.component.taxonomy.TaxonomyEntityBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Long</prim-key-class>
<reentrant>True</reentrant>
<cmp-field id="smarthaven.taxonomy.TaxonomyEntity_id">
<field-name>id</field-name>
</cmp-field>
<cmp-field id="smarthaven.taxonomy.TaxonomyEntity_name">
<field-name>name</field-name>
</cmp-field>
<primkey-field>id</primkey-field>
<ejb-ref id="EjbRef_6">
<description>This is the link to the TaxonomyNodeEntity</description>
<ejb-ref-name>ejb/smarthaven/taxonomy/TaxonomyNodeEntity</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>com.smarthaven.component.taxonomy.TaxonomyNodeEntityHome</home>
<remote>com.smarthaven.component.taxonomy.TaxonomyNodeEntity</remote>
<ejb-link>smarthaven.taxonomy.TaxonomyNodeEntity</ejb-link>
</ejb-ref>
<security-role-ref id="SecurityRoleRef_3">
<role-name>everyone</role-name>
<role-link>everyone</role-link>
</security-role-ref>
</entity>
<!-- TAXONOMYNODENTITY (orion-ejb-jar) -->
<entity-deployment name="smarthaven.taxonomy.TaxonomyEntity"
location="smarthaven/taxonomy/TaxonomyEntity" table="t_taxonomy" data-
source="jdbc/SmartHavenConnectionPool">
<primkey-mapping>
<cmp-field-mapping name="id" persistence-name="id"/>
</primkey-mapping>
<cmp-field-mapping name="name" persistence-name="name"/>
<finder-method query="">
<method>
<ejb-name>smarthaven.taxonomy.TaxonomyEntity</ejb-name>
<method-name>findAll</method-name>
</method>
</finder-method>
<finder-method query="$name = $1">
<method>
<ejb-name>smarthaven.taxonomy.TaxonomyEntity</ejb-name>
<method-name>findByName</method-name>
<method-params>
<method-param>java.lang.String</method-param>
</method-params>
</method>
</finder-method>
<finder-method query="$id = $1">
<method>
<ejb-name>smarthaven.taxonomy.TaxonomyEntity</ejb-name>
<method-name>findByTaxonomy</method-name>
<method-params>
<method-param>java.lang.Long</method-param>
</method-params>
</method>
</finder-method>
<ejb-ref-mapping location="smarthaven/taxonomy/TaxonomyNodeEntity"
name="ejb/smarthaven/taxonomy/TaxonomyNodeEntity"/>
</entity-deployment>
// CODE THAT LOOKS UP THE NODENTITYBEAN TO REMOVE THEM (this fails!)
TaxonomyNodeEntityHome nodeHome = null;
try {
Context context = new InitialContext();
// IT FAILS HERE (with the exception as shown above)
Object result = context.lookup("java:comp/env/ejb/smarthaven/taxonomy/TaxonomyNodeEntity);
nodeHome = (TaxonomyNodeEntityHome)PortableRemoteObject.narrow(
result, TaxonomyNodeEntityHome.class);
} catch (NamingException e) {
throw new EJBException("TaxonomyNodeEntityHome (bound to " +
"java:comp/env/ejb/smarthaven/taxonomy/TaxonomyNodeEntity" +
") could not be found");

OK,rebuilt all my code & deployed making sure it only referenced oc4j system classes and .... it made no difference.
Then I noticed the application.log for my application, when the client tries to connect get the following exception in the application.log:
04/01/02 15:32 Error creating home instance for Security
java.lang.NoClassDefFoundError: com/vwssys/drive/classes/exception/DriveException
     at SecurityHome_StatelessSessionHomeWrapper71.<init>(SecurityHome_StatelessSessionHomeWrapper71.java:7)
     at java.lang.Class.newInstance0(Native Method)
     at java.lang.Class.newInstance(Class.java:237)
     at com.evermind.server.ejb.deployment.SessionBeanDescriptor.createHomeInstance(SessionBeanDescriptor.java:78)
     at com.evermind.server.ejb.EJBPackageDeployment.getHomeInstance(EJBPackageDeployment.java:580)
     at com.evermind.server.ejb.DelayedHomeBinding.getInstance(DelayedHomeBinding.java:42)
     at com.evermind.server.rmi.RMIBinding.getValue(RMIBinding.java:33)
     at com.evermind.server.rmi.RMIContext.getBinding(RMIContext.java:845)
     at com.evermind.server.rmi.RMIContext.lookupLocalObject(RMIContext.java:660)
     at com.evermind.server.rmi.RMIConnection.handleLookupObject(RMIConnection.java:652)
     at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:391)
     at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
04/01/02 15:34 Error creating home instance for Security
Now com/vwssys/drive/classes/exception/DriveException
is one my supporting classes, all of which I have jarred up into a jar file vwsclasses.jar and put into the j2ee/home/lib directory so that deployed ejbs should pick them up but it has not.
I then added it to the ejbSecurity.jar but it has not made any difference.
Any Ideas ?
thanks paul

Similar Messages

  • Problems with managed beans on included JSPs

    I've got a problem with managed beans within an included JSP
    The included page looks as follows:
    <f:subview id="includedPage" binding="#{testBean.component}">
         <h:outputText value="Hallo from the included page"/>
         <h:outputText value="#{testBean.msg}" />
    </f:subview>The including page is also very simple
    <f:view>
         <html>
              <head>
                   <title>Test include</title>
              </head>
              <body>
                   <h:outputText value="Hello from the including page"/>               
                   <jsp:include page="included.jsp"/>
              </body>
         </html>
    </f:view>The testBean is a managed bean with page scope and looks as follows:
    public class TestBean {
        public UIComponent fComponent;
        public TestBean() {
            System.out.println("TestBean Constructor called " + toString() );
        public String getMsg() {
            return "Component = " + fComponent ;
        public void setComponent(UIComponent component) {
            System.out.println("setComponent called " + component);       
            fComponent = component;
        public UIComponent getComponent() {
            System.out.println("getComponent called " + fComponent);
            return fComponent;
    }The output to the console is:
    TestBean Constructor called de.kvb.athena.web.beans.TestBean@1bc16f0
    getComponent called null
    TestBean Constructor called de.kvb.athena.web.beans.TestBean@18622f3
    setComponent called javax.faces.component.UINamingContainer@160877b
    TestBean Constructor called de.kvb.athena.web.beans.TestBean@5eb489
    and the page displays
    Hello from the include page
    Hello from the included page Component = null
    Can anyone explain this behavior ? What's the reason that the page displays
    Component = null
    and is it possible to display the parent naming container (subview) this way ?
    how ?
    Thanks

    By "page scope" I assume you mean "none"? If so JSF creates a new bean for each place it's referenced. The closest to the behavior you want, once per "page", is really request scope.
    (I'm not sure why the constructor is being called thrice, though. I should look into this.)
    I assume you want a bean-per-subview scenario. This should be doable, and one way that allows a dynamic number of subviews would be as follows:
    --create a "manager" bean in request scope
    --give it get/set methods that retrieves a Map of "TestBean" instances; the idea is that each subview use a different key "s1", "s2", etc
    back the manager method with Map implementation that checks if there's already a TestBean associated with the key returns it if yes, else null.
    If that seems messy, the component solution is hairy :-) See http://forum.java.sun.com/thread.jspa?threadID=568937&messageID=2812561
    --A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error while looking up bean from Eclipse plugin

    Hi all,
       I am developing an Eclipse plugin which calls session bean deployed in some j2ee engine. But I am facing a problem while I try to look up the bean. It gives me an error saying <i>"com.sap.engine.services.jndi.persistent.UnsatisfiedReferenceImpl"</i>.
    I tried print out the UnsatisfiedReferenceImpl stacktrace and it says
    <i>java.lang.ClassNotFoundException: com.sap.engine.services.ejb.session.stateless_sp5.SerializedHomeProxy</i>.
    Does anyone have any idea?
    Regards,
    Satyajit.
    Message was edited by:
            Satyajit Chakraborty

    I have solved the problem. The problem was with an extra classpath entry.
    Regards,
    Satyajit.

  • JNDI Naming Problem accessing Session Bean from Message Driven Bean

    Hi,
         I am facing a very strange problem in JNDI look up accessing a Session Bean from a Message Driven Bean. I have a session fa�ade bean(Remote Bean) which is being called from Struts Action class getting the home reference from the ServiceLocator (I have implemented ServiceLocator pattern to obtain JNDI reference for all EJBs). When I am calling the session fa�ade EJB from the Struts Action class everything is working fine.
         But when I am trying to call the same EJB from my Message Driven Bean, I am getting a JNDI exception (NameNotFoundException - No Object bound to name �java:comp/env/ejb/EJBJNDIName�). I am trying to get the remote reference from the same ServiceLocator which is successfully providing me a reference while calling from the struts action class. But the same ServiceLocator is not able to provide me a reference while calling from the Message Driven Bean. If I use the JNDI name directly like �EJBJNDIName� in the lookup it is working fine. The lookup for the name is working fine and I am able to call the Session Fa�ade bean with that reference.
         I am really not sure what exactly the problem is. If I have any problem in the ServiceLocator, it should have given me the same error while calling from Struts Action class. But it is working fine with the full name �java:comp/env/ejb/EJBJNDIName� calling from the struts action class. I am not sure whether Message Driven Bean has something to do with it. Why I am not able to get a reference of the EJB with the full name? Please Help.
    Thanks
    Amit

    Hi Bhagya,
    Thanks for your response. I think from EJB container we can call Local EJBs with the full JNDI name. The session facade bean which is being called is a remote bean. From the session facade bean I am calling a local stateless session bean for database access. I am getting the reference of the local EJB from my session facade bean with full JNDI name "java:comp/env/ejb/EJBJNDIName". It is working fine with out any problem. My servicelocator is able to provide me the reference of the local EJB from the session facade remote bean with Full JNDI name. I am only having this problem calling from the MDB. I am really not sure whether what is causing it?
    Thanks
    Amit

  • Problem Creating APPLICATION Bean

    As you all know, JSF application bean are used to store information across all user sessions.
    When I create an application bean class with sun creator 2 release, my IDE freezes. And I have to restart creator and then it enters a slump again and the loop continues.
    Please could someone guide me.
    I intend to use the application bean to cache an object that is required by all users so that once the app bean is initialized then it can be available across all user session. Then each user can take that object and use it for it operations.
    I will be glad if I could get help pretty soon.

    tnks,
    I have tried to use the default ApplicationBean1 that gets created when u create a new project.
    To my amazement, when I embed codes in constructor or init() creator freeze-up and i have to shutdown abruptly and restart. The problem persist until i use the file system to expunge the code i'd earlier embedded.
    Looking forward to hepls from everyone

  • Problem looking up datasorce using JNDI

    Hi, I'm trying to access the oracle 8i database using datasource JNDI.My problem is connection was successful.but fetching operation failed..not able to get the values from the database.
    Pls find below the method used in bean and error returned.
    public Connection getConnection()
                        InitialContext ctx = null;
                        String dsname = "jdbc/gpadb";
                        try
                        Hashtable parms = new Hashtable();
              parms.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
                        ctx = new InitialContext(parms);
                        datasource = (DataSource)ctx.lookup(dsname);
                        objConnection = datasource.getConnection();
                        com.netscape.server.jdbc.DataSourceImpl dsi = (com.netscape.server.jdbc.DataSourceImpl)datasource;
              if(objConnection != null)
              System.out.println("*********Connection Successful*********"+objConnection);
                   System.out.println("dsi.getUserName(): >" + dsi.getUserName() + "<");
                   System.out.println("dsi.getPassWord(): >" + dsi.getPassWord() + "<");
                   System.out.println("dsi.getDataBase(): >" + dsi.getDataBase() + "<");
                   System.out.println("dsi.getDataSource(): >" + dsi.getDataSource() + "<");
                   System.out.println("dsi.getDriverType(): >" + dsi.getDriverType() + "<");
                   return objConnection;
                   else
              System.out.println("*********Connection not Successful*********");
                   return objConnection;
         catch(SQLException e) {
         e.printStackTrace(System.out);
         }catch(Exception e){
         e.printStackTrace(System.out);
    return objConnection;
    public java.util.Vector getAllCountries(int intLanguageid) {
              Vector                objVcountry=new Vector();
              Connection               objConn =null;
              CallableStatement     objCstmt =null;
              ResultSet                objRs =null;
              try
              objConn = getConnection();
              if (objConn != null)
                        String query = "begin ? := Pkg_common.Fn_GetCountries(?,?,?,?); end;";
                        objCstmt = objConn.prepareCall(query);
                        objCstmt.registerOutParameter(1,OracleTypes.CURSOR);          //To register result set as out parameter
                        objCstmt.registerOutParameter(2,Types.INTEGER);                    //To register Error No as out parameter
                        objCstmt.registerOutParameter(3,Types.VARCHAR);                    //To register Error desc as out parameter
                        objCstmt.registerOutParameter(4,Types.INTEGER);                    //To register Record count as out parameter
                        objCstmt.setInt(5,intLanguageid);                                   //To pass the Language id as i/p parameter
                                                                                                   // 1 - English , 2 - Arabic
                        objCstmt.execute();
                   int intErrnum = objCstmt.getInt(2);                              //Fetch the Error no returned by the DB
                   int intRowcount = objCstmt.getInt(4);                              //To know the no.of records returned by Db
                   if (objVcountry != null)
                        objVcountry.removeAllElements();
                        objVcountry.addElement(objCstmt.getInt(2)+" ");                    //To return the error no
                   objVcountry.addElement(objCstmt.getString(3));                    //To return error description
                   if ((intErrnum == 0) && (intRowcount >0))
                        objRs = (ResultSet) objCstmt.getObject(1);
                             while (objRs.next())
                                  objVcountry.addElement(objRs.getString("COUNTRY_ID"));
                                  objVcountry.addElement(objRs.getString("COUNTRY_NAME"));
                                  objVcountry.addElement(objRs.getString("COUNTRY_CHAR"));
                        } else {
                        System.out.println("Failed to fetch the Countries :" + objCstmt.getString(3));
                        return objVcountry;
              } else {
                        System.out.println("Failed to get database connection in the Online Track & Trace service");
                                  objVcountry.addElement("-9999");
                        objVcountry.addElement(" Database connection Failed ");
                        return objVcountry;
              } catch (SQLException e){
                        System.out.println("Failed to fetch the Countries " );
                        if (objVcountry != null)
                             objVcountry.removeAllElements();
                        objVcountry.addElement("-9057");
         objVcountry.addElement(" Failed to fetch the Countries ");
              return objVcountry;
              } catch (Exception e){
                        System.out.println("Failed to fetch the status of Ministry Of Labour cards.");
                        if (objVcountry != null)
                             objVcountry.removeAllElements();
                        objVcountry.addElement("-9057");
         objVcountry.addElement(" Failed to fetch the Countries ");
              return objVcountry;
              } finally{
                        try{
                                  if(objRs!=null)      objRs.close();
                                  if(objCstmt!=null)     objCstmt.close();
                                  if(objConn!=null)     objConn.close();
                             } catch(Exception e){
                                  System.out.println("Got Exception while releasing the objects in getAllCountries() method");
                                  e.printStackTrace();
              return objVcountry;
    This was the error thrown when i run my application
    Going *********
    Executing getHomeObject()method in Wrapper class
    Retrieving JNDI initial context
    Looking up Online track trace bean home interface
    Looking up: java:comp/env/ejb/onlinetracktrace
    *********Connection Successful*********com.netscape.server.jdbc.Connection@7b4703
    dsi.getUserName(): >mack<
    dsi.getPassWord(): >mack<
    dsi.getDataBase(): >gpa.world<
    dsi.getDataSource(): >gpa<
    dsi.getDriverType(): >ORACLE_OCI<
    Failed to fetch the Countries
    Error Occured in the OnlinetracktraceBean method getAllCountries()
    Going *********
    Going *********
    Null text data??
    [03/Jan/2002 17:11:36:4] info: --------------------------------------
    [03/Jan/2002 17:11:36:4] info: jsp.APPS.gpatracktrace.TTMOIncoming: init
    [03/Jan/2002 17:11:36:4] info: --------------------------------------
    Going *********
    [03/Jan/2002 17:12:32:4] error: EB-serialize_ex: instance gpa.onlinetracktrace.SBSLOnlinetracktraceBean@3f5555 threw an exception
    during serialization, ex = java.io.NotSerializableException: com.netscape.server.jdbc.DataSourceImpl
    [03/Jan/2002 17:12:32:4] error: Exception Stack Trace:
    java.io.NotSerializableException: com.netscape.server.jdbc.DataSourceImpl
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at com.kivasoft.eb.EBObjectBase.serializeImpl(Unknown Source)
    at com.kivasoft.eb.EBObjectBase.releaseStatefulImpl(Unknown Source)
    at com.kivasoft.eb.EBObjectBase.isTimeout(Unknown Source)

    Hi, I'm trying to access the oracle 8i database using datasource JNDI.My problem is connection was successful.but fetching operation failed..not able to get the values from the database.
    Pls find below the method used in bean and error returned.
    public Connection getConnection()
                        InitialContext ctx = null;
                        String dsname = "jdbc/gpadb";
                        try
                        Hashtable parms = new Hashtable();
              parms.put("java.naming.factory.initial", "com.sun.jndi.cosnaming.CNCtxFactory");
                        ctx = new InitialContext(parms);
                        datasource = (DataSource)ctx.lookup(dsname);
                        objConnection = datasource.getConnection();
                        com.netscape.server.jdbc.DataSourceImpl dsi = (com.netscape.server.jdbc.DataSourceImpl)datasource;
              if(objConnection != null)
              System.out.println("*********Connection Successful*********"+objConnection);
                   System.out.println("dsi.getUserName(): >" + dsi.getUserName() + "<");
                   System.out.println("dsi.getPassWord(): >" + dsi.getPassWord() + "<");
                   System.out.println("dsi.getDataBase(): >" + dsi.getDataBase() + "<");
                   System.out.println("dsi.getDataSource(): >" + dsi.getDataSource() + "<");
                   System.out.println("dsi.getDriverType(): >" + dsi.getDriverType() + "<");
                   return objConnection;
                   else
              System.out.println("*********Connection not Successful*********");
                   return objConnection;
         catch(SQLException e) {
         e.printStackTrace(System.out);
         }catch(Exception e){
         e.printStackTrace(System.out);
    return objConnection;
    public java.util.Vector getAllCountries(int intLanguageid) {
              Vector                objVcountry=new Vector();
              Connection               objConn =null;
              CallableStatement     objCstmt =null;
              ResultSet                objRs =null;
              try
              objConn = getConnection();
              if (objConn != null)
                        String query = "begin ? := Pkg_common.Fn_GetCountries(?,?,?,?); end;";
                        objCstmt = objConn.prepareCall(query);
                        objCstmt.registerOutParameter(1,OracleTypes.CURSOR);          //To register result set as out parameter
                        objCstmt.registerOutParameter(2,Types.INTEGER);                    //To register Error No as out parameter
                        objCstmt.registerOutParameter(3,Types.VARCHAR);                    //To register Error desc as out parameter
                        objCstmt.registerOutParameter(4,Types.INTEGER);                    //To register Record count as out parameter
                        objCstmt.setInt(5,intLanguageid);                                   //To pass the Language id as i/p parameter
                                                                                                   // 1 - English , 2 - Arabic
                        objCstmt.execute();
                   int intErrnum = objCstmt.getInt(2);                              //Fetch the Error no returned by the DB
                   int intRowcount = objCstmt.getInt(4);                              //To know the no.of records returned by Db
                   if (objVcountry != null)
                        objVcountry.removeAllElements();
                        objVcountry.addElement(objCstmt.getInt(2)+" ");                    //To return the error no
                   objVcountry.addElement(objCstmt.getString(3));                    //To return error description
                   if ((intErrnum == 0) && (intRowcount >0))
                        objRs = (ResultSet) objCstmt.getObject(1);
                             while (objRs.next())
                                  objVcountry.addElement(objRs.getString("COUNTRY_ID"));
                                  objVcountry.addElement(objRs.getString("COUNTRY_NAME"));
                                  objVcountry.addElement(objRs.getString("COUNTRY_CHAR"));
                        } else {
                        System.out.println("Failed to fetch the Countries :" + objCstmt.getString(3));
                        return objVcountry;
              } else {
                        System.out.println("Failed to get database connection in the Online Track & Trace service");
                                  objVcountry.addElement("-9999");
                        objVcountry.addElement(" Database connection Failed ");
                        return objVcountry;
              } catch (SQLException e){
                        System.out.println("Failed to fetch the Countries " );
                        if (objVcountry != null)
                             objVcountry.removeAllElements();
                        objVcountry.addElement("-9057");
         objVcountry.addElement(" Failed to fetch the Countries ");
              return objVcountry;
              } catch (Exception e){
                        System.out.println("Failed to fetch the status of Ministry Of Labour cards.");
                        if (objVcountry != null)
                             objVcountry.removeAllElements();
                        objVcountry.addElement("-9057");
         objVcountry.addElement(" Failed to fetch the Countries ");
              return objVcountry;
              } finally{
                        try{
                                  if(objRs!=null)      objRs.close();
                                  if(objCstmt!=null)     objCstmt.close();
                                  if(objConn!=null)     objConn.close();
                             } catch(Exception e){
                                  System.out.println("Got Exception while releasing the objects in getAllCountries() method");
                                  e.printStackTrace();
              return objVcountry;
    This was the error thrown when i run my application
    Going *********
    Executing getHomeObject()method in Wrapper class
    Retrieving JNDI initial context
    Looking up Online track trace bean home interface
    Looking up: java:comp/env/ejb/onlinetracktrace
    *********Connection Successful*********com.netscape.server.jdbc.Connection@7b4703
    dsi.getUserName(): >mack<
    dsi.getPassWord(): >mack<
    dsi.getDataBase(): >gpa.world<
    dsi.getDataSource(): >gpa<
    dsi.getDriverType(): >ORACLE_OCI<
    Failed to fetch the Countries
    Error Occured in the OnlinetracktraceBean method getAllCountries()
    Going *********
    Going *********
    Null text data??
    [03/Jan/2002 17:11:36:4] info: --------------------------------------
    [03/Jan/2002 17:11:36:4] info: jsp.APPS.gpatracktrace.TTMOIncoming: init
    [03/Jan/2002 17:11:36:4] info: --------------------------------------
    Going *********
    [03/Jan/2002 17:12:32:4] error: EB-serialize_ex: instance gpa.onlinetracktrace.SBSLOnlinetracktraceBean@3f5555 threw an exception
    during serialization, ex = java.io.NotSerializableException: com.netscape.server.jdbc.DataSourceImpl
    [03/Jan/2002 17:12:32:4] error: Exception Stack Trace:
    java.io.NotSerializableException: com.netscape.server.jdbc.DataSourceImpl
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:845)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1567)
    at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:453)
    at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:911)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:342)
    at com.kivasoft.eb.EBObjectBase.serializeImpl(Unknown Source)
    at com.kivasoft.eb.EBObjectBase.releaseStatefulImpl(Unknown Source)
    at com.kivasoft.eb.EBObjectBase.isTimeout(Unknown Source)

  • Problem with java beans and jsp on web logic 6.0 sp1

              HI ,
              I am using weblogic6.0 sp1.
              i have problem with jsp and java beans.
              i am using very simple java bean which stores name and email
              from a html form.
              but i am getting following errors:
              Full compiler error(s):
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              ^
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              ^
              D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:94:
              cannot resolve symbol
              symbol : class userbn
              location: class jsp_servlet._savename2
              ud = (userbn) java.beans.Beans.instantiate(getClass().getClassLoader(),
              "userbn"); //[ /SaveName2.jsp; Line: 7]
              ^
              3 errors
              in which directory should i place java bean source file(.java file)
              here is my jsp file:
              <%@ page language = "java" contentType = "text/html" %>
              <html>
              <head>
              <title>bean2</title>
              </head>
              <body>
              <jsp:usebean id = "ud" class = "userbn" >
              <jsp:setProperty name = "ud" property = "*" />
              </jsp:usebean>
              <ul>
              <li> name: <jsp:getProperty name = "ud" property = "name" />
              <li> email : <jsp:getProperty name = "ud" property = "email" />
              </ul>
              </body>
              <html>
              here is my bean :
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              import java.io.*;
              public class userbn implements Serializable
                   private String name ;
                   private String email;
                   public void setName(String n)
                        name = n;
                   public void setEmail(String e)
                        email = e;
                   public String getName()
                        return name;
                   public String getEmail()
                        return email;
                   public userbn(){}
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              pls help me.
              Thanks
              sravana.
              

              You realy can do it like Xiang says, but the better way is to use packages. That's
              the way BEA is designed for. If you use packages you can but your bean classes
              in every subfolder beneath Classes. Here for example we have the subfolders test
              and beans:
              You have to declare the package on top of your Bean Source Code:
              package test.beans;
              In your JSP you don't need the import code of Xiang. You only have to refer the
              path of your bean class:
              <jsp:useBean id="testBean" scope="session" class="test.beans.TestBean" />
              There are some other AppServers that only can deploy Java Beans in packages. So
              if you use packages you are always on the right side.
              ciao bernd
              "sravana" <[email protected]> wrote:
              >
              >Thank you very much Xiang Rao, It worked fine.
              >Thanks again
              >sravana.
              >
              >"Xiang Rao" <[email protected]> wrote:
              >>
              >><%@ page import="userbn" language = "java" contentType = "text/html"
              >>%> should
              >>work for you.
              >>
              >>
              >>"sravana" <[email protected]> wrote:
              >>>
              >>>HI ,
              >>>
              >>>I am using weblogic6.0 sp1.
              >>>
              >>>i have problem with jsp and java beans.
              >>>
              >>>i am using very simple java bean which stores name and email
              >>>
              >>>from a html form.
              >>>
              >>>but i am getting following errors:
              >>>
              >>>________________________________________________________________
              >>>
              >>>Full compiler error(s):
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:89:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> userbn ud = (userbn) //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>D:\bea4\wlserver6.0sp1\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myserver\jsp_servlet\_savename2.java:94:
              >>>cannot resolve symbol
              >>>symbol : class userbn
              >>>location: class jsp_servlet._savename2
              >>> ud = (userbn) java.beans.Beans.instantiate(getClass().getClassLoader(),
              >>>"userbn"); //[ /SaveName2.jsp; Line: 7]
              >>> ^
              >>>3 errors
              >>>
              >>>____________________________________________________________
              >>>
              >>>in which directory should i place java bean source file(.java file)
              >>>
              >>>here is my jsp file:
              >>>--------------------------------------------------------
              >>>
              >>><%@ page language = "java" contentType = "text/html" %>
              >>><html>
              >>><head>
              >>><title>bean2</title>
              >>></head>
              >>><body>
              >>><jsp:usebean id = "ud" class = "userbn" >
              >>><jsp:setProperty name = "ud" property = "*" />
              >>></jsp:usebean>
              >>><ul>
              >>><li> name: <jsp:getProperty name = "ud" property = "name" />
              >>><li> email : <jsp:getProperty name = "ud" property = "email" />
              >>></ul>
              >>></body>
              >>><html>
              >>>
              >>>-------------------------------------------------------------
              >>>
              >>>here is my bean :
              >>>
              >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              >>>
              >>>import java.io.*;
              >>>
              >>>public class userbn implements Serializable
              >>>{
              >>>
              >>>     private String name ;
              >>>
              >>>     private String email;
              >>>
              >>>     public void setName(String n)
              >>>     {
              >>>
              >>>          name = n;
              >>>     }
              >>>
              >>>     public void setEmail(String e)
              >>>     {
              >>>
              >>>          email = e;
              >>>     }
              >>>
              >>>     public String getName()
              >>>     {
              >>>
              >>>          return name;
              >>>     }
              >>>
              >>>     public String getEmail()
              >>>     {
              >>>
              >>>          return email;
              >>>     }
              >>>
              >>>     public userbn(){}
              >>>}
              >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              >>>
              >>>pls help me.
              >>>Thanks
              >>>sravana.
              >>>
              >>
              >
              

  • Problems after Jelly Bean upgrade

    I upgraded to Jelly Bean when it came available and immediately started noticing problems.  The phone became sluggish in general but most notably the keyboard lagged to the point where texting became problematic.  I was unable to use the gallery app - it would open but pictures either wouldn't load or I couldn't scroll through them.  The camera app also wouldn't scroll through my pictures.  The web browser was sluggish even on a strong wi-fi connection.  I did a factory reset twice and lost a ton of information in the process, in hopes the reset would clear things up.  I ended up going to the store and the rep said he would have a new phone overnighted - which by the way, they gave me a used, sorry, a "certified like-new replacement" phone, not a new one.
    Now that I have my replacement I'm reluctant to upgrade this one to Jelly Bean if I'm going to continue having problems.  Are/were these just an isolated problem, perhaps something in the phone itself and not the software, or are these widespread issues that will hopefully be addressed?  I've read on forums all over that people are complaining of battery drain but I didn't have that issue, just the sluggishness and the inability to access my pics.

        Jbthompson, I know it can be upsetting when an update that should improve your phone's functionality causes it to have problems. I haven't seen the issues you experienced on most Galaxy S III's. Like TheGuyUpNorth stated, most issues are resolved with a factory reset. Do you know if any of your applications were automatically re-installed after the reset? Sometimes the cause of slowness can be related to applications that were compatible with the old OS no longer being compatible with the new one, or conflicting with each other. If you reset and then the same applications are re-installed, then the problem may arise again. Have you completed the JB update on your Galaxy S III replacement yet? Even if you defer or reject the software update, it may come again at a later date. You want to make sure you are ready to complete the update because if it alerts you in the middle of the night and you don't respond, it may go thru. If the battery isn't charged fully that could cause a problem with the update completing. Please let us know if you have any problems with the replacement and we'll be happy to help.
    MarquiaF_VZW
    Follow us on Twitter @VZWSupport

  • Problems setting managed bean property of type Integer

    I got a problem when I use valueBinding #{param.productId} in faces-config.xml for my managed bean:
    My property 'productId' in bean Product is of type Integer, and my bean is in request scope. When I try to invoke some action on page, wich should navigate me to another view - JSF is trying to set productId for current view, and of course it is empty (""), and for the reasons given above I'm getting an error:
    javax.faces.FacesException: Can't set managed bean property: 'applicationId'.
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:576)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:233)
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:256)
    ... 60 more
    Caused by: java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:489)
    at java.lang.Integer.<init>(Integer.java:609)
    at com.sun.faces.config.ManagedBeanFactory.getConvertedValueConsideringPrimitives(ManagedBeanFactory.java:855)
    at com.sun.faces.config.ManagedBeanFactory.setPropertiesIntoBean(ManagedBeanFactory.java:555)
    Should I use requestScope instead of param to have my parameter null, and not "" ?
    If so, how should I pass requestScope parameter using commandLink?

    Hi! I have a problem with setting params too. Probably my one is different.
    I have a jsp page which show a datatable, where I can see a row for each Product. If I click on its name I would navigate to another page that shows product informations, as several ecommerce sites do.
    But I can't understand what and how I must set to inform the details page on which product have to show.
    I read in this forum that it's possible to set a parameter in productBean, and then the constructor of product bean loads others fields knowing its id.
    The snippet of my faces-config.xml is:
      <managed-bean>
        <managed-bean-name>product</managed-bean-name>
        <managed-bean-class>test.backing.ProductBean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
        <managed-property>
          <property-name>idToLoad</property-name>
          <property-class>java.lang.Integer</property-class>
          <value>#{param.id}</value>
        </managed-property>
      </managed-bean>It is possible? is a correct solution? and if it is, how can I do that?
    Thanks very much if someone can resolve my problem.
    Claudio.

  • Problem with java bean!

    Hi
    I am new to JSP but hav programmed Java. I would like to create an JSP page that connects to a database MS SQL Server7.0 but get the following error message in JBuilder5 when I try to run:
    "Jsp1.jsp": org.apache.jasper.JasperException: Cannot find any information on property 'name' in a bean of type 'myapp1.Jsp1Bean'
    my jsp page looks like this :
    <html>
    <head>
    <title>
    Jsp1
    </title>
    </head>
    <jsp:useBean id="Jsp1BeanId" scope="session" class="myapp1.Jsp1Bean" />
    <jsp:setProperty name="Jsp1BeanId" property="*" />
    <body>
    <h1>
    Personal Planner<br><hr>
    </h1>
    <form method="post">
    <%--Olika f�llt med persondata--%>
    Enter following data:
    <pre><br> First name: <input name="name">
    <br> Last name: <input name="name">
    <br> Date of birthday: <input name="date"> (YYYYMMDD)
    <br> Date to be reminded: <input name="date"> (YYYYMMDD)
    <br> Time to be reminded: <input name="time"> (HH:MM)<br>
    <br><br>Type of media to be reminded by:
    Mobile: <input type="checkbox" name="Mobile"> Mobilenumber: <input name="mobilenumber"><br>
    Email: <input type="checkbox" name="Email"> Address: <input name="address"><br>
    <br>
    </pre>
    <%--Valbar lista att v�lja typ av media--%>
    <input type="submit" name="Add person" value="Add person">
    <input type="reset" value="Clear">
    <br>
    <br><br><br><br><br>Value of Bean property is :<jsp:getProperty name="Jsp1BeanId" property="name" />
    </form>
    </body>
    </html>
    my bean file is:
    package myapp1;
    public class Jsp1Bean {
    private String sample = "Start value";
    /**Access sample property*/
    public String getSample() {
    return sample;
    /**Access sample property*/
    public void setSample(String newValue) {
    if (newValue!=null) {
    sample = newValue;
    Please help!
    /Thanks in advance

    Hi,
    Do u have the getname method in the bean?If not,
    In the bean,the property is declared as a variable and must have a corresponding getter method.
    Either change the variable in bean as �name� or the property in jsp as �sample�
    public class Jsp1Bean
    private String name = "Start value";
    /**Access name property*/
         public String getname() {
         return name;
         /**Access name property*/
         public void setname(String newValue) {
         if (newValue!=null) {
         name = newValue;
    Guess this works,
    subha

  • JSF Problem invoking backing bean method

    I want a backing bean method to be invoked when the submit button is clicked but for some strange reason the method is not getting invoked any Help in this regards would be great.
    I am able to properly get the values from database and display on the page , after the user types in some more additional information like password , hint question the form has to be submitted when clicked on the submit button..
    Register.jsp
    <body>
         <f:view>
         <h:graphicImage url="/header.jpg"></h:graphicImage>
               <br><h:form id="user">
                        <table>
                        <tr>
                             <td>
                                  <h:outputLabel for="" value="uUser Name:" styleClass="orderlabelcell"></h:outputLabel></td><td>
                                  <h:inputText onblur="JavaScript:doSubmit();" value="#{registerFormBean.userName}" id="userName"></h:inputText>
                             </td>
                        </tr>
                        <tr>     
                             <td>
                             <h:outputLabel for="" value="First Name:" styleClass="orderlabelcell"></h:outputLabel></td><td>
                             <h:inputText value="#{registerFormBean.firstName}" id="firstName"></h:inputText></td>
                        </tr>
                        <tr>     
                             <td><h:outputLabel for="" value="Middle Name:" styleClass="orderlabelcell"></h:outputLabel></td><td>
                             <h:inputText id="middleName" value="#{registerFormBean.middleName}"></h:inputText></td>
                        </tr>
                        <tr>     
                             <td><h:outputLabel for="" value="Last Name:" styleClass="orderlabelcell"></h:outputLabel></td><td>
                             <h:inputText id="lastName" value="#{registerFormBean.lastName}"></h:inputText></td>
                        </tr>
                        <tr>
                             <td>
                                  <h:outputLabel for="" value="Password:" styleClass="orderlabelcell"></h:outputLabel></td><td>
                                  <h:inputText id="password" value="#{registerFormBean.password}"></h:inputText>
                             </td>
                        </tr>
                        <tr>     
                             <td><h:outputLabel for="" value="Re-type Password:" styleClass="orderlabelcell"></h:outputLabel></td><td>
                             <h:inputText></h:inputText></td>
                        </tr>
                        <tr>     
                             <td><h:outputLabel for="" value="Password Hint Question:" styleClass="orderlabelcell"></h:outputLabel></td><td>
                             <h:inputTextarea id="hintQuestion" value="#{registerFormBean.hintQuestion}"></h:inputTextarea></td>
                        </tr>
                        <tr>     
                             <td><h:outputLabel for="" value="Password Hint Answer:" styleClass="orderlabelcell"></h:outputLabel></td><td>
                             <h:inputTextarea id="hintAnswer" value="#{registerFormBean.hintAnswer}"></h:inputTextarea></td>
                        </tr>
                        <tr>     
                             <td>
                                  <h:commandButton id="submit" value="Submit" type="submit" action="#{registerFormBean.saveUser}"/>
                                  <h:commandButton id="Reset" value="Reset" type="reset"/>
                                  </td>
                        </tr>
                        </table>
                   </h:form>
         </f:view>
    </body> 
    RegisterFormBean.java
      package services;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import dao.DatabaseHandler;
    import model.User;
    public class RegisterFormBean {
    User selectedUser;
    String userName;
    String firstName;
    String middleName;
    String lastName;
    String password;
    String hintQuestion;
    String hintAnswer;
    String errMsg;
    private DatabaseHandler dbHandle;
    public RegisterFormBean() {
         javax.faces.context.FacesContext context = javax.faces.context.FacesContext.getCurrentInstance();
         javax.faces.application.Application app = context.getApplication();
         dbHandle = (DatabaseHandler)app.createValueBinding("#{databaseHandler}").getValue(context);
    public void setUserDetails() {
         try{
              System.out.println("gettting Details for user: "+userName);
              selectedUser = (User)dbHandle.getUser(userName);
         catch (SQLException e) {
              errMsg = "Problem gettting records";
    public String getUserName() {
         if(null!=userName){
              setUserDetails();
         if(null!=selectedUser)
              return selectedUser.getLoginName();
         else
         return "";
    public void setUserName(String userName){
         this.userName = userName;
    public String getFirstName() {
         if(null!=selectedUser)
              return selectedUser.getFirstName();
         else
         return "";
    public void setFirstName(String firstName) {
         System.out.println("in setFirst name");
         this.firstName = firstName;
    public String getMiddleName() {
         if(null!=selectedUser)
              return selectedUser.getMiddleName();
         else
         return "";
    public void setMiddleName(String middleName) {
         System.out.println("in set middle name...");
         this.middleName = middleName;
    public String getLastName() {
         if(null!=selectedUser)
              return selectedUser.getLastName();
         else
         return "";
    public void setLastName(String lastName) {
         System.out.println("in set last name....");
         this.lastName = lastName;
    public String getPassword() {
         return password;
    public void setPassword(String password) {
         if(null!=password){
              System.out.println("$$$$$$$$$$$$ setting password.."+password);
              selectedUser.setPassword(password);
    public String getHintQuestion() {
         return hintQuestion;
    public void setHintQuestion(String hintQuestion) {
         if(null!=hintQuestion){
              System.out.println("#########  Hint Question "+hintQuestion);
              selectedUser.setHintQuestion(hintQuestion);
    public String getHintAnswer() {
         return hintAnswer;
    public void setHintAnswer(String hintAnswer) {
         if(null!=hintAnswer){
              System.out.println("@@@@@@@  Hint Answer"+hintAnswer);
              selectedUser.setHintQuestion(hintAnswer);
    public String saveUser(){
         String flag = "";
         System.out.println("IN registerUser Method....");
         try{
              if(null!=selectedUser){
                   flag = dbHandle.registerUser(setUserDefaults(selectedUser));
         catch(SQLException se){
         flag="fail";
         System.out.println("FAILED DUE TO THE EXCEPTION :- "+se.getMessage());
         errMsg = "Unable to Register the User...";
         return flag;
    public User setUserDefaults(User user){
         System.out.println("SETTING USER DEFAULTS.....");
         user.setActive(true);
         user.setLoginType("False");
         user.setCreatedUserName("SOMEUSERNAME");
         user.setSecIdFunctionGroup(17);
         user.setChallangeWord("CHANGE IT");
         user.setTrusted(false);
         user.setUserTypeIdTypeOf(1);
         user.setChangePwdNextLogin("False");
         user.setLoginIsDisabled(false);
         user.setPasswordNeverExpires(false);
         user.setThinWorkOrder(false);
         user.setCurrencyTypeId(2);
         return user;
    I am able to fetch the details from Database and display on the page so DAO is working properly hence not copying here
    faces-config.xml
      <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
                                  "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
    <managed-bean>
      <managed-bean-name>databaseHandler</managed-bean-name>
      <managed-bean-class>dao.DatabaseHandler</managed-bean-class>
      <managed-bean-scope>application</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>registerFormBean</managed-bean-name>
      <managed-bean-class>services.RegisterFormBean</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/Register.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/Success.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>

    A conversion or validation error may have been occurred. Add <h:messages/> to the page to note them all. If you're using at least Sun Mojarra 1.2, then you should be able to note them all in the application server logs.

  • Problems with Java-Beans-Connectivity

    Post Author: dweise
    CA Forum: JAVA
    I'm new in crystal reports and try to connect a sample bean class to the java beans conectivity. Problem is that i only get JavaServerType=JavaBeans|JavaBeanName= for selection. Can anyone tell me what the problem is with my configuration. I followed the steps of the POJOTutorial.doc and the Configuration-Infos of the java_beans_connectivity.My System is w2k professional and for Crystal Reports i use the developer installation with Product Version 11.5.0.313 Thanks by now

    Post Author: pabhijit
    CA Forum: JAVA
    Could you send me the detailed steps and what point you are stucked.? I recently did something simillar and may be I would be able to help.

  • Problem with CMP bean and MySQL: please help me!!!

    Hi,
    I am using J2EE Sun server 1.3 and Mysql 4.0 database with its MySQL Connector/J 3.0.
    The driver connection to the database is fine since "Generate Default SQL" in deploytool gives "SQL generation complete".
    However, I can't have a simple row with one text field called test being created in my mysql table called test.
    Of course , the mysql server is started and the test table set for use.
    Here is my code (I try to access my database from a servlet using a CMP Entity bean):
    try{
    Context initial = new InitialContext();
    Object objref = initial.lookup(EntityHome.JNDI_NAME);
    EntityHome home = (EntityHome)PortableRemoteObject.narrow(objref,EntityHome.class);     
    Entity test= home.create("zob");               
    /*EntityHome home = (EntityHome)PortableRemoteObject.narrow(objref,EntityHome.class);     
    catch (Exception ex){                                                                out.println("exception message : " + ex.getMessage()+"</body></html>");}
    I get the following exception message :
    RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException: nested exception is: java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"EntityCMPTable" WHERE "test" = 'zob'' at line 1"; nested exception is: java.sql.SQLException: Syntax error or access violation, message from server: "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '"EntityCMPTable" WHERE "test" = 'zob'' at line 1"
    I would be very grateful for help since I have a close deadline for this!!!!!!!!
    Thank you very much in advance dear java experts!!!!!!!
                                       

    Hallo
    I have the same problem and the same configuration.
    Do you have a solution for this problem ??
    Thanks
    Georg

  • Problem KeyEvent Java Bean  (Francois Degrelle)

    Hello !
    I have a problem with the KeyEvent Java Bean (keykressed.zip)
    from the Forms - PJC and JavaBean store !
    1.
    I call a forms-dialog and use the KeyEvent Java Bean.
    (Set_Custom_Property('BL.BEAN',1,'INIT','')
    2.
    I call a second forms-dialog and use the KeyEvent Java Bean too.
    Set_Custom_Property('BL.BEAN',1,'INIT','')
    3.
    Now i go back to the first forms-dialog and this dialog hangs...
    (No input over keyboard possible !)
    Maybe you can help me ?
    Many thanks in advance !
    Thomas

    Hello,
    Re-load the JAR file from the article.
    I still get an error in the Java console after closing the second dialog, but the key is correctly sent to the first form, so it seems to be OK.
    Francois

  • Problem with entity bean

    Hi friends, i am using cmp entity bean to access my relational data base. In my table i am using a sequence (oracle) to generate a sequentiel number as a unique identifier so in my entity bean i am not inserting a primery key. The problem is that i need to get the primary key of the bean after creating and storing it to use the key for other treatment. Any idea, thank a lot

    Hi,
    It seems you just need to move all "after creation" stuff (including getId()) into ejbPostCreate method.
    If I don't miss anything, think that's all.
    Good luck

Maybe you are looking for

  • Manually added files to library going to wrong location in iPOD

    When I DL video podcasts from work and manually add to iTUNES they are going to Movies instead of Video Podcasts. Even more troublesome is that all podcasts from same site are not listed together in a submenu. This only occurrs when I DL video podcas

  • Can't access Time Capsule files

    Here is the situation: I've owned a TC for about a year now with no previous problems. Now I can't access the files even though the internet is still working fine and TC reports no problems. Until today, the TC icon would show up on my desk top and w

  • Trouble getting MP4 files into 30G IPOD

    I have ripped a DVD into MP4 format but was unable to add it to ITUNES for transfer into my video IPOD. I am using a demo copy of CUCUSOFT converter software to experiment with. I have thought about buying QuickTime 7.0 but have heard nothing about i

  • Installing AutoDesk using Parallels on OSX/MBP/2Gb/2.16CoreDuo

    Am I plum out of luck here? I am trying to install AutoCad Architecture 2007 and just stuck on Disk 2, it just does not seem to install. I am such a Mac Person that I am not sure what else I should be doing. I did try to click on the disk image from

  • See log4j log on a J2EE WebApp

    Hi to all, I'm looking for a taglib o something like it to read log4j files and write them in a web page inside a J2EE WebApplication. Before do it by myself for example using SourceForge's DisplayTag, I would like to know if anyone has already thoug