Error with exporting model

Energy3D Forum Forums Energy3D Questions Error with exporting model

This topic contains 3 replies, has 2 voices, and was last updated by  Charles Xie 3 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #127

    CosmicBanana
    Participant

    Hello, I’ve been using Energy3D to model solar arrays and want to export them as 3D models in the file menu. However, whenever I try to an error comes up, and I think it’s from a lack of memory.
    The specific error message is:

    java.lang.RuntimeException: java.lang.IllegalAccessException: Class com.ardor3d.scenegraph.Spatial can not access a member of class org.concord.energy3d.model.MyCylinder with modifiers “public”
    at com.ardor3d.scenegraph.Spatial.duplicate(Spatial.java:1301)
    at com.ardor3d.scenegraph.Spatial.makeCopy(Spatial.java:1261)
    at com.ardor3d.scenegraph.Mesh.makeCopy(Mesh.java:621)
    at org.concord.energy3d.model.HousePart.addPrintMesh(HousePart.java:1384)
    at org.concord.energy3d.model.Mirror.addPrintMeshes(Mirror.java:683)
    at org.concord.energy3d.scene.Scene.exportObj(Scene.java:688)
    at org.concord.energy3d.gui.MainFrame$104.call(MainFrame.java:3230)
    at com.ardor3d.util.GameTask.invoke(GameTask.java:124)
    at com.ardor3d.util.GameTaskQueue.execute(GameTaskQueue.java:161)
    at org.concord.energy3d.scene.SceneManager.update(SceneManager.java:469)
    at com.ardor3d.framework.FrameHandler.updateFrame(FrameHandler.java:68)
    at org.concord.energy3d.scene.SceneManager.run(SceneManager.java:440)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.IllegalAccessException: Class com.ardor3d.scenegraph.Spatial can not access a member of class org.concord.energy3d.model.MyCylinder with modifiers “public”
    at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102)
    at java.lang.Class.newInstance(Class.java:436)
    at com.ardor3d.scenegraph.Spatial.duplicate(Spatial.java:1292)
    … 12 more

    When I open system information in the help tab, it says that I have a maximum of 495 mb of memory. Java version says 1.8.0_172. However, my computer has 16 gb of memory. Would it be possible to just allocate more memory, and how? And if the problem with exporting the model isn’t associated with memory, how would I fix that?

    Thanks.

    #128

    Charles Xie
    Keymaster

    Thanks for reporting the bug. It has been fixed with the updated version (8.5.5). If you open your Energy3D, it should automatically update to the latest.

    PS: I am also curious about your model. Would you mind sharing a screenshot or the model here?

    #129

    CosmicBanana
    Participant

    Thanks for the fix, everything seems to work properly now.

    I used Energy3D to make a model for the layout of heliostats in concentrating several arrays, with space in the middle of a large foundation for a building that I would add and put together for a presentation in Autodesk Inventor. Here’s a screenshot:

    Attachments:
    You must be logged in to view attached files.
    #131

    Charles Xie
    Keymaster

    Very cool! Thanks for sharing.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.