myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Starets (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TRINIDAD-1960) NullPointerException in LocaleInfoScriptlet.getSupportedLocaleVariant
Date Fri, 14 Jan 2011 21:27:58 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981931#action_12981931
] 

Max Starets commented on TRINIDAD-1960:
---------------------------------------

The fix for TRINIDAD-2008 on the trunk would probably work here as well

> NullPointerException in LocaleInfoScriptlet.getSupportedLocaleVariant
> ---------------------------------------------------------------------
>
>                 Key: TRINIDAD-1960
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1960
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 1.2.14-core 
>         Environment: Mac OS X 10.6, Java 6, Glassfish 3.0.2
>            Reporter: Manuel Blechschmidt
>         Attachments: PreventNullPointerInLocaleInfoScroptlet.patch
>
>
> Hi,
> I tried to deploy trinidad in a web app to my Glassfish Server. After reporting and fixing
TRINIDAD-1959 I get the following problem:
> Caused by: java.lang.NullPointerException
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.LocaleInfoScriptlet.getSupportedLocaleVariant(LocaleInfoScriptlet.java:171)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.NamedLocaleInfoScriptlet.<init>(NamedLocaleInfoScriptlet.java:62)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.NamedLocaleInfoScriptlet.registerNamedLocales(NamedLocaleInfoScriptlet.java:47)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.jsLibs.XhtmlScriptletFactory.registerAllScriptlets(XhtmlScriptletFactory.java:73)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlUtils.<clinit>(XhtmlUtils.java:598)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.PanelBorderLayoutRenderer.<clinit>(PanelBorderLayoutRenderer.java:1050)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:169)
> 	at org.apache.myfaces.extensions.validator.generic.renderkit.ExtValGenericRenderKit.intercept(ExtValGenericRenderKit.java:84)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit$$EnhancerByCGLIB$$30834978.addRenderer(<generated>)
> 	at org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase._loadRenderKitMap(RenderKitBase.java:258)
> 	at org.apache.myfaces.trinidadinternal.renderkit.RenderKitBase.<init>(RenderKitBase.java:56)
> 	at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.<init>(RenderKitDecorator.java:39)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.<init>(CoreRenderKit.java:168)
> 	at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit$$EnhancerByCGLIB$$30834978.<init>(<generated>)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:228)
> 	at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:220)
> 	at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:216)
> 	at net.sf.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:640)
> 	at net.sf.cglib.proxy.Enhancer.firstInstance(Enhancer.java:538)
> 	at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:225)
> 	at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)
> 	at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)
> 	at org.apache.myfaces.extensions.validator.generic.renderkit.ExtValGenericRenderKit.newInstance(ExtValGenericRenderKit.java:62)
> 	at org.apache.myfaces.extensions.validator.generic.renderkit.GenericRenderKitWrapperFactory.createWrapper(GenericRenderKitWrapperFactory.java:45)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.DefaultRenderKitWrapperFactory.createWrapper(DefaultRenderKitWrapperFactory.java:54)
> 	at org.apache.myfaces.extensions.validator.core.renderkit.ExtValRenderKitFactory.getRenderKit(ExtValRenderKitFactory.java:84)
> 	at org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitFactory.getRenderKit(CoreRenderKitFactory.java:55)
> 	at com.sun.faces.config.processor.RenderKitConfigProcessor.process(RenderKitConfigProcessor.java:170)
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
> 	at com.sun.faces.config.processor.ManagedBeanConfigProcessor.process(ManagedBeanConfigProcessor.java:270)
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
> 	at com.sun.faces.config.processor.ValidatorConfigProcessor.process(ValidatorConfigProcessor.java:120)
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
> 	at com.sun.faces.config.processor.ConverterConfigProcessor.process(ConverterConfigProcessor.java:126)
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
> 	at com.sun.faces.config.processor.ComponentConfigProcessor.process(ComponentConfigProcessor.java:117)
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
> 	at com.sun.faces.config.processor.ApplicationConfigProcessor.process(ApplicationConfigProcessor.java:337)
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
> 	at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:116)
> 	at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:114)
> 	at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:223)
> 	at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:335)
> 	... 42 more
> I created a patch for http://svn.apache.org/repos/asf/myfaces/trinidad/branches/trinidad-1.2.x/
and will attach it to this ticket.
> /Manuel

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message