-->
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.  [ 1 post ] 
Author Message
 Post subject: "could not reset reader" using H2
PostPosted: Thu Oct 09, 2014 8:21 am 
Newbie

Joined: Thu Mar 19, 2009 4:59 am
Posts: 9
Hello I'm getting the following exception using H2 1.3.176 with Hibernate 4.2.7.SP1. PostgreSQL and MSSQL work fine.

The exception is thrown in BlobProxy.resetIfNeeded() where binaryStream.getInputStream().reset() is called.

In most cases binaryStream.getInputStream() is a org.hibernate.engine.jdbc.internal.BinaryStreamImpl,
but in one case it is a org.h2.store.LobStorageBackend.LobInputStream which extends java.io.InputStream.

InputStream.reset() only does one thing: throw new IOException("mark/reset not supported");

Should I report this as hibernate bug or is it rather a H2 bug?

caused by: com.softmodeler.common.ServerException: java.sql.SQLException: could not reset reader
at org.hibernate.engine.jdbc.BlobProxy.resetIfNeeded(BlobProxy.java:93) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.engine.jdbc.BlobProxy.getUnderlyingStream(BlobProxy.java:82) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.engine.jdbc.BlobProxy.invoke(BlobProxy.java:116) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at com.sun.proxy.$Proxy156.getUnderlyingStream(Unknown Source) ~[na:na]
at org.hibernate.type.descriptor.java.BlobTypeDescriptor.unwrap(BlobTypeDescriptor.java:124) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.type.descriptor.java.BlobTypeDescriptor.unwrap(BlobTypeDescriptor.java:50) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$5$1.doBind(BlobTypeDescriptor.java:132) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.type.descriptor.sql.BlobTypeDescriptor$2$1.doBind(BlobTypeDescriptor.java:90) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.type.descriptor.sql.BasicBinder.bind(BasicBinder.java:93) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:280) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.type.AbstractStandardBasicType.nullSafeSet(AbstractStandardBasicType.java:275) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.type.AbstractSingleColumnStandardBasicType.nullSafeSet(AbstractSingleColumnStandardBasicType.java:57) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:2800) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3205) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:3140) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:3470) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.action.internal.EntityUpdateAction.execute(EntityUpdateAction.java:140) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:393) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:385) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:302) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:339) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.event.internal.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:62) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.internal.SessionImpl.autoFlushIfRequired(SessionImpl.java:1211) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1661) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.internal.CriteriaImpl.list(CriteriaImpl.java:374) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at org.hibernate.internal.CriteriaImpl.uniqueResult(CriteriaImpl.java:396) ~[hibernate-core-4.2.7.SP1.jar:4.2.7.SP1]
at com.softmodeler.service.impl.BasicObjectRefService.getRef_aroundBody22(BasicObjectRefService.java:408) ~[com.softmodeler.server/:na]
at com.softmodeler.service.impl.BasicObjectRefService$AjcClosure23.run(BasicObjectRefService.java:1) ~[na:na]
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96cproceed(AbstractTransactionAspect.aj:59) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.aspectj.AbstractTransactionAspect$AbstractTransactionAspect$1.proceedWithInvocation(AbstractTransactionAspect.aj:65) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) [org.springframework.transaction_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at com.softmodeler.service.impl.BasicObjectRefService.getRef(BasicObjectRefService.java:406) ~[com.softmodeler.server/:na]
at com.softmodeler.service.impl.AuditEntryService.createNew_aroundBody0(AuditEntryService.java:104) ~[com.softmodeler.server/:na]
at com.softmodeler.service.impl.AuditEntryService$AjcClosure1.run(AuditEntryService.java:1) ~[na:na]
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96cproceed(AbstractTransactionAspect.aj:59) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.aspectj.AbstractTransactionAspect$AbstractTransactionAspect$1.proceedWithInvocation(AbstractTransactionAspect.aj:65) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) [org.springframework.transaction_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at com.softmodeler.service.impl.AuditEntryService.createNew(AuditEntryService.java:97) ~[com.softmodeler.server/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_67]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_67]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_67]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_67]
at com.softmodeler.workflow.OSGiLookup.invokeServiceCall(OSGiLookup.java:132) ~[com.softmodeler.workflow/:na]
at com.softmodeler.workflow.OSGiLookup.execute_aroundBody0(OSGiLookup.java:89) ~[com.softmodeler.workflow/:na]
at com.softmodeler.workflow.OSGiLookup$AjcClosure1.run(OSGiLookup.java:1) ~[na:na]
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96cproceed(AbstractTransactionAspect.aj:59) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.aspectj.AbstractTransactionAspect$AbstractTransactionAspect$1.proceedWithInvocation(AbstractTransactionAspect.aj:65) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) [org.springframework.transaction_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc$around$org_springframework_transaction_aspectj_AbstractTransactionAspect$1$2a73e96c(AbstractTransactionAspect.aj:63) [org.springframework.aspects_3.2.5.RELEASE.jar:3.2.5.RELEASE]
at com.softmodeler.workflow.OSGiLookup.execute(OSGiLookup.java:71) ~[com.softmodeler.workflow/:na]
at org.activiti.engine.impl.delegate.JavaDelegateInvocation.invoke(JavaDelegateInvocation.java:34) ~[activiti-engine-5.16.3.jar:5.16.3]
at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37) ~[activiti-engine-5.16.3.jar:5.16.3]
at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25) ~[activiti-engine-5.16.3.jar:5.16.3]
at org.activiti.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:49) ~[activiti-engine-5.16.3.jar:5.16.3]
at org.activiti.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:40) ~[activiti-engine-5.16.3.jar:5.16.3]
at org.activiti.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:117) ~[activiti-engine-5.16.3.jar:5.16.3]
at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:60) [activiti-engine-5.16.3.jar:5.16.3]
... 462 common frames omitted


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

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.