-->
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: Blob error on second access attempt
PostPosted: Wed Aug 16, 2006 3:37 pm 
Newbie

Joined: Wed Jul 26, 2006 11:06 am
Posts: 11
Hibernate version: The one that ships with JBoss 4.0.4.GA

The following code functions perfectly the first time through. However, if it get's hit a second time I get an error when invoking a mehtod on the actual blob ojbect.

The method element.getFrontImage(); throws an exception the second time through.

Any help is appreciated. I'm pretty much at a loss here.

Here's the Entity code:
Code:

public Class Element {
  private Blob frontImage;

...

  @Lob @Basic(fetch=FetchType.LAZY)
   public Blob getFrontImage() {
      return frontImage;
   }
}


Here's the SFSB...
Code:
  blob = element.getFrontImage();
  size = (int)blob.length();
  // fc is FileChannel
  fc.write(ByteBuffer.wrap(blob.getBytes(1, size)));



The exception:
Code:
14:35:07,890 ERROR [STDERR] org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block
14:35:07,890 ERROR [STDERR]    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1527)
14:35:07,890 ERROR [STDERR]    at org.postgresql.core.v3.QueryExecutorImpl.receiveFastpathResult(QueryExecutorImpl.java:585)
14:35:07,890 ERROR [STDERR]    at org.postgresql.core.v3.QueryExecutorImpl.fastpathCall(QueryExecutorImpl.java:484)
14:35:07,890 ERROR [STDERR]    at org.postgresql.fastpath.Fastpath.fastpath(Fastpath.java:69)
14:35:07,890 ERROR [STDERR]    at org.postgresql.fastpath.Fastpath.fastpath(Fastpath.java:109)
14:35:07,890 ERROR [STDERR]    at org.postgresql.fastpath.Fastpath.getInteger(Fastpath.java:121)
14:35:07,890 ERROR [STDERR]    at org.postgresql.largeobject.LargeObject.tell(LargeObject.java:255)
14:35:07,890 ERROR [STDERR]    at org.postgresql.largeobject.LargeObject.size(LargeObject.java:270)
14:35:07,890 ERROR [STDERR]    at org.postgresql.jdbc2.AbstractJdbc2BlobClob.length(AbstractJdbc2BlobClob.java:44)
14:35:07,890 ERROR [STDERR]    at org.hibernate.lob.SerializableBlob.length(SerializableBlob.java:31)
14:35:07,890 ERROR [STDERR]    at com.vicor.distributedcapture.session.RemittanceElementAction.writeImageToDisk(RemittanceElementAction.java:105)
14:35:07,890 ERROR [STDERR]    at com.vicor.distributedcapture.session.RemittanceElementAction.openItem(RemittanceElementAction.java:76)
14:35:07,890 ERROR [STDERR]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:35:07,890 ERROR [STDERR]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:64)
14:35:07,890 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
14:35:07,890 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor476.invoke(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:30)
14:35:07,890 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor475.invoke(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:33)
14:35:07,890 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor474.invoke(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:82)
14:35:07,890 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor473.invoke(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60)
14:35:07,890 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor472.invoke(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
14:35:07,890 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:73)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:45)
14:35:07,890 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor470.invoke(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:71)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
14:35:07,890 ERROR [STDERR]    at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
14:35:07,890 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
14:35:07,890 ERROR [STDERR]    at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
14:35:07,890 ERROR [STDERR]    at $Proxy134.openItem(Unknown Source)
14:35:07,890 ERROR [STDERR]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:35:07,890 ERROR [STDERR]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:35:07,890 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,890 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,890 ERROR [STDERR]    at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.core.Pages.callAction(Pages.java:212)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:127)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:98)
14:35:07,890 ERROR [STDERR]    at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:50)
14:35:07,890 ERROR [STDERR]    at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
14:35:07,890 ERROR [STDERR]    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
14:35:07,890 ERROR [STDERR]    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
14:35:07,890 ERROR [STDERR]    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
14:35:07,890 ERROR [STDERR]    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
14:35:07,890 ERROR [STDERR]    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
14:35:07,890 ERROR [STDERR]    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
14:35:07,890 ERROR [STDERR]    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
14:35:07,890 ERROR [STDERR]    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
14:35:07,890 ERROR [STDERR]    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
14:35:07,890 ERROR [STDERR]    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
14:35:07,890 ERROR [STDERR]    at java.lang.Thread.run(Thread.java:595)
14:35:07,906 ERROR [STDERR] org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block
14:35:07,906 ERROR [STDERR]    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1527)
14:35:07,906 ERROR [STDERR]    at org.postgresql.core.v3.QueryExecutorImpl.receiveFastpathResult(QueryExecutorImpl.java:585)
14:35:07,906 ERROR [STDERR]    at org.postgresql.core.v3.QueryExecutorImpl.fastpathCall(QueryExecutorImpl.java:484)
14:35:07,906 ERROR [STDERR]    at org.postgresql.fastpath.Fastpath.fastpath(Fastpath.java:69)
14:35:07,906 ERROR [STDERR]    at org.postgresql.fastpath.Fastpath.fastpath(Fastpath.java:109)
14:35:07,906 ERROR [STDERR]    at org.postgresql.fastpath.Fastpath.getInteger(Fastpath.java:121)
14:35:07,906 ERROR [STDERR]    at org.postgresql.largeobject.LargeObject.tell(LargeObject.java:255)
14:35:07,906 ERROR [STDERR]    at org.postgresql.largeobject.LargeObject.size(LargeObject.java:270)
14:35:07,906 ERROR [STDERR]    at org.postgresql.jdbc2.AbstractJdbc2BlobClob.length(AbstractJdbc2BlobClob.java:44)
14:35:07,906 ERROR [STDERR]    at org.hibernate.lob.SerializableBlob.length(SerializableBlob.java:31)
14:35:07,906 ERROR [STDERR]    at com.vicor.distributedcapture.session.RemittanceElementAction.writeImageToDisk(RemittanceElementAction.java:109)
14:35:07,906 ERROR [STDERR]    at com.vicor.distributedcapture.session.RemittanceElementAction.openItem(RemittanceElementAction.java:77)
14:35:07,906 ERROR [STDERR]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:35:07,906 ERROR [STDERR]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:64)
14:35:07,906 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor477.invoke(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
14:35:07,906 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor476.invoke(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:30)
14:35:07,906 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor475.invoke(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:33)
14:35:07,906 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor474.invoke(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:82)
14:35:07,906 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor473.invoke(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60)
14:35:07,906 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor472.invoke(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
14:35:07,906 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor471.invoke(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:73)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:45)
14:35:07,906 ERROR [STDERR]    at sun.reflect.GeneratedMethodAccessor470.invoke(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:71)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
14:35:07,906 ERROR [STDERR]    at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
14:35:07,906 ERROR [STDERR]    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
14:35:07,906 ERROR [STDERR]    at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
14:35:07,906 ERROR [STDERR]    at $Proxy134.openItem(Unknown Source)
14:35:07,906 ERROR [STDERR]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:35:07,906 ERROR [STDERR]    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
14:35:07,906 ERROR [STDERR]    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
14:35:07,906 ERROR [STDERR]    at java.lang.reflect.Method.invoke(Method.java:585)
14:35:07,906 ERROR [STDERR]    at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.core.Pages.callAction(Pages.java:212)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.jsf.AbstractSeamPhaseListener.callPageActions(AbstractSeamPhaseListener.java:127)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:98)
14:35:07,906 ERROR [STDERR]    at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:50)
14:35:07,906 ERROR [STDERR]    at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
14:35:07,906 ERROR [STDERR]    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
14:35:07,906 ERROR [STDERR]    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
14:35:07,906 ERROR [STDERR]    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
14:35:07,906 ERROR [STDERR]    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
14:35:07,906 ERROR [STDERR]    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
14:35:07,906 ERROR [STDERR]    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
14:35:07,906 ERROR [STDERR]    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
14:35:07,906 ERROR [STDERR]    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
14:35:07,906 ERROR [STDERR]    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
14:35:07,906 ERROR [STDERR]    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
14:35:07,906 ERROR [STDERR]    at java.lang.Thread.run(Thread.java:595)


