|
nk4um Administrator
Posts: 158
|
2009-10-08T23:47:46.000ZOctober 8, 2009 23:47
Thank you for reporting this error and I apologize for the problem.
The fix has been made and it will be published tomorrow.
The problem is in the deployment code in the tutorial module that builds the classpaths, etc. for the demo.sh and demo.bat
file. It uses a rootspace identifier to obtain the physical location of the module. The rootspace identifier was changed during
the final edit of the tutorial and I missed making the change in this code.
-- Randy
|
|
nk4um User
Posts: 26
|
I''m playing with the embedding tutorial and while trying to extract http://localhost:1060/embedded/demo/extract I''ve got a java.lang.NullPointerException: Cannot invoke method getOwningModule() on null object. But apparently it extracts
the folder (I wonder if the error would be that I might clicked it twice?).
I have no "demo.sh" (or "demo.bat") there, only build.xml, Main.java and kernel.properties. However ant compule runs fine.
Then you say that you will find the module under /modules/urn.org.netkernel.tutorial.embedded.module/ note that it is actually
/modules/urn.org.netkernel.tutorial.embedded.module-1.1.0/
having no demo.sh I tried to run like this
embedded-demo$ java -cp ../lib/*:src/ Main /opt/1060-NetKernel-SE-4.0.0-rc3 I 23:20:02 Kernel Starting NetKernel Embedded Demonstration Resource Oriented Computing Platform Version 4 0 Copyright 2002-2009 1060 Research Limited http://www.1060research.com 1060, NetKernel, Resource Oriented Computing are Trademarks of 1060 Research Ltd. I 23:20:02 ModuleManager Module Factory [org.netkernel.module.standard.StandardModuleFactory] registered java.lang.NullPointerException at java.io.Reader.<init>(Reader.java:61) at java.io.InputStreamReader.<init>(InputStreamReader.java:55) at Main.<init>(Main.java:80) at Main.main(Main.java:183)
I suppose that I''m missing things due to thhe error in extracting the package; I removed the embedded-demo folder and tryied
again the extraction, and I get NPE:
java.lang.NullPointerException Cannot invoke method getOwningModule() on null object
Retry the request.
A detailed Exception Trace is available, please report this to the system administrator or use it to identify the source of
the problem. SOURCE res:/embedded/demo/extract as IBinaryStreamRepresentation DynamicImportEndpoint[res:/embedded/demo/extract] HTTP Bridge Overlay org.netkernel.layer0.nkf.NKFException org.netkernel.layer0.nkf.impl.NKFContextImpl.issueKernelRequest() line:492 org.netkernel.layer0.nkf.impl.NKFContextImpl.issueRequestForResponse() line:391 org.netkernel.layer0.util.Utils.delegateRequestInto() line:339 org.netkernel.layer1.endpoint.DynamicImportEndpoint.onRequest() line:122 org.netkernel.layer0.nkf.impl.NKFEndpointImpl.onAsyncRequest() line:93 ... 23 more SOURCE res:/embedded/demo/extract as IBinaryStreamRepresentation MapperOverlay[res:/embedded/demo/extract] Embedded Installer Space org.netkernel.layer0.nkf.NKFException org.netkernel.layer0.nkf.impl.NKFContextImpl.issueKernelRequest() line:492 org.netkernel.layer0.nkf.impl.NKFContextImpl.issueRequestForResponse() line:391 org.netkernel.module.standard.builtin.mapper.MapperConfig$Mapping.onRequest() line:426 org.netkernel.module.standard.builtin.mapper.MapperConfig.onRequest() line:193 org.netkernel.module.standard.endpoint.ConfiguredOverlayImpl.onRequest() line:180 org.netkernel.layer0.nkf.impl.NKFEndpointImpl.onAsyncRequest() line:93 ... 31 more SOURCE active:groovy+operator@res%3A/embedded-demo/extract.gy as Object GroovyRuntime[GroovyRuntime] Lang / Groovy Unhandled Exception in GroovyRuntime res:/embedded-demo/extract.gy line:32 java.lang.NullPointerException Cannot invoke method getOwningModule() on null object org.codehaus.groovy.runtime.NullObject.invokeMethod() line:77 org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod() line:751 org.codehaus.groovy.runtime.InvokerHelper.invokeMethod() line:728 org.codehaus.groovy.runtime.callsite.NullCallSite.call() line:17 org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall() line:40 org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call() line:54 org.codehaus.groovy.runtime.callsite.AbstractCallSite.call() line:121 script1255039402611$_run_closure2.doCall() line:34 sun.reflect.GeneratedMethodAccessor60.invoke() line:-1 sun.reflect.DelegatingMethodAccessorImpl.invoke() line:25 ... 56 more
|