On 03/16/2011 03:51 PM, Camille Bégnis wrote: > > We've been experiencing this issue from time to time, while doing our > tests: XXE suddenly stopped to work, although it remained active: one > could navigate into the document. > I have finally managed to catch the error log which you will find below. > This error happened after many edits in a new DocBookV5 document, while > inserting an image, even though many images had been inserted previously. > > > Any idea? >
No idea. In XXE v4.8, a NullPointerException at AbstractImageViewport.java:276 means: The document references an image which cannot be displayed (whatever the reason, including out of memory errors which are caught by AbstractImageViewport). Therefore, the image viewport uses a fallback image. The NullPointerException is caused by the fact that this fallback image is null. After closely looking at the code, I don't see how the fallback image could be null. > > > Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException > at > com.xmlmind.xmledit.styledgadget.AbstractImageViewport.layoutContent(AbstractImageViewport.java:276) > at com.xmlmind.xmledit.styledgadget.Box.layout(Box.java:91) > at > com.xmlmind.xmledit.styledgadget.Division.layoutContent(Division.java:116) > at > com.xmlmind.xmledit.styledgadget.ContainerBox.layout(ContainerBox.java:72) > at > com.xmlmind.xmledit.styledgadget.TextLineContainerBox.layout(TextLineContainerBox.java:61) > at > com.xmlmind.xmledit.styledgadget.TableBody.relayoutChildren(TableBody.java:689) > at > com.xmlmind.xmledit.styledgadget.TableBody.layoutContent(TableBody.java:432) > at > com.xmlmind.xmledit.styledgadget.ContainerBox.layout(ContainerBox.java:72) > at > com.xmlmind.xmledit.styledgadget.Division.layoutContent(Division.java:116) > at > com.xmlmind.xmledit.styledgadget.ContainerBox.layout(ContainerBox.java:72) > at > com.xmlmind.xmledit.styledgadget.TextLineContainerBox.layout(TextLineContainerBox.java:61) > at > com.xmlmind.xmledit.styledgadget.Division.layoutContent(Division.java:116) > at > com.xmlmind.xmledit.styledgadget.ContainerBox.layout(ContainerBox.java:72) > at > com.xmlmind.xmledit.styledgadget.TextLineContainerBox.layout(TextLineContainerBox.java:61) > at > com.xmlmind.xmledit.styledgadget.LabeledItem.layout(LabeledItem.java:186) > at > com.xmlmind.xmledit.styledgadget.Division.layoutContent(Division.java:116) > at > com.xmlmind.xmledit.styledgadget.ContainerBox.layout(ContainerBox.java:72) > at > com.xmlmind.xmledit.styledgadget.TextLineContainerBox.layout(TextLineContainerBox.java:61) > at com.xmlmind.xmledit.gadget.Gadget.relayout(Gadget.java:312) > at com.xmlmind.xmledit.styledgadget.Division.refresh(Division.java:55) > at > com.xmlmind.xmledit.view.DocumentView.editCompleted(DocumentView.java:2530) > at > com.xmlmind.xml.doc.Document.notifyDocumentListeners(Document.java:664) > at com.xmlmind.xml.doc.Document.fireEditSequence(Document.java:742) > at com.xmlmind.xml.doc.Document.endEdit(Document.java:559) > at > com.xmlmind.xmledit.edit.ElementEditor.insert(ElementEditor.java:1425) > at > com.xmlmind.xmledit.edit.ElementEditor.insert(ElementEditor.java:1389) > at > com.xmlmind.xmledit.edit.ElementEditor.insert(ElementEditor.java:1358) > at com.xmlmind.xmledit.cmd.edit.Insert.doExecute(Insert.java:314) > at > com.xmlmind.xmledit.cmd.edit.ChooseFieldCommand.execute(ChooseFieldCommand.java:89) > at > com.xmlmind.xmledit.cmd.edit.ChooseFieldCommand.execute(ChooseFieldCommand.java:45) > at com.xmlmind.xmleditapp.kit.part.InsertCmd.execute(InsertCmd.java:43) > at > com.xmlmind.xmledit.cmd.CommandBase.executeCommand(CommandBase.java:28) > at > com.xmlmind.xmleditapp.cmd.macro.MacroCommand$Invocation.doExecute(MacroCommand.java:231) > at > com.xmlmind.xmleditapp.cmd.macro.MacroCommand$Item.execute(MacroCommand.java:92) > at > com.xmlmind.xmleditapp.cmd.macro.MacroCommand$Sequence.doExecute(MacroCommand.java:364) > at > com.xmlmind.xmleditapp.cmd.macro.MacroCommand$Item.execute(MacroCommand.java:92) > at > com.xmlmind.xmleditapp.cmd.macro.MacroCommand$Choice.doExecute(MacroCommand.java:340) > at > com.xmlmind.xmleditapp.cmd.macro.MacroCommand$Item.execute(MacroCommand.java:92) > at > com.xmlmind.xmleditapp.cmd.macro.MacroCommand.doExecute(MacroCommand.java:1107) > at > com.xmlmind.xmleditapp.cmd.macro.MacroCommand.doExecute(MacroCommand.java:1068) > at > com.xmlmind.xmledit.cmd.RecordableCommand.execute(RecordableCommand.java:31) > at > com.xmlmind.xmledit.cmd.CommandBase.executeCommand(CommandBase.java:28) > at com.xmlmind.xmleditapp.kit.EditAction.doIt(EditAction.java:86) > at > com.xmlmind.xmleditapp.kit.AppAction.actionPerformed(AppAction.java:39) > at > javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) > at > javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) > at > javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) > at > javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) > at javax.swing.AbstractButton.doClick(AbstractButton.java:357) > at > javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223) > at > javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264) > at java.awt.Component.processMouseEvent(Component.java:6267) > at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) > at java.awt.Component.processEvent(Component.java:6032) > at java.awt.Container.processEvent(Container.java:2041) > at java.awt.Component.dispatchEventImpl(Component.java:4630) > at java.awt.Container.dispatchEventImpl(Container.java:2099) > at java.awt.Component.dispatchEvent(Component.java:4460) > at > java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577) > at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238) > at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168) > at java.awt.Container.dispatchEventImpl(Container.java:2085) > at java.awt.Component.dispatchEvent(Component.java:4460) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) > > > VM Summary > mercredi 16 mars 2011 15 h 50 CET > > Connection name: > pid: 3685 sun.plugin2.main.client.PluginMain > write_pipe_name=/tmp/.com.sun.deploy.net.socket.3341.4837761693715400201.AF_UNIX > Virtual Machine: > Java HotSpot(TM) Server VM version 17.1-b03 > Vendor: > Sun Microsystems Inc. > Name: > 3685@localhost > Uptime: > 4 hours 26 minutes > Process CPU time: > 5 minutes > JIT compiler: > HotSpot Tiered Compilers > Total compile time: > 24,052 seconds > > Live threads: > 30 > Peak: > 32 > Daemon threads: > 20 > Total threads started: > 129 > Current classes loaded: > 7 310 > Total classes loaded: > 7 389 > Total classes unloaded: > 79 > > > > Current heap size: > 116 845 kbytes > Maximum heap size: > 466 048 kbytes > Committed memory: > 188 608 kbytes > Pending finalization: > 0 objects > Garbage collector: > Name = 'PS Scavenge', Collections = 1 228, Total time spent = 6,796 seconds > Garbage collector: > Name = 'PS MarkSweep', Collections = 18, Total time spent = 2,817 seconds > > Operating System: > Linux 2.6.33.7-desktop-2mnb > Architecture: > i386 > Number of processors: > 2 > Committed virtual memory: > 978 600 kbytes > Total physical memory: > 3 112 452 kbytes > Free physical memory: > 87 444 kbytes > Total swap space: > 3 887 688 kbytes > Free swap space: > 3 735 336 kbytes > > VM arguments: > -D__jvm_launched=238434121893 > -Xbootclasspath/a:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/deploy.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/javaws.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/plugin.jar > -Dsun.awt.warmup=true -Xmx512m -Xss4m -Djavaws.XXE.dictionaryNames=fr;en > -Djavaws.XXE.configurations=addon:custom/0docbook5.xxe;addon:config/dita/bookmap.xxe;addon:mathml_config/db5mml/db5mml.xxe;addon:mathml_config/ditamml/ditamml.xxe;addon:config/docbook/docbook.xxe;addon:config/docbook5/docbook5.xxe;addon:config/dita/map.xxe;addon:mathml_config/standalone/mathml.xxe;addon:config/dita/topic.xxe;addon:config/xhtml/xhtml_loose.xxe;addon:config/xhtml/xhtml_strict.xxe > -Djavaws.XXE.catalogs=addon:batik_imagetoolkit/svg_catalog.xml;addon:jeuclid_imagetoolkit/mathml_catalog.xml;addon:config/catalog.xml;addon:mathml_config/mathml_catalog.xml > -Djavaws.XXE.guiCustomizations=addon:mathml_config/common/customize.xxe_gui > -Djavaws.XXE.drivePluginClassNames=com.xmlmind.xmleditext.dav_vdrive.DAVDriveFactory > -Djavaws.XXE.imageToolkitPluginClassNames=com.xmlmind.xmleditext.batik_imagetoolkit.BatikImageToolkit;net.sourceforge.jeuclid.xxe.JEuclidImageToolkit;com.xmlmind.xmleditext.jimi_imagetoolkit.JimiImageToolkit;com.xmlmind.xmleditext.mathml.imgtk.MathMLImageToolkit > > Class path: > /usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/classes > Library path: > /usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/i386:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/../lib/i386:/opt/google/chrome:/opt/google/chrome/lib:/usr/java/packages/lib/i386:/lib:/usr/lib > Boot class path: > /usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/classes:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/deploy.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/javaws.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.22/jre/lib/plugin.jar > -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