Top
 Profile  
 
 Post subject: Correction!!!
PostPosted: Wed Aug 16, 2006 3:43 pm 
Newbie

Joined: Wed Jul 26, 2006 11:06 am
Posts: 11
the exception comes on the call to length...

Code:
blob.length();


with this error
Code:
ERROR: invalid large-object descriptor: 0
SQLState: 42704


pulled this info from the debugger. the previous information was from system logs. this should be more accurate.

thanks.
eric


Top
 Profile  
 
 Post subject: The Answer
PostPosted: Thu Aug 17, 2006 9:34 am 
Newbie

Joined: Wed Jul 26, 2006 11:06 am
Posts: 11
It's seems that the problem is a transacational issues. Specifically, stale file descriptor for the Blob object.

Originally, I was using the EM like so...
Code:
@PersistenceContext(unitName = "DC", type=PersistenceContextType.EXTENDED)
  private EntityManager em;


by moving the persistence context back to transactional like so...
Code:
@PersistenceContext(unitName = "DC")
  private EntityManager em;


The EM appears to be doing a better job of not getting stale. Here's what I would like to know. Is this the way it has to be done due to the nature of Blobs and Large Objects or is this a bug in the Hibernate Entity Manager?

I've read the Hibernate guarantees that references will not get stale. Maybe it's not a stale issues at all. Anyway, some light on this would be great.

Thanks.
Eric Ray


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.