[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-2862) Problem when using s:convertEntity

Pete Muir (JIRA) jira-events at lists.jboss.org
Fri Apr 18 10:00:44 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBSEAM-2862?page=all ]

Pete Muir closed JBSEAM-2862.
-----------------------------

    Resolution: Duplicate Issue

> Problem when using s:convertEntity
> ----------------------------------
>
>                 Key: JBSEAM-2862
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2862
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.0.2.CR1
>         Environment: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
> BEA JRockit(R) (build R27.4.0-90-89592-1.5.0_12-20070928-1715-linux-ia32, compiled mode)
>            Reporter: Krunoslav Samardzic
>         Assigned To: Pete Muir
>             Fix For: 2.0.2.CR2, 2.1.0.BETA1
>
>
> Problem happens when using s:convertEntity
> stackTrace:
> 12:13:59,789 [http-127.0.0.1-8080-1]  WARN javax.enterprise.resource.webcontainer.jsf.lifecycle :103 - executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl at 6f86710) threw exception
> java.lang.NullPointerException
> 	at org.jboss.seam.ui.converter.entityConverter.EntityLoader.getPersistenceContext(EntityLoader.java:30)
> 	at org.jboss.seam.ui.converter.entityConverter.EntityLoader.getPersistenceContext(EntityLoader.java:24)
> 	at org.jboss.seam.ui.converter.entityConverter.AbstractEntityLoader.put(AbstractEntityLoader.java:46)
> 	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:585)
> 	at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
> 	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:31)
> 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 	at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:49)
> 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 	at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
> 	at org.jboss.seam.util.Work.workInTransaction(Work.java:41)
> 	at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
> 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
> 	at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
> 	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.jboss.seam.ui.converter.entityConverter.EntityLoader_$$_javassist_15.put(EntityLoader_$$_javassist_15.java)
> 	at org.jboss.seam.ui.converter.EntityConverter.getAsString(EntityConverter.java:77)
> 	at org.jboss.seam.ui.converter.PrioritizableConverter.getAsString(PrioritizableConverter.java:67)
> 	at org.jboss.seam.ui.converter.ConverterChain.getAsString(ConverterChain.java:123)
> 	at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:521)
> 	at org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.getConvertedStringValue(RendererUtils.java:532)
> 	at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRendererUtils.renderSelectOptions(HtmlRendererUtils.java:410)
> 12:13:59,790 [http-127.0.0.1-8080-1] TRACE org.jboss.seam.jsf.SeamPhaseListener :181 - after phase: RENDER_RESPONSE 6
> 12:13:59,791 [http-127.0.0.1-8080-1] DEBUG org.jboss.seam.jsf.SeamPhaseListener :607 - rolling back transaction after phase: RENDER_RESPONSE 6
> 12:13:59,792 [http-127.0.0.1-8080-1] DEBUG org.jboss.seam.core.Manager :333 - Storing conversation state: 7
> JSP page:
> <t:selectOneMenu id="selectOperater" value="#{traziLog.operater}">
> 			<s:selectItems value="#{traziOperater.rezultati}" var="z"
> 				noSelectionLabel="#{messages['zajednicke.nijeOdabrano']}"
> 				label="#{z.ime} #{z.prezime}" />
> 			<s:convertEntity />
> 		</t:selectOneMenu>
> This example works fine in seam 2.0.0 GA.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list