Hello, I'm a new user. I'm brazilian, that's why my english is not good,
sorry.

    I'm using Jboss 2.4.3, Tomcat 3.2.3, data base Hypersonic and Entity
CMP.

    I'm doing any tests to create and to read CMP beans, I have a JSP file
that have the following code:

1-     InitialContext jndiContext = new InitialContext();
2-     Object ref  = jndiContext.lookup("lsfw/LSParamBean");
3-     LSParamHome home = (LSParamHome)PortableRemoteObject.narrow (ref,
LSParamHome.class);
4-     LSParamInfo lsparamInfo = new LSParamInfo();
5-     lsparamInfo.setParamId(new Integer(1));
6-     lsparamInfo.setParamName("param1");
7-     lsparamInfo.setParamValue("value1");
8-     lsparamInfo.setParamDesc("desc1");
9-     LSParam lsparam = home.create(lsparamInfo);
10-   LSParam lsparam1 = home.findByParamName("param1");
11-   out.println(lsparam1.getParamValue());

    The code above functions very well, the problem is when in one another
JSP I have the following code :

1-     InitialContext jndiContext = new InitialContext();
2-     Object ref  = jndiContext.lookup("lsfw/LSParamBean");
3-     LSParamHome home = (LSParamHome)PortableRemoteObject.narrow (ref,
LSParamHome.class);
4-     LSParam lsparam1 = home.findByParamName("param1");
5-     out.println(lsparam1.getParamValue());

    You can notice that accurately equal to the first one , the only
difference is that I do not only create bean I try to read what already was
servant, thing who in first also I make and successfully. The problem
happens in line 5 of as code, the error will be shown below . Also already I
verified that the error does not happen in my method  getParamValue(), I
placed messages of it inside and it is executed successfully. The shown
error below I removed of log of jboss, in my page JSP I appear
java.lang.reflect.UndeclaredThrowableException.

In case that somebody needs plus some information, I am the disposal to
pass.

[EntitySynchronizationInterceptor] Store failed
java.rmi.ServerException: Store failed; nested exception is:
 java.lang.NumberFormatException: 28 00:00:00.0
java.lang.NumberFormatException: 28 00:00:00.0
 at java.lang.Integer.parseInt(Unknown Source)
 at java.lang.Integer.parseInt(Unknown Source)
 at java.sql.Date.valueOf(Unknown Source)
 at org.hsqldb.Column.convertString(Column.java:1001)
 at org.hsqldb.Column.convertObject(Column.java:1084)
 at
org.hsqldb.jdbcPreparedStatement.setObject(jdbcPreparedStatement.java:589)
 at
org.jboss.pool.jdbc.PreparedStatementInPool.setObject(PreparedStatementInPoo
l.java:282)
 at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.setParameter(JDBCCommand.java:33
4)
 at
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.setParameters(JDBCSto
reEntityCommand.java:134)
 at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159
)
 at
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEnti
tyCommand.java:97)
 at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersistenc
eManager.java:168)
 at
org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManage
r.java:397)
 at org.jboss.ejb.EntityContainer.storeEntity(EntityContainer.java:252)
 at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronizati
on.beforeCompletion(EntitySynchronizationInterceptor.java:400)
 at org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1210)
 at org.jboss.tm.TxCapsule.commit(TxCapsule.java:304)
 at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
 at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:364)
 at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
 at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:12
8)
 at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
 at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:427)
 at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:489)
 at
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericPr
oxy.java:335)
 at
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:13
3)
 at $Proxy4.getParamValue(Unknown Source)
 at
_0002fteste_0002ejspteste_jsp_76._jspService(_0002fteste_0002ejspteste_jsp_7
6.java:112)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
 at org.apache.tomcat.core.Handler.service(Handler.java:287)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Unknown Source)



thanks for all



--------------------------------------------------------------------------
Felipe F. Palma Dias - [EMAIL PROTECTED]
http://www.palmadias.hpg.com.br
ICQ: 133921121


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to