Title: RE: [Xdoclet-user] Build Problem: can not resolve Translator.getString -- Problem continues.

Marcus,

Thank you for your response.  It seemed to work.  I definitely went back and recompiled everything.  But this caused a new problem. 

I understand that it is quite common for this build sequence to suffer a Java out of memory error.  The guidance I read said, "no problem, just run it again and it will go."  I had such an error.  (I also had such an error the first time I built the application which may have been the source of the "stray" jar files encountered then.)

When I resubmitted (by simply typing "ant" since I wanted it to continue from where it left off) I now get a NoSuchMethodError.  Once more it is associated with xdoclet.util.Translator.getString, however this time the code string as reported in the stack trace appears to be badly malformed using semi-colons instead of commas in the parameter list and apparently placing the last parameter outside of the enclosing parenthesis; using the '/' instead of the '.' in the package name, and prefixing the java.lang package name with an "L"  (see error message below)  Is this a problem with not restarting properly after the out of memory abend?  Or am I missing something else?

******************************************* BEGIN ERROR LISTING ************************************************
BUILD FAILED
java.lang.NoSuchMethodError: xdoclet.util.Translator.getString(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/String;
        at xdoclet.modules.ejb.dd.EjbDotXmlSubTask.<init>(EjbDotXmlSubTask.java:57)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:296)
        at java.lang.Class.newInstance(Class.java:249)
        at xdoclet.DocletTask.registerModules(DocletTask.java:431)
        at xdoclet.DocletTask.createDynamicElement(DocletTask.java:245)
        at org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.java)
        at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java)
        at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java)
        at org.apache.tools.ant.Task.perform(Task.java)
        at org.apache.tools.ant.Target.execute(Target.java)
        at org.apache.tools.ant.Target.performTasks(Target.java)
        at org.apache.tools.ant.Project.executeTarget(Project.java)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java)
        at org.apache.tools.ant.Task.perform(Task.java)
        at org.apache.tools.ant.Target.execute(Target.java)
        at org.apache.tools.ant.Target.performTasks(Target.java)
        at org.apache.tools.ant.Project.executeTarget(Project.java)
        at org.apache.tools.ant.Project.executeTargets(Project.java)
        at org.apache.tools.ant.Main.runBuild(Main.java)
        at org.apache.tools.ant.Main.start(Main.java)
        at org.apache.tools.ant.Main.main(Main.java)

Total time: 1 minute 50 seconds

********************************************* END ERROR LISTING ************************************************

Again, thanks for the help so far.

Sincerely,
John Neal

Phone: 727.299.4050 -- FTT ext. 3-4050


-----Original Message-----
From: Marcus Brito [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 10:42 AM
To: Lista XDoclet-User
Subject: Re: [Xdoclet-user] Build Problem: can not resolve
Translator.getString


Em Ter, 2002-06-04 �s 17:56, Neal, John escreveu:

> Executing ant from the xdoclet-all/xdoclet directory, I get 12 errors in the
> build-externalizer ant step where javac can not resolve the symbol getString
> within the xdoclet/util/Translator class.  (the getString method with the
> signatures required is in the xdoclet.util.Translator class in the source,
> and Javac imports the xdoclet.util.Translator package without complaint)...I
> am perplexed???  What's wrong? 

It seems there is some old class/jar file lying around. Try cleaning the
build tree first:

[pazu@lain]$ ant clean && ant

--
Ja ne,
   Pazu
   mailto: [EMAIL PROTECTED]

Anime Gaiden: de f�s para f�s, sempre.

 

Attachment: Neal, John.vcf
Description: Binary data

Reply via email to