Introduction and a request for help
Hi all;
I'm part of the Red Hat and Fedora documentation teams, and along the way I've picked up maintainership of a few Java packages that are important to our publishing process. Unfortunately, one of them is causing me some trouble on F15, and I wondered if I could get some more eyes on it please? The package in question is FOP, which we use to generate PDFs. I can build the current upstream version (1.0)[1], but it doesn't actually work! Instead, FOP errors out because it can't find the event-model.xml files that it needs. There's a bug open that shows the error message -- https://bugzilla.redhat.com/show_bug.cgi?id=689930 Comparing the package built on Koji with the binary available upstream, it seems that there should be one of these event model files for most of the classes in the .jar, but they're simply not created at build time. The problem is in our EventProducerCollector, which is patched to use a different version of qdox (1.12) from the one that upstream bundles with FOP (1.6). Specifically, clazz.getParentClass() is always null and would result in a null pointer exception: /home/rlandmann/rpmbuild/BUILD/fop-1.0/build.xml:374: java.lang.NullPointerException at com.thoughtworks.qdox.model.JavaMethod.getReturnTy pe(JavaMethod.java:464) at com.thoughtworks.qdox.model.JavaMethodDelegate.get ReturnType(JavaMethodDelegate.java:26) at com.thoughtworks.qdox.model.JavaMethodDelegate.get ReturnType(JavaMethodDelegate.java:166) at org.apache.fop.tools.EventProducerCollector.create MethodModel(EventProducerCollector.java:142) at org.apache.fop.tools.EventProducerCollector.proces sEventProducerInterface(EventProducerCollector.jav a:130) at org.apache.fop.tools.EventProducerCollector.scanFi le(EventProducerCollector.java:99) at org.apache.fop.tools.EventProducerCollectorTask.pr ocessFileSets(EventProducerCollectorTask.java:213) at org.apache.fop.tools.EventProducerCollectorTask.ex ecute(EventProducerCollectorTask.java:69) at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknow n Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:39 0) at org.apache.tools.ant.Target.performTasks(Target.ja va:411) at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project .java:1368) at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Projec t.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher. java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher .java:109) ...except that we have a check at lines 125-127 that just quits if clazz.getParentClass() is null. If anyone has time and inclination to take a look for me, I'd appreciate any tips about what to try next. I can't see why getParentClass() isn't working on the various EventProducer classes in the source. :( TIA Rudi [1] http://koji.fedoraproject.org/koji/buildinfo?buildID=246382 -- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel |
Introduction and a request for help
Hi all;
I'm part of the Red Hat and Fedora documentation teams, and along the way I've picked up maintainership of a few Java packages that are important to our publishing process. Unfortunately, one of them is causing me some trouble on F15, and I wondered if I could get some more eyes on it please? The package in question is FOP, which we use to generate PDFs. I can build the current upstream version (1.0)[1], but it doesn't actually work! Instead, FOP errors out because it can't find the event-model.xml files that it needs. There's a bug open that shows the error message -- https://bugzilla.redhat.com/show_bug.cgi?id=689930 Comparing the package built on Koji with the binary available upstream, it seems that there should be one of these event model files for most of the classes in the .jar, but they're simply not created at build time. The problem is in our EventProducerCollector, which is patched to use a different version of qdox (1.12) from the one that upstream bundles with FOP (1.6). Specifically, clazz.getParentClass() is always null and would result in a null pointer exception: /home/rlandmann/rpmbuild/BUILD/fop-1.0/build.xml:374: java.lang.NullPointerException at com.thoughtworks.qdox.model.JavaMethod.getReturnTy pe(JavaMethod.java:464) at com.thoughtworks.qdox.model.JavaMethodDelegate.get ReturnType(JavaMethodDelegate.java:26) at com.thoughtworks.qdox.model.JavaMethodDelegate.get ReturnType(JavaMethodDelegate.java:166) at org.apache.fop.tools.EventProducerCollector.create MethodModel(EventProducerCollector.java:142) at org.apache.fop.tools.EventProducerCollector.proces sEventProducerInterface(EventProducerCollector.jav a:130) at org.apache.fop.tools.EventProducerCollector.scanFi le(EventProducerCollector.java:99) at org.apache.fop.tools.EventProducerCollectorTask.pr ocessFileSets(EventProducerCollectorTask.java:213) at org.apache.fop.tools.EventProducerCollectorTask.ex ecute(EventProducerCollectorTask.java:69) at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:291) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknow n Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:39 0) at org.apache.tools.ant.Target.performTasks(Target.ja va:411) at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project .java:1368) at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Projec t.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:809) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher. java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher .java:109) ...except that we have a check at lines 125-127 that just quits if clazz.getParentClass() is null. If anyone has time and inclination to take a look for me, I'd appreciate any tips about what to try next. I can't see why getParentClass() isn't working on the various EventProducer classes in the source. :( TIA Rudi [1] http://koji.fedoraproject.org/koji/buildinfo?buildID=246382 -- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel |
Introduction and a request for help
2011/6/9 Ruediger Landmann:
> Hi all; > The problem is in our EventProducerCollector, which is patched to use a > different version of qdox (1.12) from the one that upstream bundles with > FOP (1.6). Specifically, clazz.getParentClass() is always null and would > result in a null pointer exception: > ...except that we have a check at lines 125-127 that just quits if > clazz.getParentClass() is null. It seems that JavaMethod[] JavaClass.getMethods(boolean) call returns some null values; should check for that also in line 131 -- Guido Grazioli <guido.grazioli@gmail.com> Via Parri 11 48011 - Alfonsine (RA) Mobile: +39 347 1017202 (10-18) Key FP = 7040 F398 0DED A737 7337* DAE1 12DC A698 5E81 2278 Linked in: http://www.linkedin.com/in/guidograzioli -- java-devel mailing list java-devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/java-devel |
| All times are GMT. The time now is 12:45 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.