ektfetna1 / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
1 stars 0 forks source link

CalenderService.getFeed nullpointerexception #186

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Running a stand-alone application, the code works.

When deployed to a weblogic server, the following error is produced:

java.lang.NullPointerException
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1190)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
    at oracle.xml.util.XMLError.setLocale(XMLError.java:173)
    at oracle.xml.parser.v2.XMLParser.setLocale(XMLParser.java:446)
    at weblogic.xml.jaxp.RegistryParser.setupParser(RegistryParser.java:424)

...

This is the code that produced the problem on the weblogic server:

Feed resultFeed = myService.getFeed(feedUrl, Feed.class);

Original issue reported on code.google.com by davy.van...@gmail.com on 10 Sep 2009 at 10:21

GoogleCodeExporter commented 9 years ago
davy,
   can you provide the stack trace upto the problematic code.  

Original comment by vbarat...@gmail.com on 10 Sep 2009 at 1:41

GoogleCodeExporter commented 9 years ago
Ok, this is the full stack trace:

java.lang.NullPointerException
    at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1190)
    at java.util.ResourceBundle.getBundle(ResourceBundle.java:787)
    at oracle.xml.util.XMLError.setLocale(XMLError.java:173)
    at oracle.xml.parser.v2.XMLParser.setLocale(XMLParser.java:446)
    at weblogic.xml.jaxp.RegistryParser.setupParser(RegistryParser.java:424)
    at weblogic.xml.jaxp.RegistryParser.getParserInternal(RegistryParser.java:344)
    at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:142)
    at org.xml.sax.helpers.ParserAdapter.parse(ParserAdapter.java:405)
    at com.google.gdata.util.XmlParser.parse(XmlParser.java:677)
    at com.google.gdata.util.XmlParser.parse(XmlParser.java:568)
    at com.google.gdata.data.BaseFeed.parseAtom(BaseFeed.java:793)
    at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:68)
    at com.google.gdata.wireformats.input.AtomDataParser.parse(AtomDataParser.java:39)
    at com.google.gdata.wireformats.input.CharacterParser.parse(CharacterParser.java:100)
    at com.google.gdata.wireformats.input.XmlInputParser.parse(XmlInputParser.java:52)
    at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:66)
    at com.google.gdata.wireformats.input.AtomDualParser.parse(AtomDualParser.java:34)
    at com.google.gdata.client.Service.parseResponseData(Service.java:1896)
    at com.google.gdata.client.Service.getFeed(Service.java:1054)
    at com.google.gdata.client.Service.getFeed(Service.java:916)
    at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
    at com.google.gdata.client.Service.getFeed(Service.java:935)
    at be.contribute.view.TestBean.getAllPosts(TestBean.java:43)
    at be.contribute.view.TestBean.getText(TestBean.java:28)
    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 javax.el.BeanELResolver.getValue(BeanELResolver.java:261)
    at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
    at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
    at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:68)
    at
oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getValue(ValueRendere
r.java:184)
    at
oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getConvertedString(Va
lueRenderer.java:145)
    at
oracle.adfinternal.view.faces.renderkit.rich.OutputTextRenderer.encodeAll(Output
TextRenderer.java:108)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at
org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBas
e.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at
org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.j
ava:432)
    at
oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer
.java:221)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at
org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBas
e.java:751)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:415)
    at
org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.j
ava:432)
    at
oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(Document
Renderer.java:820)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1187)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
    at
org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBas
e.java:751)
    at
org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComp
onentBase.java:1494)
    at
org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBas
e.java:771)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
    at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewH
andlerImpl.java:193)
    at
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleI
mpl.java:685)
    at
oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImp
l.java:261)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:193)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecuri
tyHelper.java:227)
    at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.ja
va:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:65)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at
oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(Registrati
onFilter.java:85)
    at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.do
Filter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.do
Filter(TrinidadFilterImpl.java:420)
    at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(Trin
idadFilterImpl.java:247)
    at
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadF
ilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAp
pServletContext.java:3588)
    at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.ja
va:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletConte
xt.java:2200)
    at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java
:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Original comment by davy.van...@gmail.com on 10 Sep 2009 at 1:48

GoogleCodeExporter commented 9 years ago
Looks like the locale is null.  I'm not that familiar with the weblogic
implementation.  Will get back to you as soon as possible.

Original comment by vbarat...@gmail.com on 10 Sep 2009 at 2:18

GoogleCodeExporter commented 9 years ago
I also thought that could be the problem but after printing
Locale.getDefault().toString() I get my locale, being nl_BE.

Original comment by davy.van...@gmail.com on 11 Sep 2009 at 8:38

GoogleCodeExporter commented 9 years ago
Any solutions found yet?

Original comment by davy.van...@gmail.com on 22 Sep 2009 at 7:54

GoogleCodeExporter commented 9 years ago
I'm having the same issue. Please respond to the thread in order to find a 
solution
as soon as possible!

Original comment by verhulst...@gmail.com on 23 Sep 2009 at 1:53

GoogleCodeExporter commented 9 years ago
same problem !!!!

Original comment by sbos...@gmail.com on 12 Jun 2011 at 3:19

GoogleCodeExporter commented 9 years ago
b,.m

Original comment by fridy80 on 13 Jun 2011 at 6:36

GoogleCodeExporter commented 9 years ago
n

Original comment by fridy80 on 13 Jun 2011 at 6:37