wjc272008 / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Unsupported type exception importing model from Blender #547

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I was imported a model (the one in attachment) done in blender when I got this.

java.lang.IllegalArgumentException: Unsupported type: 
com.jme3.scene.plugins.blender.objects.Properties
    at com.jme3.scene.UserData.getObjectType(UserData.java:98)
    at com.jme3.scene.Spatial.setUserData(Spatial.java:1223)
    at com.jme3.scene.plugins.blender.curves.CurvesHelper.toCurve(CurvesHelper.java:211)
    at com.jme3.scene.plugins.blender.objects.ObjectHelper.toObject(ObjectHelper.java:182)
    at com.jme3.scene.plugins.blender.AbstractBlenderLoader.toObject(AbstractBlenderLoader.java:137)
    at com.jme3.scene.plugins.blender.BlenderLoader.toObject(BlenderLoader.java:71)
    at com.jme3.scene.plugins.blender.BlenderModelLoader.load(BlenderModelLoader.java:66)
    at com.jme3.scene.plugins.blender.BlenderModelLoader.load(BlenderModelLoader.java:52)
    at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:283)
    at com.jme3.asset.DesktopAssetManager.loadModel(DesktopAssetManager.java:369)
[catch] at 
com.jme3.gde.core.assets.SpatialAssetDataObject.loadAsset(SpatialAssetDataObject
.java:90)
    at com.jme3.gde.core.assets.SpatialAssetDataObject.loadAsset(SpatialAssetDataObject.java:53)
    at com.jme3.gde.core.assets.AssetData.loadAsset(AssetData.java:84)
    at com.jme3.gde.modelimporter.ModelImporterVisualPanel3.loadModel(ModelImporterVisualPanel3.java:90)
    at com.jme3.gde.modelimporter.ModelImporterVisualPanel3.loadSettings(ModelImporterVisualPanel3.java:59)
    at com.jme3.gde.modelimporter.ModelImporterWizardPanel3.readSettings(ModelImporterWizardPanel3.java:81)
    at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:910)
    at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:861)
    at org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:1065)
    at org.openide.WizardDescriptor.access$1200(WizardDescriptor.java:137)
    at org.openide.WizardDescriptor$Listener$1.run(WizardDescriptor.java:2052)
    at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1480)
    at org.openide.WizardDescriptor.access$1300(WizardDescriptor.java:137)
    at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:2071)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:459)
    at $Proxy38.actionPerformed(Unknown Source)
    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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6290)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6055)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4653)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2482)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:621)
    at java.awt.EventQueue$2.run(EventQueue.java:619)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    at java.awt.Dialog$1.run(Dialog.java:1044)
    at java.awt.Dialog$3.run(Dialog.java:1096)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1094)
    at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1038)
    at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1072)
    at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1060)
    at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126)
    at org.openide.util.Mutex.doEventAccess(Mutex.java:1361)
    at org.openide.util.Mutex.readAccess(Mutex.java:271)
    at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1045)
    at java.awt.Component.show(Component.java:1584)
    at java.awt.Component.setVisible(Component.java:1536)
    at java.awt.Window.setVisible(Window.java:841)
    at java.awt.Dialog.setVisible(Dialog.java:984)
    at com.jme3.gde.modelimporter.ImportModel.actionPerformed(ImportModel.java:52)
    at org.openide.awt.InjectorExactlyOne.actionPerformed(InjectorExactlyOne.java:78)
    at org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:226)
    at org.openide.awt.ContextManager.actionPerformed(ContextManager.java:250)
    at org.openide.awt.ContextAction.actionPerformed(ContextAction.java:109)
    at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:93)
    at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
    at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
    at org.openide.awt.GeneralAction$DelegateAction.actionPerformed(GeneralAction.java:219)
    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.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6290)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6055)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4653)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2482)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:621)
    at java.awt.EventQueue$2.run(EventQueue.java:619)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
    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)

Original issue reported on code.google.com by caixote....@gmail.com on 22 Oct 2012 at 9:06

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot to say:
- I just updated the jme today
- In the output there is this:
Loading obejct: Camera
Camera created (W: 640, H: 480)
Camera: (26.476543, 3.8549619, 67.07374)--> null
Child (Camera) attached to this node (nrp-tridente.blend)
Loading obejct: Empty
Importing empty.
Empty: (-31.0, -2.0916936, -0.0)--> null
Child (Empty) attached to this node (nrp-tridente.blend)
Loading obejct: fin-bottom
Importing curve/nurb.
No front face in curve implemented yet!
No back face in curve implemented yet!
Loading material.
Material's name: Black
Loaded material definition: Phong Lighting
Component hidden

Original comment by caixote....@gmail.com on 22 Oct 2012 at 9:10

GoogleCodeExporter commented 9 years ago

Original comment by ShadowIs...@gmail.com on 10 Nov 2012 at 8:54

GoogleCodeExporter commented 9 years ago
The properties loading was updated in ObjectHelper and not in CurvesHelper. My 
mistake, now the model loads correctly.

Original comment by mrogu...@poczta.fm on 14 Nov 2012 at 10:31