I've been using the DepictionGenerator quite a bit, and it's been working perfectly until now. I just refactored an old project and split it into pieces and put the image-depiction in a separate jar-file, now the DepictionGenerator start to throw an IllegalAccessError; Exception in thread "main" java.lang.IllegalAccessError: You requested the active parameter of type org.openscience.cdk.renderer.RendererModel$Padding, but it has not been registered yet. Did you make sure the IGeneratorParameter is registered, by registring the appropriate IGenerator? Alternatively, you can use getDefault() to query the default value for any parameter on the classpath. at org.openscience.cdk.renderer.RendererModel.getParameter(RendererModel.java:156) at org.openscience.cdk.renderer.RendererModel.set(RendererModel.java:196) at org.openscience.cdk.depict.DepictionGenerator.getModel(DepictionGenerator.java:287) at org.openscience.cdk.depict.DepictionGenerator.depict(DepictionGenerator.java:351) at org.openscience.cdk.depict.DepictionGenerator.depict(DepictionGenerator.java:299)
Running tests or code within the first project work just as before, without any problems. Tried bumping cdk version to 1.5.13, still same problem. Built the jar-file with Maven and Ant, same problem. Any thoughts? I've skimmed the cdk-user mailing list and saw an old discussion with the same error being thrown, but when using a non-supported Generator. I'm only using the StandardGenerator in my code, and also tried with removing all but the "vanilla" DepictionGenerator instance without any modifications, still the same problem.. Regards, Staffan
------------------------------------------------------------------------------
_______________________________________________ Cdk-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cdk-user

