cancel
Showing results for 
Search instead for 
Did you mean: 

Regenerate Renditions Wizard does not always work

edgar
Champ in-the-making
Champ in-the-making
Hi,

I am very happy with the new Regenerate Renditions Wizard in Alfresco WCM. However it does not always work for me.

First I encountered the following error when I tried to run the wizard on a particular Web Project:

javax.faces.FacesException: Cannot get value for expression '#{WizardManager.bean.formChoices}'
caused by:
org.apache.jasper.JasperException: Cannot get value for expression '#{WizardManager.bean.formChoices}'
caused by:
javax.faces.el.EvaluationException: Cannot get value for expression '#{WizardManager.bean.formChoices}'
caused by:
javax.faces.el.EvaluationException: Exception getting value of property formChoices of base of type : org.alfresco.web.bean.wcm.RegenerateRenditionsWizard
caused by:
javax.faces.el.EvaluationException: Bean: org.alfresco.web.bean.wcm.RegenerateRenditionsWizard, property: formChoices
caused by:
java.lang.reflect.InvocationTargetException
caused by:
java.lang.NullPointerException

Turns out that I had removed a particular Web Form from the Data Dictionary (that was used in my Web Project). Apparently this caused the NullPointerException. I resolved the problem by opening the settings of the Web Project and saving them. After this action the Regenerate Renditions Wizard worked fine again.

My second problem with the wizard however I have not been able to resolve. The wizard fails on one particular Web Form only. It fails with the error:


Please correct the errors below then click Finish
.

The error however is not shown. I will look at what the Alfresco log has to say a.s.a.p.

A third thing I have noticed is that often the wizard displays a list of content items to be regenerated where one particular content item is mentioned multiple times. It seems it wants to regenerate all versions of the content item or something?

I am running Alfresco 2.1R1 on Linux using MySQL.

cheers,

Edgar
5 REPLIES 5

edgar
Champ in-the-making
Champ in-the-making

Please correct the errors below then click Finish
.

The error however is not shown. I will look at what the Alfresco log has to say a.s.a.p.

The Alfresco log file says the following:


INFO   | jvm 1    | 2007/07/16 10:48:12 | 10:48:12,124 ERROR [ui.common.Utils]
INFO   | jvm 1    | 2007/07/16 10:48:12 | java.lang.NullPointerException
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.alfresco.web.bean.wcm.RegenerateRenditionsWizard$2.getForm(RegenerateRenditionsWizard.java:532)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.alfresco.web.forms.FormInstanceDataImpl.regenerateRenditions(FormInstanceDataImpl.java:135)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.alfresco.web.bean.wcm.RegenerateRenditionsWizard.regenerateRenditions(RegenerateRenditionsWizard.java:536)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.alfresco.web.bean.wcm.RegenerateRenditionsWizard.next(RegenerateRenditionsWizard.java:177)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.alfresco.web.bean.wizard.WizardManager.next(WizardManager.java:489)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at java.lang.reflect.Method.invoke(Method.java:585)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at javax.faces.component.UICommand.broadcast(UICommand.java:109)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
INFO   | jvm 1    | 2007/07/16 10:48:12 |    at java.lang.Thread.run(Thread.java:595)

kvc
Champ in-the-making
Champ in-the-making
Edgar -

Glad you like the new feature … now, let's resolve these bugs before 2.1.0 Enterprise!

Can you file these bugs at http://issues.alfresco.com?  I will follow-up with our Engineering team to look into these and see about getting resolved before our Enterprise release.

Kevin

edgar
Champ in-the-making
Champ in-the-making
Glad you like the new feature … now, let's resolve these bugs before 2.1.0 Enterprise!
Before 2.1.0 Community as well? 😉

In other words: will you guys resolve these bugs in the HEAD branch of Subversion so that they end up in the nightly builds?

Yes, I know we should get a commercial license.. That is out of my hands however..

Can you file these bugs at http://issues.alfresco.com?

Ok. Will do.

edgar
Champ in-the-making
Champ in-the-making
Can you file these bugs at http://issues.alfresco.com?

I created the following issues:
- Regenerate Renditions Wizard fails on a particular Web Form with NullPointerException
- Regenerate Renditions Wizard fails when I remove a Web Form from the Data Dictionary
- Regenerate Renditions Wizard shows incorrect number of renditions

Good luck in solving them!

And, oh yes, the first issue is a bit of a blocker for us.. Manually updating all renditions is simply not feasible when you have 30+ content items based on a particular Web Form. So temporary workarounds for that issue are also much appreciated.

cheers,

Edgar

kvc
Champ in-the-making
Champ in-the-making
Edgar:

I expect we'll be able to solve these issues.  Please stay tuned to JIRA for updates.

Kevin