jposee : gradle install error

231 views
Skip to first unread message

Janta Darbar

unread,
Apr 26, 2017, 10:08:17 PM4/26/17
to jPOS Users
my laptop is windows 10.

I downloaded the JPosEE Master and tried to Gradle install.

I am using gradle 3.5
java JDK : 1.8.0_121

>gradle install

It is throwing error as follows:

:modules:qi-core:vaadinCompile
Unexpected internal compiler error
java.lang.RuntimeException: Unexpectedly unable to access Enum.createValueOfMap via reflection. Likely a dependency on the com.google.gwt.user.User module is missing.
at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.writeEnumValueOfMethod(GwtAstBuilder.java:2793)
at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.processEnumType(GwtAstBuilder.java:2425)
at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:1861)
at com.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:1588)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1382)
at com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3058)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:141)
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:384)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:985)
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:339)
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:580)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:513)
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:499)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:668)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:255)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:206)
at com.google.gwt.dev.Compiler.run(Compiler.java:158)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
at com.google.gwt.dev.Compiler.main(Compiler.java:127)
:modules:qi-core:vaadinCompile FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':modules:qi-core:vaadinCompile'.
> Widgetset failed to compile. See error log.


Am I missing anything??

- Rajesh

Luiz Felipph

unread,
Apr 26, 2017, 10:16:46 PM4/26/17
to jpos-...@googlegroups.com
Raj,

Use gradle script that's ship with Jpos 




Felipph
Gerente de TI
MaxxCard
@mobile

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/b0cf51c4-3016-44ec-a55e-9f55e26bb839%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alejandro Revilla

unread,
Apr 26, 2017, 10:17:22 PM4/26/17
to jPOS Users
Anybody else experiencing this problem?

It works for me in OSX and for Travis in Docker/Linux https://travis-ci.org/jpos/jPOS-EE/builds/225704892




Message has been deleted

Janta Darbar

unread,
Apr 26, 2017, 10:25:58 PM4/26/17
to jPOS Users


On Wednesday, April 26, 2017 at 9:22:57 PM UTC-5, Janta Darbar wrote:
Hi Alejandro,

Thanks for quick reply.

I tried the same jposee master in my linux laptop. It did not show any error.

I tried to use the gradlew in my windows laptop, still get the same error.

-Raj


To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.

Alejandro Revilla

unread,
Apr 26, 2017, 10:28:29 PM4/26/17
to jPOS Users
Unfortunately I don't have any Windows box to test.

Hope any Windows user can give it a try and shed some light.


Janta Darbar

unread,
Apr 27, 2017, 6:23:58 PM4/27/17
to jPOS Users
Can anybody please confirm if they have installed latest JPosEE master in their windows machine?

-Raj

adhi nugroho

unread,
Apr 27, 2017, 7:44:37 PM4/27/17
to jPOS Users
yes..i have a same problem with that on windows 10 

Unexpected internal compiler error
java
.lang.RuntimeException: Unexpectedly unable to access Enum.createValueOfMap via reflection. Likely a dependency on the com.google.gwt.user.User module is missing.
at com
.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.writeEnumValueOfMethod(GwtAstBuilder.java:2793)
at com
.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.processEnumType(GwtAstBuilder.java:2425)
at com
.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:1861)
at com
.google.gwt.dev.jjs.impl.GwtAstBuilder$AstVisitor.endVisit(GwtAstBuilder.java:1588)
at org
.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:1382)
at com
.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3058)
at com
.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:141)


chhil

unread,
Apr 28, 2017, 10:45:22 PM4/28/17
to jpos-...@googlegroups.com


unzipped on win10 to C:\Temp\jPOS-EE-master and 

ran gradlew.bat ran gradlew install

got the error as seen by users in the thread.

Then used the same location as a mounted volume in my local docker image jpos/ubuntu_vivid_jdk8_unlimited 

docker run -t -i -v C:\Temp\jPOS-EE-master:/opt/jposee jpos/ubuntu_vivid_jdk8_unlimited

​​
ran ./gradlew ran ./gradlew install

Build generated.

-chhil  

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.

Barzilai Spinak

unread,
Apr 29, 2017, 12:33:58 AM4/29/17
to jpos-...@googlegroups.com
can anyone do a git bisect and find out which commit introduced the error?
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPazefAjVkfx7qD6iP300UC3fkm_n60aKcznZnVvDd%2B9Zvff%3Dg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
Barzilai Spinak
Transactility, Inc.
www.transactility.com
"Commercial licensing and support for the jPOS.org project"

chhil

unread,
Apr 29, 2017, 1:12:03 AM4/29/17
to jpos-...@googlegroups.com

I reached Sep 24 2016

​(sha 
6dba6c83c867b207123b28a052d53fe6188ae934
​)​

and could not build

​ (on Win10 Java 8)​
, though the build error was

Unexpected internal compiler error
java.lang.IncompatibleClassChangeError: class com.google.gwt.dev.javac.asm.CollectMethodData has interface org.objectweb.asm.MethodVisitor as super class
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
...
...
:modules:qi-core:vaadinCompile FAILED
-chhil​





Alejandro Revilla

unread,
May 2, 2017, 3:40:34 PM5/2/17
to jPOS Users
Dave was kind enough to provide a fix for the BinLog issue and it now builds OK in Windows (https://github.com/jpos/jPOS/pull/128).

The GWT issue doesn't show up in Jenkins/Windows so it must be something else.




Janta Darbar

unread,
May 6, 2017, 12:50:33 AM5/6/17
to jPOS Users
I changed the boolean values to "true"  in following lines in "modules\qi-core\build.gradle"  file : 

manageDependencies = true
vaadinCompile.gwtSdkFirstInClasspath=true

Now, the jposee 'gradle build'  in Windows environment is successful.

Kind regards,
Raj


To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.

To post to this group, send email to jpos-...@googlegroups.com.

Janta Darbar

unread,
May 6, 2017, 6:19:25 AM5/6/17
to jPOS Users
I mean ..  'gradle install'  is successful. It is not throwing gwt errors in windows environement.

Alejandro Revilla

unread,
May 6, 2017, 6:39:03 PM5/6/17
to jPOS Users
Hi Jantar,

Thank you very much for this test. 

Are you positive you need both properties to be true in order to get this working on Windows?



Janta Darbar

unread,
May 7, 2017, 6:29:10 AM5/7/17
to jPOS Users
Hi Alejjandro,

Thanks. I tried few combinations to arrive at this conclusion. 

Others may try in their windows setup and confirm.






Alejandro Revilla

unread,
May 9, 2017, 8:33:12 PM5/9/17
to jPOS Users
Got it. We tested it in Unix and it works, also in the vaadin8 branch, so we went ahead and applied your suggested patch:


Thank you!



Janta Darbar

unread,
May 12, 2017, 3:00:05 PM5/12/17
to jPOS Users
Alejandro,

It's my pleasure. I would be happy to contribute in coming days.

Kind regards


Reply all
Reply to author
Forward
0 new messages