Friday, July 22, 2022

Re: How interpret error messages?

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: 

https://gitlab.com/ManfredTremmel/gwt-bean-validators

-- J.

mmo schrieb am Donnerstag, 21. Juli 2022 um 18:53:08 UTC+2:

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?

On Thursday, July 21, 2022 at 6:39:11 PM UTC+2 mmo wrote:
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?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/e3e2e8b1-ab3c-4f49-9864-585c5fa80ac0n%40googlegroups.com.

No comments:

Post a Comment