-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Data too long for column.... Could not synchronize database
PostPosted: Tue Apr 24, 2007 1:50 am 
Newbie

Joined: Tue Apr 24, 2007 1:26 am
Posts: 6
Hi,
hab folgendes Problem:
ich muß per hibernate eine Instance einer java klasse in der Datenbank speichern. das mapping ist unten. wenn ich nun hibernate die Datenbank erzeugen lasse, wird der klassentyp als TINYBLOB angelegt. das gibt aber probleme. beim speichern wird eine exception geworfen, die besagt: data too long for column.... wenn ich nun per handy das TINYBLOB in BLOB ändern, funktioniert alles ohne probleme. gibt es einen wenig im mapping direkt zu sagen das er BLOB anstelle von TINYBLOB benutzen soll. es wäre wichtig das er das automatisch macht, ohne das man nachträglich an die datenbank noch handanlegen muß....

danke schon mal im vorraus....
Stefan

Hibernate version:
hibernate 3

Mapping documents:
Code:
.....
<class name="main.org.jboss.portlet.milestone.spring.dto.EntryValues"
      table="entryValues">
      <id column="id" name="id">
         <generator class="increment" />
      </id>
      <property name="value" column="value" type="string" not-null="false"/>
      <property name="dataType" column="dataType"  type="main.org.jboss.portlet.milestone.spring.dto.DataType"  not-null="false"/>
      <list name="values">
         <key column="pair_id" />
         <list-index column="pair_idx" />
         <one-to-many class="main.org.jboss.portlet.milestone.spring.dto.Pair"/>
      </list>
   </class>
....


