[JBoss-user] [Persistence & CMP/JBoss] - Re: Boolean problem with cmp and postgresql ?

2005-04-22 Thread powerware
i removed sql-type="bool" from the definition and it is working !

Sergio



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874992#3874992

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874992


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: Boolean problem with cmp and postgresql ?

2005-04-22 Thread powerware
I tested this also with mysql 4.1

the problem when accessing boolean is the same

any idea what is wrong

the definition in the cmp is:


  | /**
  |  * @ejb.interface-method view-type = "both"
  |  * @ejb.persistence column-name = "actief"
  |  *  jdbc-type="BOOLEAN"
  |  *  sql-type="bool"
  |  *
  |  * @return
  |  */
  | public abstract java.lang.Boolean getActief();
  | 
  | /**
  |  * @ejb.interface-method view-type = "both"
  |  * @param actief
  |  */
  | public abstract void setActief(java.lang.Boolean actief);
  | 

Sergio

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874987#3874987

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874987


---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Boolean problem with cmp and postgresql ?

2005-04-21 Thread powerware
I use

jboss 4.0
postgresql 7.4

al is working except the access on boolean fields (see error code)

i defined them as boolean and java.lang.Boolean

In the postgres database all tables are correct generated, even the boolan 
fields are generated as type bool

What could be the problem


  | org.jboss.tm.JBossRollbackException: Unable to commit, 
tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=winxp/16, BranchQual=, 
localId=16] status=STATUS_NO_TRANSACTION; - nested throwable: 
(javax.ejb.EJBException: Internal error setting parameters for field actief; 
CausedByException is:
  | Onbekende Types waarde.)
  | at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:457)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:325)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
  | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
  | at 
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:514)
  | at org.jboss.ejb.Container.invoke(Container.java:854)
  | at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:413)
  | at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:44)
  | at $Proxy155.setGebruikerValue(Unknown Source)
  | at com.vvb.db.DBProcedure.makeAdmin(DBProcedure.java:96)
  | at com.vvb.db.DBProcedure.initDb(DBProcedure.java:344)
  | at 
com.vvb.plugin.applicationPlugin.initAppConfig(applicationPlugin.java:113)
  | at com.vvb.plugin.applicationPlugin.init(applicationPlugin.java:74)
  | at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:839)
  | at org.apache.struts.action.ActionServlet.init(ActionServlet.java:332)
  | at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  | at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1029)
  | at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)
  | at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)
  | at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)
  | at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
  | at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
  | at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5441)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:150)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:336)
  | at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:83)
  | at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:370)
  | at org.jboss.web.WebModule.startModule(WebModule.java:62)
  | at org.jboss.web.WebModule.startService(WebModule.java:40)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  | at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)