Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 62381 invoked from network); 15 May 2008 19:55:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2008 19:55:43 -0000 Received: (qmail 86179 invoked by uid 500); 15 May 2008 19:55:43 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 86113 invoked by uid 500); 15 May 2008 19:55:43 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 86102 invoked by uid 99); 15 May 2008 19:55:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 12:55:43 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.202.4.58] (HELO osl1smout1.broadpark.no) (80.202.4.58) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 19:54:55 +0000 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=UTF-8 Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0K0X00AG2DZWWX60@osl1smout1.broadpark.no> for users@jackrabbit.apache.org; Thu, 15 May 2008 21:55:08 +0200 (CEST) Received: from Falcon ([80.202.99.242]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0K0X00LDMDU70N23@osl1sminn1.broadpark.no> for users@jackrabbit.apache.org; Thu, 15 May 2008 21:51:46 +0200 (CEST) From: Karianne Berg To: users@jackrabbit.apache.org Subject: Internal error while retrieving nt:file node Date: Thu, 15 May 2008 21:51:46 +0200 Message-id: <00ec01c8b6c5$1b546f30$51fd4d90$@no> X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Aci2lutkc8RyLskXTNCnzHaN9MCMVA== Content-language: no X-Virus-Checked: Checked by ClamAV on apache.org Hello all, I have a use case where I copy a subtree to a new location within the same workspace using Workspace.copy(..). This subtree contains nt:file nodes. When I try to access the file nodes in the "source" subtree afterwards, I get the "internal error" logger message in the bottom of this mail. The "destination" subtree is not throwing any errors. However, this only happens in my production environment. I have written a test to try to expose the problem, but am unable to reproduce the bug. Since the only difference between my test environment and my production environment is the database, I tried to run the test up against my production environment to see if it was a Postgres bug, but to no avail. My test environment uses the H2PersistenceManager, while my production environment uses the PostgreSQLPersistenceManager. I am not using the DataStore. Can someone enlighten me on what might be the cause of this internal error? It's hard to debug this when I have no idea of what's going on. Best regards, Karianne Berg ERROR [http-8080-4] (PropertyImpl.java:469) - Internal error while retrieving value of /dpg/presentations/inf100h08/resources/hibernatebook.jpg/jcr:content/jcr:data java.lang.NullPointerException at java.io.FileInputStream.(FileInputStream.java:103) at org.apache.jackrabbit.core.value.BLOBInTempFile.getStream(BLOBInTempFile.java:145) at org.apache.jackrabbit.core.value.InternalValue.toJCRValue(InternalValue.java:366) at org.apache.jackrabbit.core.PropertyImpl.getValue(PropertyImpl.java:466) at no.uib.ii.dpg2.core.persistence.jcr.JcrResourceDao.getResource(JcrResourceDao.java:441) at no.uib.ii.dpg2.core.persistence.jcr.JcrResourceDao.getPresentationResourceById(JcrResourceDao.java:46) at no.uib.ii.dpg2.core.persistence.jcr.JcrResourceDao$$FastClassByCGLIB$$1dc5c8.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:695) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:630) at no.uib.ii.dpg2.core.persistence.jcr.JcrResourceDao$$EnhancerByCGLIB$$d2155ca4.getPresentationResourceById() at no.uib.ii.dpg2.core.service.impl.ResourceServiceImpl.getPresentationFile(ResourceServiceImpl.java:33) at no.uib.ii.dpg2.core.controllers.PresentationResourceController.handle(PresentationResourceController.java:29) at org.springframework.web.servlet.mvc.AbstractCommandController.handleRequestInternal(AbstractCommandController.java:84) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:430) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)