Full stack trace of any exception that occurs:
Code:
2007-04-24 11:05:09,093 WARN [org.hibernate.util.JDBCExceptionReporter] - SQL Error: 0, SQLState: 22001
2007-04-24 11:05:09,093 ERROR [org.hibernate.util.JDBCExceptionReporter] - Data truncation: Data too long for column 'dataType' at row 1
2007-04-24 11:05:09,093 ERROR [org.hibernate.event.def.AbstractFlushingEventListener] - Could not synchronize database state with session
org.hibernate.exception.DataException: Could not execute JDBC batch update
   at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:77)
   at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
   at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249)
   at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
   at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
   at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
   at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
   at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
   at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:394)
   at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:367)
   at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:614)
   at main.org.jboss.portlet.milestone.spring.persistence.EntryManager.saveEntry(Unknown Source)
   at main.org.jboss.portlet.milestone.jsf.bean.NewBean.saveEntry(Unknown Source)
   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:597)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at org.apache.myfaces.portlet.MyFacesGenericPortlet.processAction(MyFacesGenericPortlet.java:246)
   at org.jboss.portal.portlet.container.PortletContainer.invokeAction(PortletContainer.java:493)
   at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:429)
   at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:144)
   at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85)
   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
   at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
   at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:101)
   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java)
   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java)
   at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:46)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:60)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:46)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:77)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:141)
   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:597)
   at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:99)
   at org.jboss.portal.server.servlet.CommandServlet.doPost(CommandServlet.java:156)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
   at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
   at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
   at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.include(AbstractRequestContext.java:194)
   at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$1.include(ContextDispatcherInterceptor.java:69)
   at org.jboss.portal.server.servlet.CommandServlet.include(CommandServlet.java:79)
   at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:75)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.ContextTrackerInterceptor.invoke(ContextTrackerInterceptor.java:49)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:65)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.ValveInterceptor.invoke(ValveInterceptor.java:57)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
   at org.jboss.portal.portlet.container.PortletContainerInvoker.invoke(PortletContainerInvoker.java:115)
   at sun.reflect.GeneratedMethodAccessor307.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
   at $Proxy61.invoke(Unknown Source)
   at org.jboss.portal.portlet.state.producer.StatefulPortletInvoker.invoke(StatefulPortletInvoker.java:250)
   at sun.reflect.GeneratedMethodAccessor269.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
   at $Proxy63.invoke(Unknown Source)
   at org.jboss.portal.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:140)
   at org.jboss.portal.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:156)
   at sun.reflect.GeneratedMethodAccessor268.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
   at $Proxy65.invoke(Unknown Source)
   at org.jboss.portal.portlet.test.TestPortletInvoker$1.dispatch(TestPortletInvoker.java:62)
   at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
   at org.jboss.portal.portlet.aspects.portlet.PortalSessionSynchronizationInterceptor.invoke(PortalSessionSynchronizationInterceptor.java:86)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.portlet.aspects.portlet.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:167)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.core.model.instance.InstanceSecurityInterceptor.invoke(InstanceSecurityInterceptor.java:78)
   at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
   at org.jboss.portal.portlet.test.TestPortletInvoker.invoke(TestPortletInvoker.java:122)
   at sun.reflect.GeneratedMethodAccessor262.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
   at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
   at $Proxy47.invoke(Unknown Source)
   at org.jboss.portal.core.impl.model.instance.InstanceImpl.invoke(InstanceImpl.java:274)
   at org.jboss.portal.core.command.InvokeWindowActionCommand.execute(InvokeWindowActionCommand.java:120)
   at org.jboss.portal.core.command.ControllerCommand.dispatch(ControllerCommand.java:84)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
   at org.jboss.portal.core.aspects.controller.EventBroadcasterInterceptor.invoke(EventBroadcasterInterceptor.java:168)
   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.core.aspects.controller.PageNavigationInterceptor.invoke(PageNavigationInterceptor.java:103)
   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:79)
   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.core.aspects.controller.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:59)
   at org.jboss.portal.core.command.CommandInterceptor.invoke(CommandInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
   at org.jboss.portal.core.command.CommandContext.execute(CommandContext.java:102)
   at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:92)
   at org.jboss.portal.core.command.ExecutionContext.execute(ExecutionContext.java:79)
   at org.jboss.portal.core.CoreController.handle(CoreController.java:130)
   at sun.reflect.GeneratedMethodAccessor315.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
   at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
   at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
   at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
   at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
   at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
   at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
   at $Proxy141.handle(Unknown Source)
   at org.jboss.portal.server.ServerInvocation.dispatch(ServerInvocation.java:80)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141)
   at org.jboss.portal.server.aspects.server.NavigationInterceptor.invoke(NavigationInterceptor.java:65)
   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.server.aspects.server.ContentTypeInterceptor.invoke(ContentTypeInterceptor.java:65)
   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.core.aspects.server.LocaleInterceptor.invoke(LocaleInterceptor.java:73)
   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.core.aspects.server.UserInterceptor.invoke(UserInterceptor.java:175)
   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.server.aspects.server.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:84)
   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.core.aspects.server.TransactionInterceptor.org$jboss$portal$core$aspects$server$TransactionInterceptor$invoke$aop(TransactionInterceptor.java:49)
   at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
   at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
   at org.jboss.aspects.tx.TxInterceptor$RequiresNew.invoke(TxInterceptor.java:275)
   at org.jboss.portal.core.aspects.server.TransactionInterceptor$invoke_N5143606530999904530.invokeNext(TransactionInterceptor$invoke_N5143606530999904530.java)
   at org.jboss.portal.core.aspects.server.TransactionInterceptor.invoke(TransactionInterceptor.java)
   at org.jboss.portal.server.ServerInterceptor.invoke(ServerInterceptor.java:38)
   at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131)
   at org.jboss.portal.common.invocation.Invocation.invoke(Invocation.java:171)
   at org.jboss.portal.server.servlet.PortalServlet.process(PortalServlet.java:295)
   at org.jboss.portal.server.servlet.PortalServlet.doPost(PortalServlet.java:168)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.sql.BatchUpdateException: Data truncation: Data too long for column 'dataType' at row 1
   at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1213)
   at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:912)
   at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48)
   at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:242)
   ... 238 more

Name and version of the database you are using:
MySQL 5.0.27 under windows
MySQL Connector/J 5.0.5


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 24, 2007 8:04 am 
Regular
Regular

Joined: Thu Jan 27, 2005 8:58 am
Posts: 80
Also ich ahbe noch nicht mit Blobs gearbeitet, aber kannst Du beim Datentyp statt DataTyp nicht direkt java.sql.Blob angeben?

_________________
Weise ist nicht, wer viele Erfahrungen macht, sondern wer aus wenigen lernt, viele nicht machen zu müssen. (Karlheinz Deschner)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 25, 2007 1:59 am 
Newbie

Joined: Tue Apr 24, 2007 1:26 am
Posts: 6
dann geht mir die zuordnung zum datentyp verloren was auch zu problemen führt. hab im englischen forum einen antwort erhalten, welche aber nicht allzu elegant ist, und zwar length zu setzen. da das aber von datenbank zu datenbank unterschiedlich ist, und in meinem fall die datenbank nicht fest steht, ist das wieder etwas problematisch...

aber fürs erste sollte das vielleicht gehen.

Stefan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.