Bug 921049 - Errai Kitchen Sink Maven Archetype 2.2.1-SNAPSHOT - validation error in GWT development mode
Summary: Errai Kitchen Sink Maven Archetype 2.2.1-SNAPSHOT - validation error in GWT d...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: JBoss Enterprise WFK Platform 2
Classification: Retired
Component: Errai
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 2.4.0
Assignee: Jonathan Fuerth
QA Contact: Emil Cervenan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-13 11:16 UTC by Emil Cervenan
Modified: 2013-11-14 15:07 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
Compiling a project generated from the Errai Kitchen Sink Maven archetype using GWT Maven Plugin fails with all versions of OpenJDK 7 and Oracle JDK 7 update 16 or earlier. To work around the issue, compile the project with any version of Oracle JDK 6 or OpenJDK 6, or Oracle JDK 7 update 17 or later. The compiled project can then be deployed with any JDK.
Clone Of:
Environment:
Last Closed: 2013-07-16 19:25:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker WFK2-40 0 Major Closed Errai Kitchen Sink Maven Archetype 2.2.1-SNAPSHOT - validation error in GWT development mode 2015-09-25 20:27:50 UTC

Description Emil Cervenan 2013-03-13 11:16:41 UTC
Description of problem:
Registration is not working in GWT development mode.


Version-Release number of selected component (if applicable):
2.2.1-SNAPSHOT

How reproducible:
always

Steps to Reproduce:
Follow steps from guide https://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html/Errai_Quickstart_Guide/sid-21627124.html
  
Actual results:
[ERROR] Errors in '/my-kitchen-sink/target/.generated/com/foo/bar/client/shared/_MemberValidatorImpl.java'

[ERROR] Line 434: The method validate(GwtValidationContext<T>, Set<ConstraintViolation<T>>, Member, V, ConstraintValidator<A,? super V>, ConstraintDescriptorImpl<A>, Class<?>[]) in the type AbstractGwtSpecificValidator<Member> is not applicable for the arguments (GwtValidationContext<T>, Set<ConstraintViolation<T>>, Member, String, SizeValidatorForArraysOfLong, ConstraintDescriptorImpl<Size>, Class<?>[])


Expected results:
Register new user

Comment 1 Stefan Miklosovic 2013-03-13 12:20:56 UTC
I was unsuccesful to repeat your issue. For me, deployment and building of the demo and its functionality is not affected by any way and the demo as such works properly. Maybe your local settings are different from mine. In that case, please write down version of software, jdk and so on.

java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (fedora-2.3.8.0.fc17-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

javac 1.7.0_09

Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)

JBoss EAP 6.0.1.GA (AS 7.1.3.Final-redhat-4)

Firefox 19.0

Comment 2 Emil Cervenan 2013-03-13 13:05:54 UTC
Same configuration except java and javac. With openJDK & javac 1.7.0_09

java version "1.7.0_09-icedtea"
OpenJDK Runtime Environment (fedora-2.3.4.fc17-x86_64)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

works properly.

With Oracle java & javac 1.7.0_09

java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

not working.

Comment 3 Jonathan Fuerth 2013-03-14 14:01:15 UTC
We've just had a report of this same problem from one of our community members. His Java version info:

