cancel
Showing results for 
Search instead for 
Did you mean: 

Latest SVN build WCM content submission broken [SOLVED]

steventux
Champ in-the-making
Champ in-the-making
I've tested this on a clean build of the latest SVN code (30/10/2008) with new db and dir.root and get the following exception when trying to submit a file from a Web Project:
14:37:41,258 User:admin ERROR [ui.common.Utils] A system error happened during the operation: null
java.lang.NullPointerException
        at org.alfresco.web.bean.wcm.SubmitDialog.createWorkflowSandbox(SubmitDialog.java:565)
        at org.alfresco.web.bean.wcm.SubmitDialog$2.execute(SubmitDialog.java:431)
        at org.alfresco.web.bean.wcm.SubmitDialog$2.execute(SubmitDialog.java:427)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:294)
        at org.alfresco.web.bean.wcm.SubmitDialog.submitViaWorkflow(SubmitDialog.java:449)
        at org.alfresco.web.bean.wcm.SubmitDialog.finish(SubmitDialog.java:348)
        at org.alfresco.web.bean.dialog.DialogManager.finish(DialogManager.java:534)
        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 javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)
14:37:41,286 User:admin WARN  [web.config.ClientConfigElement] Virtualisation Server not started - reverting to default IP: 127-0-0-1.ip.alfrescodemo.net
14:37:41,286 User:admin WARN  [web.config.ClientConfigElement] Virtualisation Server not started - reverting to default port: 8180
14:37:50,812 User:admin ERROR [ui.common.Utils] A system error happened during the operation: null
java.lang.NullPointerException
        at org.alfresco.web.bean.wcm.SubmitDialog.createWorkflowSandbox(SubmitDialog.java:565)
        at org.alfresco.web.bean.wcm.SubmitDialog$2.execute(SubmitDialog.java:431)
        at org.alfresco.web.bean.wcm.SubmitDialog$2.execute(SubmitDialog.java:427)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:294)
        at org.alfresco.web.bean.wcm.SubmitDialog.submitViaWorkflow(SubmitDialog.java:449)
        at org.alfresco.web.bean.wcm.SubmitDialog.finish(SubmitDialog.java:348)
        at org.alfresco.web.bean.dialog.DialogManager.finish(DialogManager.java:534)
        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 javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Thread.java:619)
5 REPLIES 5

steventux
Champ in-the-making
Champ in-the-making
In Alfresco Forums no one can hear you scream
sandboxFactory is null on line 565 :
this.sandboxInfo = sandboxFactory.createWorkflowSandbox(
                  this.avmBrowseBean.getStagingStore());
The SubmitDialog bean config in faces-config-app.xml doesn't mention the SandboxFactory class - should there be some additional config here to resolve the dependency?

ben
Champ in-the-making
Champ in-the-making
Hi,

Can you please clarify exactly what you mean by "submit a file from a Web Project"?  Do you mean create a file within a user sandbox and submit it the staging sandbox? 

How are you creating the file? 
What type of file is it?
Is this Labs or Enterprise?

Regards, Ben.

steventux
Champ in-the-making
Champ in-the-making
Built from svn://svn.alfresco.com/alfresco/HEAD so that's Community unless Alfresco have started sharing their Enterprise code :lol:

I noticed the problem on 30/10/2008 or thereabouts. Specifically when I tried to submit web content - that's any content in a user's sandbox submitted to the staging sandbox (whether uploaded or created via a web form). As noted above the file/content type is irrelevant as the sandboxFactory property is always null hence the error on the line as detailed above.
Subversion revisions suggest a fair bit of refactoring and it looks to me that sandboxFactory needs to be injected into the SubmitDialog bean but I don't have the time to try and fix this - I rolled back to revision 3197 and probably won't go near SVN builds for a while.

janv
Employee
Employee
… should there be some additional config here to resolve the dependency?
Yes, sorry. This has been fixed on latest SVN. Here's is the diff:

+++ projects/web-client/source/web/WEB-INF/faces-config-beans.xml   (working copy)
@@ -4118,6 +4118,10 @@
          <property-name>formsService</property-name>
          <value>#{FormsService}</value>
       </managed-property>
+      <managed-property>
+         <property-name>sandboxFactory</property-name>
+         <value>#{sandboxFactory}</value>
+      </managed-property>
    </managed-bean>
Thanks,
Jan

steventux
Champ in-the-making
Champ in-the-making
Thanks Jan