[MGNLUI-3768] NPE in About Magnolia app after parsing failure Created: 12/Feb/16  Updated: 04/Jan/17  Resolved: 19/Feb/16

Status: Closed
Project: Magnolia UI
Component/s: about app
Affects Version/s: 5.3.11
Fix Version/s: 5.3.12

Type: Bug Priority: Neutral
Reporter: Frank Sommer Assignee: Ilgun Ilgun
Resolution: Obsolete Votes: 0
Labels: support
Remaining Estimate: 0d
Time Spent: 0.25d
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLUI-3163 NPE in About Magnolia app Closed
relation
is related to MGNLUI-3525 Magnolia About App does not display d... Closed
supersession
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: Basel 31
Story Points: 1

 Description   

The about app crashes with an NullPointerException like:

16-02-12 10:55:50 ERROR author[ajp-bio-127.0.0.1-8009-exec-11]info.magnolia.ui.framework.app.AppInstanceControllerImpl:
Sub-app main failed to start: java.lang.reflect.InvocationTargetException
info.magnolia.objectfactory.MgnlInstantiationException: java.lang.reflect.InvocationTargetException
        at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:124)
        at info.magnolia.objectfactory.ObjectManufacturer.newInstance(ObjectManufacturer.java:88)
        at info.magnolia.objectfactory.guice.GuiceComponentProvider.newInstanceWithParameterResolvers(GuiceComponentProvider.java:121)
        ... 149 more
Caused by: java.lang.NullPointerException
        at info.magnolia.about.app.AboutPresenter.start(AboutPresenter.java:121)
        at info.magnolia.enterprise.about.app.EnterpriseAboutPresenter.start(EnterpriseAboutPresenter.java:63)
        at info.magnolia.about.app.AboutMainSubApp.<init>(AboutMainSubApp.java:48)

The reason is the SaxParser can not parse the jackrabbit config file, because the parser tries to connect the internet by parsing the DTD. This is normally restricted by firewall settings.

16-02-12 11:05:21 ERROR author[ajp-bio-127.0.0.1-8009-exec-9]info.magnolia.about.app.AboutPresenter: Failed to obtain DB
 connection info with Connection timed out
java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at java.net.Socket.connect(Socket.java:528)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
        at sun.net.www.http.HttpClient.New(HttpClient.java:308)
        at sun.net.www.http.HttpClient.New(HttpClient.java:326)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
        at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)


 Comments   
Comment by Ilgun Ilgun [ 19/Feb/16 ]

Was already fixed as part of MGNLUI-3525

Generated at Mon Feb 12 09:09:53 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.