java version "1.7.0_15"
OpenJDK Runtime Environment (IcedTea7 2.3.7) (7u15-2.3.7-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

This leads me to believe the problem is going to exist in javac of all the newer releases of JDK 7 and OpenJDK 7. :-(

Comment 4 Emil Cervenan 2013-03-14 14:05:38 UTC
Works with

java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)

More digging tomorrow.

Comment 5 Jonathan Fuerth 2013-03-14 14:11:43 UTC
Here's some more info from our community:

https://community.jboss.org/thread/200433?tstart=0 -- Same issue reported against Oracle JDK 7u4

https://issues.jboss.org/browse/ERRAI-311 -- Same issue reported against Oracle JDK 7u3

Comment 6 Jonathan Fuerth 2013-03-14 20:46:44 UTC
I've just created a new Fedora VM to try this out on. The build passes on the latest available Oracle JDK:

Java version: 1.7.0_17, vendor: Oracle Corporation
Java home: /home/jfuerth/jdk1.7.0_17/jre

But fails on OpenJDK:

Java version: 1.7.0_09-icedtea, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/jre

Note that this is the opposite result that Emil reported in comment 2! :-/

Comment 7 Jonathan Fuerth 2013-03-15 18:01:21 UTC
The build also passes on OpenJDK 1.7.0_09 if I force the demo to build with GWT 2.5.1 rather than 2.4.0 by adding the following within the <dependencyManagement> section of pom.xml:

      <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt-user</artifactId>
        <version>2.5.1</version>
      </dependency>

      <dependency>
        <groupId>com.google.gwt</groupId>
        <artifactId>gwt-dev</artifactId>
        <version>2.5.1</version>
      </dependency>

Despite this, I'm unable to find any information in GWT's own bug tracker about this problem or its resolution.

In any case, we're now satisfied from an upstream project point of view because we have plenty of verified workarounds: use Oracle JDK 7u17, work with GWT 2.5.x, or switch to the Errai 2.3 or 3.0 branches.

Comment 9 Emil Cervenan 2013-03-21 10:41:45 UTC
Workaround verified for latest Oracle java 1.7.0_17-b02 + GWT 2.4.0
and latest openJDK 1.7.0_09-icedtea(2.3.8) + GWT 2.5.0

comment 2 note: I built project with Oracle java 1.7.0_09 and run with openJDK 1.7.0_09 (2.3.4). Build passes with latest openJDK 2.3.8 (but error still present with GWT 2.4.0).

Comment 10 Karel Piwko 2013-03-29 12:54:17 UTC
Jonathan, Emil returned back to ASSIGNED. We either need to deliver the workaround in the archetype or to have a release note.

Comment 11 Jonathan Fuerth 2013-04-02 13:50:30 UTC
Any one of the following will resolve the issue. Which is preferable?

1. Use Errai 2.3 (in the pipeline for WFK 2.3)
2. Force Errai 2.2 (in WFK 2.2) onto GWT 2.5.x
3. Strip Bean Validation out of the archetype when generating with -Denterprise=true
4. Document that the demo does not compile with OpenJDK 7 (but it does work with OpenJDK 6, Oracle JDK 6, Oracle JDK 7, IBM JDK 7)

Please advise.

Comment 12 Petr Penicka 2013-04-02 18:47:59 UTC
Doc text added.

Comment 13 Petr Penicka 2013-04-03 15:49:36 UTC
Modified Doc text based on Emil's testing results. Emil is about to provide a more detailed comment tomorrow.

Comment 14 Emil Cervenan 2013-04-04 07:09:53 UTC
I tested several JDKs again. Looks like compilation is successful on all OracleJDKs and validation works well when deployed on any version of OpenJDK. To prevent hitting some bad combination I suggested to note workaround as Peter did.

Comment 17 Karel Piwko 2013-04-08 12:03:15 UTC
Jonathan, you comment was somehow buried. I personally prefer option 3., hopefully it represents the least work for you.

Comment 21 Petr Penicka 2013-04-09 13:02:20 UTC
specified the failing Oracle JDK 7 version in the doc text more precisely:

earlier versions of Oracle JDK 7
>>
Oracle JDK 7 update 16 or earlier

doc text updated in RN book: https://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Web_Framework_Kit/2.2/html-single/2.2.0_Release_Notes/index.html

Comment 24 Jonathan Fuerth 2013-07-16 19:25:24 UTC
Migrated to JIRA

Comment 25 JBoss JIRA Server 2013-07-16 19:31:18 UTC
Jonathan Fuerth <jfuerth> made a comment on jira WFK2-40

Note that this issue only applies to GWT 2.4 projects, so it is no longer relevant to Errai 2.3.2 & WFK 2.3 since these now require use of GWT 2.5.1.

Comment 26 JBoss JIRA Server 2013-07-23 09:00:01 UTC
Marek Novotny <mnovotny> made a comment on jira WFK2-40

Clearing proposed Target Release value from 2.0.0.GA to Unknown

Comment 27 JBoss JIRA Server 2013-07-30 18:01:14 UTC
Rodney Russ <rruss> made a comment on jira WFK2-40

why not close the issue [~jfuerth] ?

Comment 28 JBoss JIRA Server 2013-07-30 18:12:39 UTC
Jonathan Fuerth <jfuerth> updated the status of jira WFK2-40 to Closed

Comment 29 JBoss JIRA Server 2013-07-30 18:12:39 UTC
Jonathan Fuerth <jfuerth> made a comment on jira WFK2-40

Only affects product branch.

Comment 30 JBoss JIRA Server 2013-07-31 08:02:05 UTC
Marek Novotny <mnovotny> made a comment on jira WFK2-40

The last comment is wrong. It affects only Errai 2.2.0 with used GWT 2.4.0

Comment 31 JBoss JIRA Server 2013-07-31 08:33:46 UTC
Marek Novotny <mnovotny> updated the status of jira WFK2-40 to Closed

Comment 32 JBoss JIRA Server 2013-07-31 08:34:03 UTC
Marek Novotny <mnovotny> updated the status of jira WFK2-40 to Reopened

Comment 33 JBoss JIRA Server 2013-07-31 08:34:03 UTC
Marek Novotny <mnovotny> made a comment on jira WFK2-40

reopening to fix the Fixed version

Comment 34 JBoss JIRA Server 2013-11-14 15:05:49 UTC
Matous Jobanek <mjobanek> updated the status of jira WFK2-40 to Reopened

Comment 35 JBoss JIRA Server 2013-11-14 15:07:47 UTC
Matous Jobanek <mjobanek> updated the status of jira WFK2-40 to Closed


Note You need to log in before you can comment on or make changes to this bug.