JGDocException: Name not specified for variable

22 views
Skip to first unread message

RobertoMaggi

unread,
Mar 14, 2011, 10:23:29 AM3/14/11
to jgrousedoc
Hi there, I get this error when running ant:
--------------------------------
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-
openjdk/lib/tools.jar
Buildfile: build.xml

setup:

clean:
[delete] Deleting directory /var/www/wikialiotta/extensions/Byog/
docs/clientEngine

makeProjectFile:
[mkdir] Created dir: /var/www/wikialiotta/extensions/Byog/docs/
clientEngine
[jgdoc] Building jGrouseDoc project file (BIN) /var/www/
wikialiotta/extensions/Byog/docs/jGrouse/../clientEngine/jgrouse.jgd

BUILD FAILED
jgrouse.jgdoc.JGDocException: Name not specified for variable
at jgrouse.jgdoc.DocParser.createCommentTag(DocParser.java:366)
at jgrouse.jgdoc.DocParser.makeCommentTag(DocParser.java:596)
at jgrouse.jgdoc.DocParser.parseCommentBuffer(DocParser.java:589)
at jgrouse.jgdoc.DocParser.parseComment(DocParser.java:651)
at jgrouse.jgdoc.DocParser.doExtract(DocParser.java:132)
at jgrouse.jgdoc.ant.JGTask.execute(JGTask.java:136)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

----------------------------

I can't understand if it's a JGrouse error (and if so, what's the
problem) or if it's an error in my code comments.
Any ideas?
If it's a code comment error, is there any way to get the file and/or
the codeline that produces it?
Thanks!

Rob

siachka

unread,
Mar 14, 2011, 7:46:39 PM3/14/11
to jgrousedoc
Rob,

That's odd. Normally such errors are followed by full diagnostics.
When I was trying to replicate the problem, my tests were showing
correct output:
[jgdoc] Warning jbooze.js:4: Name not specified for variable

Check what is the value of stopOnErrors parameter in your properties
file and set it to "false".

Regards,
Denis

RobertoMaggi

unread,
Mar 15, 2011, 7:04:14 AM3/15/11
to jgrousedoc
Thanks for the tip Denis. Actually It was set to "true" but if I set
it to "false" then it comes another error:

----------------------
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-
openjdk/lib/tools.jar
Buildfile: build.xml

setup:

clean:
[delete] Deleting directory /var/www/wikialiotta/extensions/Byog/
docs/clientEngine

makeProjectFile:
[mkdir] Created dir: /var/www/wikialiotta/extensions/Byog/docs/
clientEngine
[jgdoc] Building jGrouseDoc project file (BIN) /var/www/
wikialiotta/extensions/Byog/docs/jGrouse/../clientEngine/jgrouse.jgd

BUILD FAILED
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at java.lang.AbstractStringBuilder.delete(AbstractStringBuilder.java:
694)
at java.lang.StringBuffer.delete(StringBuffer.java:390)
at jgrouse.jgdoc.DocParser.parseComment(DocParser.java:614)
Total time: 3 seconds
--------------
Any ideas?

Rob

siachka

unread,
Mar 15, 2011, 7:26:33 AM3/15/11
to jgrousedoc
That seems to be a bug...

Most likely one of your files has a string like /**/
Please open a new issue at http://code.google.com/p/jgrousedoc/issues/list

Regards,
Denis

siachka

unread,
Mar 15, 2011, 7:29:12 AM3/15/11
to jgrousedoc
Actually there is already an entry #87 for that one... Will fix it
shortly

On Mar 15, 7:26 am, siachka <denis.riabtc...@gmail.com> wrote:
> That seems to be a bug...
>
> Most likely one of your files has a string like /**/
> Please open a new issue athttp://code.google.com/p/jgrousedoc/issues/list

RobertoMaggi

unread,
Mar 15, 2011, 9:01:04 AM3/15/11
to jgrousedoc
Hey really thanks for the tip! I checked my code and there was two
empty comments /**/ .
Now that I've removed them I get a lot of warning in the ouput, and
that's good but in the second step of the doc generation I get this
error :

-------------------------
antgenxml:

antgenvm:
Processing file /var/www/wikialiotta/extensions/Byog/docs/jGrouse/../
clientEngine/jgrouse.jgd
[vmtask] Velocimacro : added #genSummary( coll pathPart
section ) : source = skins/noframes/vm/antgen.vm
[vmtask] Processing skins/noframes/vm/antgen.vm into ../
clientEngine/antgen.xml
[vmtask] Method getLogical threw exception for reference $jg in
template skins/noframes/vm/antgen.vm at [1,10]
[vmtask] VMProxyArg.getObject() : method invocation error getting
value

BUILD FAILED
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'getLogical' in class jgrouse.jgdoc.elements.DocManager threw
exception java.lang.NullPointerException @ skins/noframes/vm/
antgen.vm[1,14]
at
org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:
205)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
203)
at
org.apache.velocity.runtime.directive.VMProxyArg.getObject(VMProxyArg.java:
278)
at org.apache.velocity.context.VMContext.get(VMContext.java:217)
at
org.apache.velocity.runtime.parser.node.ASTReference.getVariableValue(ASTReference.java:
740)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:
175)
at
org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:
419)
at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:
383)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:
170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:
194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:
170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:
318)
at org.apache.velocity.Template.merge(Template.java:254)
at jgrouse.jgdoc.ant.VMTask.execute(VMTask.java:129)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
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:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:
1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NullPointerException
at jgrouse.jgdoc.elements.DocManager.getLogical(DocManager.java:633)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.velocity.runtime.parser.node.PropertyExecutor.execute(PropertyExecutor.java:
137)
at org.apache.velocity.util.introspection.UberspectImpl
$VelGetterImpl.invoke(UberspectImpl.java:350)
at
org.apache.velocity.runtime.parser.node.ASTIdentifier.execute(ASTIdentifier.java:
180)
... 30 more

Total time: 8 seconds

----------------

I tried configuring the .properties with all the skins (classic,
modern, noframes) but I still get this error. Is the problem still
about jGrouse? Or is something about Ant?
Thanks a lot!

Rob
Reply all
Reply to author
Forward
0 new messages