Errors with bgltf converter

I’m trying to convert collada models to bgltf with the jar and exe files downloaded (Win 7 x64)

I get the following error message below, with just one collada file in the directory:

F:\proj\tpelham_chicago\trunk\utilities\collada2gltfwin64>java -jar colladaToBglTFConverter.jar -c collada2gltf.exe -i pmgs -o bgltf

usage: "java -jar colladaToBgltfConverter

-c,–converter path to collada2gltf.exe

-h,–help usage information

-i,–input input folder containing the collada files

-o,–output output folder to write bgltf files

Converting 1 dae files

hangar_predefined_type_convex_hull.dae

pmgs

Cannot get property ‘parentFile’ on null object

1%

Exception in thread “main” java.lang.reflect.InvocationTargetException

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)

Caused by: java.util.concurrent.CancellationException

at jsr166y.ForkJoinTask.reportResult(ForkJoinTask.java:566)

at jsr166y.ForkJoinTask.join(ForkJoinTask.java:611)

at jsr166y.ForkJoinPool.invoke(ForkJoinPool.java:1492)

at groovyx.gpars.extra166y.ParallelArrayWithMapping.apply(ParallelArrayWithMapping.java:48)

at groovyx.gpars.extra166y.ParallelArray.apply(ParallelArray.java:329)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)

at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:44)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)

at groovyx.gpars.pa.GParsPoolUtilHelper.eachParallelPA(GParsPoolUtilHelper.groovy:192)

at groovyx.gpars.GParsPoolUtil.eachParallel(GParsPoolUtil.java:358)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.codehaus.groovy.runtime.metaclass.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:51)

at org.codehaus.groovy.runtime.metaclass.NewInstanceMetaMethod.invoke(NewInstanceMetaMethod.java:54)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)

at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:44)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)

at vcs.bglTFConverter.colladaToBglTFConverter$_main_closure2.doCall(colladaToBglTFConverter.groovy:44)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)

at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)

at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)

at groovyx.gpars.GParsPool$_withExistingPool_closure1.doCall(GParsPool.groovy:174)

at groovyx.gpars.GParsPool$_withExistingPool_closure1.doCall(GParsPool.groovy)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)

at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)

at groovy.lang.Closure.call(Closure.java:423)

at groovy.lang.Closure.call(Closure.java:417)

at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:109)

at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.access$400(GroovyCategorySupport.java:65)

at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:249)

at org.codehaus.groovy.runtime.DefaultGroovyMethods.use(DefaultGroovyMethods.java:403)

at org.codehaus.groovy.runtime.dgm$741.invoke(Unknown Source)

at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:1

at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:99)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:191)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:211)

at groovyx.gpars.GParsPool.withExistingPool(GParsPool.groovy:173)

at groovyx.gpars.GParsPool$withExistingPool$1.callStatic(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:191)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:211)

at groovyx.gpars.GParsPool.withPool(GParsPool.groovy:145)

at groovyx.gpars.GParsPool$withPool$0.callStatic(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:191)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:219)

at groovyx.gpars.GParsPool.withPool(GParsPool.groovy:121)

at groovyx.gpars.GParsPool$withPool.call(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:130)

at vcs.bglTFConverter.colladaToBglTFConverter.main(colladaToBglTFConverter.groovy:42)

… 5 more

Thanks

Tony

Hey Tony,

FYI - I encountered that exact error when using a relative paths for i/o params.
Absolute paths got me on to the next hurdle :slight_smile:

Like you,
I simply have one .dae file in my input dir (has nothing fancy/textures, just a simple shape to test the converter).

The converter finishes without error.
However; when I try to load the resulting .bgltf file in Cesium it crashes.
The same for the output .gltf.

An error occurred while rendering. Rendering has stopped.

RuntimeError: Failed to load model: resources/test/shape.gltf
Error
    at new RuntimeError (http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:7198:19)
    at http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:99866:32
    at Object.then (http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:651:33)
    at http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:731:13
    at processQueue (http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:1081:4)
    at _resolve (http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:767:4)
    at promiseReject (http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:800:11)
    at Object.then (http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:651:33)
    at http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:732:7
    at processQueue (http://localhost:8080/webapp/bower_components/cesiumjs/CesiumUnminified/Cesium.js:1081:4)