Wednesday, December 26, 2012

Re: RequestFactory ValidationTool works on Linux but not on Windows

The problem persists. I updated my java version from 6 to 7 (still Sun) and now I can get it to work on command line but not on eclipse. 

When running manually, I get the following warning:

warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.web.bindery.requestfactory.apt.RfValidator' less than -source '1.7'
1 warning

But when I try to clean the eclipse project, I get the same error flag on my pom.xml.

The thing is that I don`t know where is the output file when running it on eclipse. Any ideas?

Thanks


On Fri, Oct 12, 2012 at 9:53 AM, Aldo Neto <tumolin@gmail.com> wrote:
Hi,

I'm still facing this problem, so does anyone know how to fix this problem? Any suggestions?

Tks

On Sat, Oct 6, 2012 at 7:30 PM, Aldo Neto <tumolin@gmail.com> wrote:
I'm using Java 1.6 on both, but Oracle on Windows and OpenJDK on Linux.

The command is the same and the classpath should not be the problem, as I have other requests in the same directory as this one (the ContratoUsuarioRequest) and they present no errors.

Thanks

On Sat, Oct 6, 2012 at 7:09 PM, Thomas Broyer <t.broyer@gmail.com> wrote:
Which version of Java (Oracle vs. OpenJDK, 6 vs. 7, etc.) are you using on both OSes?
Are they exactly the same?
Are you sure you're running exactly the same command? (same classpath, etc.)

On Saturday, October 6, 2012 11:41:18 PM UTC+2, Aldo wrote:
Hi,

I'm migrating my project to GWT 2.4 (I was using GWT v2.3) and when running the ValidationTool I'm getting an error, but that error is only displayed on Windows. When I run the same project on Linux, I get no error.

The output message is below.

I checked the ContratoUsuarioRequest class and I could not find anything different from other request classes.

Thanks,
Aldo


error: java.lang.NullPointerException
        at com.sun.tools.javac.code.Symbol$MethodSymbol.params(Symbol.java:1196)
        at com.sun.tools.javac.code.Symbol$MethodSymbol.getParameters(Symbol.java:1222)
        at com.sun.tools.javac.code.Symbol$MethodSymbol.getParameters(Symbol.java:974)
        at com.google.web.bindery.requestfactory.apt.DomainChecker$MethodFinder.visitExecutable(DomainChecker.java:71)
        at com.google.web.bindery.requestfactory.apt.DomainChecker$MethodFinder.visitExecutable(DomainChecker.java:48)
        at com.sun.tools.javac.code.Symbol$MethodSymbol.accept(Symbol.java:1230)
        at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:122)
        at com.google.web.bindery.requestfactory.apt.ScannerBase.scan(ScannerBase.java:63)
        at com.google.web.bindery.requestfactory.apt.ScannerBase.scanAllInheritedMethods(ScannerBase.java:126)
        at com.google.web.bindery.requestfactory.apt.DomainChecker$MethodFinder.visitType(DomainChecker.java:118)
        at com.google.web.bindery.requestfactory.apt.DomainChecker$MethodFinder.visitType(DomainChecker.java:48)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:835)
        at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:122)
        at com.google.web.bindery.requestfactory.apt.ScannerBase.scan(ScannerBase.java:63)
        at com.google.web.bindery.requestfactory.apt.DomainChecker.visitExecutable(DomainChecker.java:179)
        at com.google.web.bindery.requestfactory.apt.DomainChecker.visitExecutable(DomainChecker.java:42)
        at com.sun.tools.javac.code.Symbol$MethodSymbol.accept(Symbol.java:1230)
        at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:122)
        at com.google.web.bindery.requestfactory.apt.ScannerBase.scan(ScannerBase.java:63)
        at com.google.web.bindery.requestfactory.apt.ScannerBase.scanAllInheritedMethods(ScannerBase.java:126)
        at com.google.web.bindery.requestfactory.apt.DomainChecker.visitType(DomainChecker.java:263)
        at com.google.web.bindery.requestfactory.apt.DomainChecker.visitType(DomainChecker.java:42)
        at com.sun.tools.javac.code.Symbol$ClassSymbol.accept(Symbol.java:835)
        at javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:122)
        at com.google.web.bindery.requestfactory.apt.ScannerBase.scan(ScannerBase.java:63)
        at com.google.web.bindery.requestfactory.apt.State.executeJobs(State.java:248)
        at com.google.web.bindery.requestfactory.apt.RfValidator.process(RfValidator.java:83)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:627)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:556)
        at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:701)
        at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:987)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
        at com.sun.tools.javac.main.Main.compile(Main.java:353)
        at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:115)
        at com.google.web.bindery.requestfactory.apt.ValidationTool.exec(ValidationTool.java:261)
        at com.google.web.bindery.requestfactory.apt.ValidationTool.main(ValidationTool.java:209)
error: Could not load domain mapping for context ContratoUsuarioRequest.
Check that both the shared interfaces and server domain types are on the classpath.
2 errors

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hcM9UfHgAN4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.





--

"Eu acredito no Cristianismo assim como eu acredito no nascer do Sol, não apenas porque o vejo, mas porque através dele eu posso ver todas as coisas"

C. S. Lewis

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment