Menu

org.apache.commons.io.IOUtils

Help
ben
2008-05-30
2013-03-22
  • ben

    ben - 2008-05-30

    I made a plugin which is used by an RCP application.

    It works perfectly under linux, but under Win32 I get this crash when I try to open my editor :

    !ENTRY org.eclipse.ui 4 0 2008-05-30 15:42:37.484

    !MESSAGE Unable to create editor ID fr.dcn.dsl.ccmd.model.editor: The editor class could not be instantiated. This usually indicates that the editor's class name was mistyped in plugin.xml.

    !STACK 0

    java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils

        at org.gems.designer.css.parser.AttributesManager.loadAttributes(AttributesManager.java:166)

        at org.gems.designer.css.parser.AttributesManager.getAttributes(AttributesManager.java:150)

        at org.gems.designer.css.parser.AttributesManager.getAttributes(AttributesManager.java:142)

        at org.gems.designer.css.parser.AttributesManager.getAttributesObject(AttributesManager.java:133)

        at org.gems.designer.dsml.css.manager.GemsAttributesManager.getAttributesObject(GemsAttributesManager.java:96)

        at org.gems.designer.dsml.styles.palette.PaletteStyler.buildPalette(PaletteStyler.java:28)

        at org.gems.designer.AbstractPaletteProvider.createComponentsDrawer(AbstractPaletteProvider.java:251)

        at org.gems.designer.AbstractPaletteProvider.createCategories(AbstractPaletteProvider.java:135)

        at org.gems.designer.AbstractPaletteProvider.createPalette(AbstractPaletteProvider.java:90)

        at fr.dcn.dsl.ccmd.model.ControlCommandPaletteProvider.createPalette(ControlCommandPaletteProvider.java:18)

        at fr.dcn.dsl.ccmd.model.DSMLEditor.getPaletteRoot(DSMLEditor.java:36)

        at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.setEditDomain(GraphicalEditorWithFlyoutPalette.java:143)

        at org.gems.designer.GemsEditor.<init>(GemsEditor.java:465)

        at fr.dcn.dsl.ccmd.model.DSMLEditor.<init>(DSMLEditor.java:26)
    ....

    I found that this class was used in org.gems.designer.css.parser.AttributesManager.loadAttributes, so I tried to add org.apache.commons.io JAR in my plugin directory but it didn't solve the problem.

    I seems that the error's raised when trying to parse CSS file.

    Can you tell me more on that method ? Why the bug only comes on Win32 ?

    Thanks.

     
    • Jules White

      Jules White - 2008-06-05

      This is a very strange error!

      Do you have two plugins with the same DSMLID? This can cause naming conflicts and create strange problems. Is it possible that you have a build of the org.gems.designer.dsml.css.parser.jar without the IOUtils?

       
      • ben

        ben - 2008-06-05

        Thanks for your answer but I found the solution after several days ...

        I came from the disk where I executed the RCP from under XP, it was a problem of rights on that disk ...

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.