09-27-2013 01:17 PM
I downloaded the VMWare image of Nuxeo, nuxeo-5.7.2-vm.zip, just this week. I have not done much to it, certainly no code changes or customizations via Studio or anything of the like. I did install the Social and DAM modules.
As the Administrator user, I:
I'm concerned that this happens on an installation which is a fresh 'out of the box' setup.
The root problem seems to be this SQL:
SELECT "hierarchy"."id", "hierarchy"."pos", "hierarchy"."primarytype", "hierarchy"."mixintypes", "hierarchy"."ischeckedin", "hierarchy"."baseversionid", "hierarchy"."majorversion", "hierarchy"."minorversion", "hierarchy"."isversion" FROM "hierarchy" WHERE "hierarchy"."parentid" = ? AND "hierarchy"."name" = ? AND "hierarchy"."isproperty" = ?
Here is the full stack trace:
Cannot call prepareStatement with transaction in state 1 javax.servlet.ServletException: On requestURL: http://192.168.1.76/nuxeo/create_workspace.faces at org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:145) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.ecm.platform.wi.filter.WIRequestFilter.doFilter(WIRequestFilter.java:114) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:145) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.doFilterInternal(NuxeoAuthenticationFilter.java:598) at org.nuxeo.ecm.platform.ui.web.auth.service.NuxeoAuthFilterChain.doFilter(NuxeoAuthFilterChain.java:35) at org.nuxeo.ecm.platform.ui.web.auth.oauth.NuxeoOAuthFilter.doFilter(NuxeoOAuthFilter.java:119) at org.nuxeo.ecm.platform.ui.web.auth.service.NuxeoAuthFilterChain.doFilter(NuxeoAuthFilterChain.java:33) at org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.doFilter(NuxeoAuthenticationFilter.java:394) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoCorsFilter.doFilter(NuxeoCorsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:79) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:59) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) Caused by: javax.servlet.ServletException: # {action.getLink()}: javax.el.ELException: org.nuxeo.ecm.core.api.ClientException: Failed to create document: Todd's Workspace at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.wss.servlet.BaseWSSFilter.doFilter(BaseWSSFilter.java:137) at org.nuxeo.wss.servlet.FailSafeWSSFilter.doFilter(FailSafeWSSFilter.java:55) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at org.nuxeo.ecm.platform.ui.web.multipart.MultipartFilter.doFilter(MultipartFilter.java:70) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495) at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.ecm.core.management.jtajca.internal.Log4jWebFilter.doFilter(Log4jWebFilter.java:64) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:129) ... 37 more Caused by: javax.faces.FacesException: #{action.getLink()} : javax.el.ELException: org.nuxeo.ecm.core.api.ClientException: Failed to create document: Todd's Workspace at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) at javax.faces.component.UICommand.broadcast(UICommand.java:387) at org.nuxeo.ecm.platform.ui.web.binding.alias.UIAliasHolder.broadcast(UIAliasHolder.java:86) at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321) at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296) at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253) at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:466) at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at org.nuxeo.ecm.platform.ui.web.lifecycle.NuxeoLifeCycleImpl.execute(NuxeoLifeCycleImpl.java:83) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) ... 63 more Caused by: javax.faces.el.EvaluationException: javax.el.ELException: org.nuxeo.ecm.core.api.ClientException: Failed to create document: Todd's Workspace at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) ... 74 more Caused by: javax.el.ELException: org.nuxeo.ecm.core.api.ClientException: Failed to create document: Todd's Workspace at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:333) at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:342) at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) at org.nuxeo.ecm.platform.ui.web.binding.MetaMethodExpression.invoke(MetaMethodExpression.java:124) at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) ... 75 more Caused by: org.nuxeo.ecm.core.api.ClientException: Failed to create document: Todd's Workspace at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:937) at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:136) at com.sun.proxy.$Proxy177.createDocument(Unknown Source) at org.nuxeo.ecm.webapp.contentbrowser.DocumentActionsBean.saveDocument(DocumentActionsBean.java:439) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.nuxeo.ecm.platform.ui.web.util.NuxeoBijectionInterceptor.aroundInvoke(NuxeoBijectionInterceptor.java:68) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.nuxeo.ecm.platform.ui.web.util.NuxeoExceptionInterceptor.aroundInvoke(NuxeoExceptionInterceptor.java:79) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166) at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102) at org.nuxeo.ecm.webapp.contentbrowser.DocumentActionsBean_$$javassist_96.saveDocument(DocumentActionsBean$$_javassist_96.java) at org.nuxeo.ecm.webapp.documenttemplates.DocumentTemplatesActionsBean.createDocumentFromTemplate(DocumentTemplatesActionsBean.java:159) at org.nuxeo.ecm.webapp.documenttemplates.DocumentTemplatesActionsBean.createDocumentFromTemplate(DocumentTemplatesActionsBean.java:213) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.nuxeo.ecm.platform.ui.web.util.NuxeoBijectionInterceptor.aroundInvoke(NuxeoBijectionInterceptor.java:68) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.nuxeo.ecm.platform.ui.web.util.NuxeoExceptionInterceptor.aroundInvoke(NuxeoExceptionInterceptor.java:79) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166) at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102) at org.nuxeo.ecm.webapp.documenttemplates.DocumentTemplatesActionsBean_$$javassist_98.createDocumentFromTemplate(DocumentTemplatesActionsBean$$_javassist_98.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:329) ... 81 more Caused by: org.nuxeo.ecm.core.api.DocumentException: org.nuxeo.ecm.core.storage.StorageException: Could not select: SELECT "hierarchy"."id", "hierarchy"."pos", "hierarchy"."primarytype", "hierarchy"."mixintypes", "hierarchy"."ischeckedin", "hierarchy"."baseversionid", "hierarchy"."majorversion", "hierarchy"."minorversion", "hierarchy"."isversion" FROM "hierarchy" WHERE "hierarchy"."parentid" = ? AND "hierarchy"."name" = ? AND "hierarchy"."isproperty" = ? at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.resolvePath(SQLSession.java:251) at org.nuxeo.ecm.core.api.DocumentResolver.resolveReference(DocumentResolver.java:63) at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:511) at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:875) ... 132 more Caused by: org.nuxeo.ecm.core.storage.StorageException: Could not select: SELECT "hierarchy"."id", "hierarchy"."pos", "hierarchy"."primarytype", "hierarchy"."mixintypes", "hierarchy"."ischeckedin", "hierarchy"."baseversionid", "hierarchy"."majorversion", "hierarchy"."minorversion", "hierarchy"."isversion" FROM "hierarchy" WHERE "hierarchy"."parentid" = ? AND "hierarchy"."name" = ? AND "hierarchy"."isproperty" = ? at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.getSelectRows(JDBCRowMapper.java:456) at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.readSelectionRows(JDBCRowMapper.java:982) at org.nuxeo.ecm.core.storage.sql.SoftRefCachingRowMapper.readSelectionRows(SoftRefCachingRowMapper.java:469) at org.nuxeo.ecm.core.storage.sql.SelectionContext.getSelectionFragment(SelectionContext.java:216) at org.nuxeo.ecm.core.storage.sql.PersistenceContext.getChildHierByName(PersistenceContext.java:1333) at org.nuxeo.ecm.core.storage.sql.SessionImpl.getChildNode(SessionImpl.java:965) at org.nuxeo.ecm.core.storage.sql.SessionImpl.getNodeByPath(SessionImpl.java:857) at org.nuxeo.ecm.core.storage.sql.ra.ConnectionImpl.getNodeByPath(ConnectionImpl.java:197) at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.resolvePath(SQLSession.java:249) ... 135 more Caused by: java.sql.SQLException: Cannot call prepareStatement with transaction in state 1 at org.nuxeo.runtime.api.ConnectionHelper$ConnectionHandle.sharedConnectionBegin(ConnectionHelper.java:337) at org.nuxeo.runtime.api.ConnectionHelper$ConnectionHandle.invoke(ConnectionHelper.java:217) at com.sun.proxy.$Proxy164.prepareStatement(Unknown Source) at org.nuxeo.ecm.core.storage.sql.jdbc.JDBCRowMapper.getSelectRows(JDBCRowMapper.java:379) ... 143 more
SEPT 29 UPDATE
I installed the Eclipse IDE and configured the v5.7.3 SDK. Creation of a Workspace following the same steps still fails, with the same SQL error. The stack trace isn't exactly the same, and the error message is different. But the stacktrace shows the same essential SQL error:
Could not select: SELECT "HIERARCHY"."ID", "HIERARCHY"."POS", "HIERARCHY"."PRIMARYTYPE", "HIERARCHY"."MIXINTYPES", "HIERARCHY"."ISCHECKEDIN", "HIERARCHY"."BASEVERSIONID", "HIERARCHY"."MAJORVERSION", "HIERARCHY"."MINORVERSION", "HIERARCHY"."ISVERSION" FROM "HIERARCHY" WHERE "HIERARCHY"."PARENTID" = ? AND "HIERARCHY"."NAME" = ? AND "HIERARCHY"."ISPROPERTY" = ?
The new error message is: "Sorry, the page you requested cannot be found ... The page you are trying to reach has been moved or doesn't exist anymore. Click on the following links to get back to the platform."
10-01-2013 08:38 PM
Thank you, I reproduced, this is strange indeed. follow up will happen here: ==> https://jira.nuxeo.com/browse/NXP-12672 (now I see why you wanted to debug and compile Nuxeo sources :))
10-01-2013 09:25 PM
Awesome! Thanks for looking into this!
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.