How interpret error messages?

41 views
Skip to first unread message

mmo

unread,
Jul 21, 2022, 12:39:11 PM7/21/22
to GWT Users
When I compile my application with failOnError=true and logLevel=TRACE I see errors like this:

...
[INFO]    Tracing compile failure path for type 'org.hibernate.validator.engine.PathImpl'
[INFO]       [ERROR] Errors in 'jar:file:/D:/m2repository/rjp/org/gwtproject/gwt-user/2.10.0/gwt-user-2.10.0.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'
[INFO]          [ERROR] Line 202: The constructor NodeImpl(String) is undefined
[INFO]          [ERROR] Line 95: The constructor NodeImpl(Path.Node) is undefined
[INFO]          [ERROR] Line 209: The method setIndex(Integer) is undefined for the type NodeImpl
[INFO]          [ERROR] Line 212: The method setKey(String) is undefined for the type NodeImpl
[INFO]          [ERROR] Line 72: The constructor NodeImpl(String) is undefined
[INFO]          [ERROR] Line 84: The constructor NodeImpl(Path.Node) is undefined
[INFO]          [ERROR] Line 204: The method setInIterable(boolean) is undefined for the type NodeImpl
...

How does one interpret these? It seems to me as if the ...org/gwtproject/gwt-user/2.10.0/gwt-user-2.10.0.jar references some class org/hibernate/validator/engine/PathImpl.java and can't find its source.
Is that intgerpretation correct? If so: what do I need to import to make that source available? Certainly not the entire Hibernate sources, do I?
Message has been deleted

mmo

unread,
Jul 21, 2022, 12:53:08 PM7/21/22
to GWT Users

Sorry - if you get this twice - I accidentally have hit the PostMessage button before and had to delete the message again.

Just tried to dig deeper here:  the gwt-user.jar contains a file /org/hibernate/validator/HibernateValidator.gwt.xml.

In the GWT-file I see a section

  ...
  <source path="engine">
    <include name="ConstraintViolationImpl*.java"/>
    <include name="ValidationSupport.java"/>
    <include name="NodeImpl.java"/>
    <include name="PathImpl*.java"/>
  </source>
  ...

The file engine/NodeImpl.[java|class] however, is not in that .jar.
Where's that supposed to come from?

Jens

unread,
Jul 22, 2022, 4:11:50 AM7/22/22
to GWT Users
GWT supports the validation API 1.0.0 with hibernate validator as implementation. GWT itself only ships/depends on the validation api but implementation needs to be added manually. The documentation how to use it can be found at https://www.gwtproject.org/doc/latest/DevGuideValidation.html

Please note that validation API support is unmaintained (that's why it is still validation API 1.0.0). A GWT user has a project for newer validation API, see: 

-- J.
Reply all
Reply to author
Forward
0 new messages