New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible NPE when interpreting Antenna House log #2662

Closed
raducoravu opened this Issue Apr 18, 2017 · 2 comments

Comments

Projects
3 participants
@raducoravu
Member

raducoravu commented Apr 18, 2017

We had this error reported to us:

        C:\Program Files\Oxygen XML Editor 18\frameworks\dita\DITA-OT2.x\plugins\org.dita.pdf2.axf\build_axf.xml:225: The following error occurred while executing this line:
        C:\Program Files\Oxygen XML Editor 18\frameworks\dita\DITA-OT2.x\plugins\org.dita.pdf2.axf\build_axf.xml:243: java.lang.NullPointerException
                    at org.dita.dost.pdf2.AhfLogProcessorTask.execute(AhfLogProcessorTask.java:43)
                    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
                    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                    at java.lang.reflect.Method.invoke(Unknown Source)
                    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                    at org.apache.tools.ant.Task.perform(Task.java:348)
                    at org.apache.tools.ant.Target.execute(Target.java:435)

In the "build_axf.xml" there is a "log-processor" task which interprets the log emitted by Antenna House. It seems to not be very robust, it expects for example that the log file is longer than two lines.

@jelovirt jelovirt added this to the 2.5 milestone Apr 18, 2017

@jelovirt jelovirt modified the milestones: 3.0, 2.5 May 23, 2017

@jelovirt jelovirt modified the milestones: 3.0, 3.1 Oct 10, 2017

@raducoravu

This comment has been minimized.

Member

raducoravu commented Mar 6, 2018

👍 I reproduced this issue publishing probably using a broken Antenna House installation:

        transform.fo2pdf.ah.nooption:
              [ahf] Processing D:\projects\eXml\samples\dita\flowers/temp/pdf/oxygen_dita_temp/topic.fo to D:\projects\eXml\samples\dita\flowers\out\pdf/flowers.pdf
             [exec] Result: -1073741515
        
        BUILD FAILED
        D:\projects\eXml\frameworks\dita\DITA-OT2.x\build.xml:45: The following error occurred while executing this line:
        D:\projects\eXml\frameworks\dita\DITA-OT2.x\plugins\org.dita.pdf2\build.xml:140: The following error occurred while executing this line:
        D:\projects\eXml\frameworks\dita\DITA-OT2.x\plugins\org.dita.pdf2.axf\build_axf.xml:195: The following error occurred while executing this line:
        D:\projects\eXml\frameworks\dita\DITA-OT2.x\plugins\org.dita.pdf2.axf\build_axf.xml:213: java.lang.NullPointerException
        	at org.dita.dost.pdf2.AhfLogProcessorTask.execute(AhfLogProcessorTask.java:46)
        	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
        	at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        	at java.lang.reflect.Method.invoke(Unknown Source)
        	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:10

@infotexture infotexture added this to To do in 3.2 via automation Jun 10, 2018

@infotexture infotexture removed this from the 3.1 milestone Jun 10, 2018

jelovirt added a commit to jelovirt/dita-ot that referenced this issue Jul 6, 2018

Fix Antenna House log processor dita-ot#2662
Signed-off-by: Jarno Elovirta <jarno@elovirta.com>

raducoravu added a commit that referenced this issue Jul 6, 2018

@infotexture

This comment has been minimized.

Member

infotexture commented Jul 14, 2018

Fixed for 3.1.1 w/ PR #3012.

3.2 automation moved this from To do to Done Jul 14, 2018

@infotexture infotexture added this to the 3.1.1 milestone Jul 14, 2018

@infotexture infotexture removed this from Done in 3.2 Jul 14, 2018

@infotexture infotexture added this to To do in 3.1.1 via automation Jul 14, 2018

@infotexture infotexture moved this from To do to Done in 3.1.1 Jul 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment