Please install this new version here.
https://github.com/shannah/mirah-nbm/blob/master/bin/ca-weblite-netbeans-mirah.nbm

It won't fix the issue, but it will give a better error stack trace that
will tell us which class it is choking on.  Please post the new stack
trace.  If you can provide the relevant parts of the offending classes (the
error will tell you which class), that would help also.

Best regards

Steve

On Thu, Aug 9, 2018 at 12:17 PM, <[email protected]> wrote:

> Steve,
>
> After updating the plugin there is still an issue. Here is the error:
>
> interface Dto
> Failed to get signature for method
> public <T>T get(String url, Class<T> type, long id) throws Exception;
> message: Could not find class T
> interface Dto
> D:\Project\NetBeans\OrdyxMobileStage\nbproject\mirah-build-cn1.xml:152:
> java.lang.NullPointerException
> at ca.weblite.asm.JavaStubFactory$1.visitClass(JavaStubFactory.java:188)
> at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:720)
> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
> at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:81)
> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
> at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99)
> at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:133)
> at ca.weblite.asm.JavaStubFactory$1.visitClass(JavaStubFactory.java:199)
> at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:720)
> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
> at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99)
> at com.sun.source.util.TreeScanner.visitCompilationUnit(
> TreeScanner.java:120)
> at ca.weblite.asm.JavaStubFactory$1.visitCompilationUnit(
> JavaStubFactory.java:110)
> at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.
> accept(JCTree.java:550)
> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
> at ca.weblite.asm.JavaStubFactory.createStubs(JavaStubFactory.java:213)
> at ca.weblite.asm.JavaSourceClassLoader.findStub(
> JavaSourceClassLoader.java:107)
> at ca.weblite.asm.BaseClassLoader.findStub(BaseClassLoader.java:41)
> at ca.weblite.asm.MirahClassLoader.findStub(MirahClassLoader.java:321)
> at ca.weblite.asm.ClassFinder.findFQNStub(ClassFinder.java:131)
> at ca.weblite.asm.ClassFinder.findStub(ClassFinder.java:226)
> at ca.weblite.asm.JavaExtendedStubCompiler$2.visitMethodImpl(
> JavaExtendedStubCompiler.java:432)
> at ca.weblite.asm.JavaExtendedStubCompiler$2.visitMethod(
> JavaExtendedStubCompiler.java:384)
> at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:800)
> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
> at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:81)
> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
> at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99)
> at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:133)
> at ca.weblite.asm.JavaExtendedStubCompiler$2.visitClass(
> JavaExtendedStubCompiler.java:818)
> at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:720)
> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
> at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99)
> at com.sun.source.util.TreeScanner.visitCompilationUnit(
> TreeScanner.java:120)
> at ca.weblite.asm.JavaExtendedStubCompiler$2.visitCompilationUnit(
> JavaExtendedStubCompiler.java:278)
> at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.
> accept(JCTree.java:550)
> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
> at ca.weblite.asm.JavaExtendedStubCompiler.compile(
> JavaExtendedStubCompiler.java:850)
> at ca.weblite.asm.JavaExtendedStubCompiler.compileFile(
> JavaExtendedStubCompiler.java:176)
> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(
> JavaExtendedStubCompiler.java:213)
> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(
> JavaExtendedStubCompiler.java:216)
> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(
> JavaExtendedStubCompiler.java:216)
> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(
> JavaExtendedStubCompiler.java:216)
> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(
> JavaExtendedStubCompiler.java:195)
> at ca.weblite.asm.WLMirahCompiler.compile(WLMirahCompiler.java:208)
> at ca.weblite.mirah.ant.MirahcTask.execute(MirahcTask.java:158)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
> at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.tools.ant.dispatch.DispatchUtils.execute(
> DispatchUtils.java:106)
> at org.apache.tools.ant.Task.perform(Task.java:348)
> at org.apache.tools.ant.Target.execute(Target.java:435)
> at org.apache.tools.ant.Target.performTasks(Target.java:456)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
> at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
> DefaultExecutor.java:41)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
> at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(
> BridgeImpl.java:286)
> at org.apache.tools.ant.module.run.TargetExecutor.run(
> TargetExecutor.java:555)
> at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
>
> On Tuesday, August 7, 2018 at 1:32:18 PM UTC-4, Steve Hannah wrote:
>>
>> Okay.  Thanks.  I've added some tests that reproduce this issue, and I
>> have published a fix.  You should be able to update the Mirah netbeans
>> plugin in the Netbeans update center - or install from
>> https://github.com/shannah/mirah-nbm/blob/master/bin/
>> ca-weblite-netbeans-mirah.nbm
>>
>> Steve
>>
>> On Tue, Aug 7, 2018 at 9:48 AM, <[email protected]> wrote:
>>
>>> Steve,
>>>
>>> I upgraded the plugin through Netbeans. This did not fix the issue,
>>> however it did change the error message a bit. It now shows 2 extra lines:
>>>
>>> Type params is T
>>> Type kind is IDENTIFIER
>>>
>>>
>>>
>>> Failed to get signature for method
>>> public <T>T get(String url, Class<T> type, long id) throws Exception;
>>> message: Could not find class T
>>> Type params is T
>>> Type kind is IDENTIFIER
>>> D:\Project\NetBeans\OrdyxMobileStage\nbproject\mirah-build-cn1.xml:152:
>>> java.lang.RuntimeException: Could not find class for T
>>> at ca.weblite.asm.JavaExtendedStubCompiler$2.visitMethod(JavaEx
>>> tendedStubCompiler.java:486)
>>> at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:800)
>>> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
>>> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
>>> at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99)
>>> at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:133)
>>> at ca.weblite.asm.JavaExtendedStubCompiler$2.visitClass(JavaExt
>>> endedStubCompiler.java:806)
>>> at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:720)
>>> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
>>> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
>>> at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:99)
>>> at com.sun.source.util.TreeScanner.visitCompilationUnit(TreeSca
>>> nner.java:120)
>>> at ca.weblite.asm.JavaExtendedStubCompiler$2.visitCompilationUn
>>> it(JavaExtendedStubCompiler.java:278)
>>> at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(
>>> JCTree.java:550)
>>> at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:68)
>>> at com.sun.source.util.TreeScanner.scan(TreeScanner.java:91)
>>> at ca.weblite.asm.JavaExtendedStubCompiler.compile(JavaExtended
>>> StubCompiler.java:838)
>>> at ca.weblite.asm.JavaExtendedStubCompiler.compileFile(JavaExte
>>> ndedStubCompiler.java:176)
>>> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(Jav
>>> aExtendedStubCompiler.java:213)
>>> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(Jav
>>> aExtendedStubCompiler.java:216)
>>> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(Jav
>>> aExtendedStubCompiler.java:216)
>>> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(Jav
>>> aExtendedStubCompiler.java:216)
>>> at ca.weblite.asm.JavaExtendedStubCompiler.compileDirectory(Jav
>>> aExtendedStubCompiler.java:195)
>>> at ca.weblite.asm.WLMirahCompiler.compile(WLMirahCompiler.java:208)
>>> at ca.weblite.mirah.ant.MirahcTask.execute(MirahcTask.java:158)
>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
>>> at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
>>> thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at org.apache.tools.ant.dispatch.DispatchUtils.execute(Dispatch
>>> Utils.java:106)
>>> at org.apache.tools.ant.Task.perform(Task.java:348)
>>> at org.apache.tools.ant.Target.execute(Target.java:435)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:456)
>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
>>> at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D
>>> efaultExecutor.java:41)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
>>> at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(Bridg
>>> eImpl.java:286)
>>> at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExe
>>> cutor.java:555)
>>> at org.netbeans.core.execution.RunClassThread.run(RunClassThrea
>>> d.java:153)
>>>
>>>
>>> On Tuesday, August 7, 2018 at 9:37:34 AM UTC-4, Steve Hannah wrote:
>>>>
>>>> It looks like your Mirah Netbeans plugin is a little out of date.  I
>>>> just did a rebuild with the latest and posted on github.
>>>> https://github.com/shannah/mirah-nbm/blob/master/bin/ca-webl
>>>> ite-netbeans-mirah.nbm
>>>>
>>>> You should also be able to update through the netbeans update center.
>>>>
>>>> Steve
>>>>
>>>> On Fri, Aug 3, 2018 at 9:49 PM, Shai Almog <[email protected]> wrote:
>>>>
>>>>> I don't know, this will have to wait for Steve who has a holiday on
>>>>> Monday...
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "CodenameOne Discussions" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> Visit this group at https://groups.google.com/grou
>>>>> p/codenameone-discussions.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/codenameone-discussions/f2
>>>>> 5851a6-c815-48ea-bc03-6afbfaae8313%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/f25851a6-c815-48ea-bc03-6afbfaae8313%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Steve Hannah
>>>> Software Developer
>>>> Codename One
>>>> http://www.codenameone.com
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> Visit this group at https://groups.google.com/grou
>>> p/codenameone-discussions.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/codenameone-discussions/3a31b7b9-5840-4bb1-a910-7081c216
>>> 3f52%40googlegroups.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/3a31b7b9-5840-4bb1-a910-7081c2163f52%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Steve Hannah
>> Software Developer
>> Codename One
>> http://www.codenameone.com
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/50ce157b-50dc-4ecb-ac6b-
> b6cfaab7e81f%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/50ce157b-50dc-4ecb-ac6b-b6cfaab7e81f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKUpfF8CCb30Ur02xB4ekbQBRQox3Rmt9M8%3DEfqL7%3Dx2dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to