Open GoogleCodeExporter opened 9 years ago
I managed to solve some of the errors appeared in the code by adding three jars.
First, I added these two files into the classpath:
1- validation-api-1.0.0.GA-sources.jar
2- validation-api-1.0.0.GA.jar
Then I added the three jars into the library and to war/WEB-INF/lib
1- validation-api-1.0.0.GA-sources.jar
2- validation-api-1.0.0.GA.jar
3- gwt-servlet-deps.jar
But still I have other things like the below problems. Any help or clue.
[java] Loaded 2334 units from persistent store.
[java] Found 2260 cached units. Used 2260 / 2260 units from cache.
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.MaxValidatorForString
[java] Invalid ref: javax.validation.ConstraintViolation mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.editor.client.impl.BaseEditorDriver
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForMap
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.NotGwtCompatibleValidator
[java] Invalid ref: javax.validation.ConstraintViolation mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.editor.client.testing.MockSimpleBeanEditorDriver
[java] Invalid ref: javax.validation.constraints.Min mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.AbstractMinValidator
[java] Invalid ref: javax.validation.ConstraintViolation mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.ConstraintViolationImpl
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfShort
[java] Invalid ref: javax.validation.spi.BootstrapState mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.BaseGwtConfiguration
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.ConstraintDescriptorImpl
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.PatternValidator
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.AbstractDecimalMaxValidator
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfLong
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfChar
[java] Invalid ref: TraversableResolver mine: null theirs: not null
[java] Invalid Unit: javax.validation.Configuration
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.AbstractDecimalMinValidator
[java] Invalid ref: javax.validation.ValidationProviderResolver mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.GwtValidationProviderResolver
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfObject
[java] Invalid ref: javax.validation.Path mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.MessageAndPath
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.AbstractGwtSpecificValidator
[java] Invalid ref: javax.validation.ConstraintValidatorFactory mine: null theirs: not null
[java] Invalid Unit: javax.validation.spi.ConfigurationState
[java] Invalid ref: javax.validation.metadata.ConstraintDescriptor mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.BaseMessageInterpolator
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.FutureValidatorForDate
[java] Invalid ref: javax.validation.spi.BootstrapState mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.spi.GwtValidationProvider
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.NullValidator
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.MinValidatorForString
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.DigitsValidatorForString
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfFloat
[java] Invalid ref: javax.validation.ValidatorFactory mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.GwtValidatorContext
[java] Invalid ref: javax.validation.metadata.PropertyDescriptor mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.PropertyDescriptorImpl
[java] Invalid ref: javax.validation.ValidatorFactory mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.Validation
[java] Invalid ref: javax.validation.ValidatorFactory mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.AbstractGwtValidatorFactory
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.DecimalMaxValidatorForNumber
[java] Invalid ref: javax.validation.ConstraintValidatorFactory mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.AbstractGwtValidator
[java] Invalid ref: javax.validation.metadata.BeanDescriptor mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.GwtBeanDescriptor
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.DecimalMaxValidatorForString
[java] Invalid ref: javax.validation.TraversableResolver mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.GwtTraversableResolver
[java] Invalid ref: javax.validation.spi.BootstrapState mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.spi.GwtBootStrapState
[java] Invalid ref: javax.validation.ConstraintViolation mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.editor.client.impl.SimpleViolation
[java] Invalid ref: javax.validation.Path mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.NodeImpl
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.DecimalMinValidatorForString
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.DecimalMinValidatorForNumber
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfDouble
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.MaxValidatorForNumber
[java] Invalid ref: javax.validation.Path mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.PathImpl
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.DigitsValidatorForNumber
[java] Invalid ref: javax.validation.metadata.PropertyDescriptor mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.GwtBeanDescriptorImpl
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.NotNullValidator
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfBoolean
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfInt
[java] Invalid ref: javax.validation.ConstraintViolation mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.editor.client.EditorDriver
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.AbstractMaxValidator
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.MinValidatorForNumber
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.ConstraintValidatorContextImpl
[java] Invalid ref: javax.validation.metadata.BeanDescriptor mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.GwtValidationContext
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.GwtConstraintValidatorFactory
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForString
[java] Invalid ref: javax.validation.spi.BootstrapState mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.GwtConfiguration
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.PastValidatorForDate
[java] Invalid ref: javax.validation.Payload mine: null theirs: not null
[java] Invalid Unit: javax.validation.constraints.Pattern
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.AssertTrueValidator
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.AssertFalseValidator
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForArrayOfByte
[java] Invalid ref: javax.validation.metadata.ConstraintDescriptor mine: null theirs: not null
[java] Invalid Unit: javax.validation.MessageInterpolator
[java] Invalid ref: javax.validation.ConstraintValidatorContext mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.SizeValidatorForCollection
[java] Invalid ref: ConstraintViolation mine: null theirs: not null
[java] Invalid Unit: javax.validation.ConstraintViolationException_CustomFieldSerializer
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.AbstractDigitsValidator
[java] Invalid ref: javax.validation.ValidationException mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.impl.GwtSpecificValidator
[java] Invalid ref: javax.validation.ConstraintValidator mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.constraints.AbstractSizeValidator
[java] Invalid ref: javax.validation.TraversableResolver mine: null theirs: not null
[java] Invalid Unit: com.google.gwt.validation.client.spi.BaseConfigurationState
[java] Invalid units found: 70
[java] javax.validation.MessageInterpolator.Context isn't structurally same.
[java] Invalid Unit: com.google.gwt.validation.client.GwtMessageInterpolator
[java] com.google.gwt.editor.client.EditorDriver isn't structurally same.
[java] Invalid Unit: com.google.gwt.editor.client.testing.EditorHierarchyPrinter
[java] MessageInterpolator isn't structurally same.
[java] Invalid Unit: javax.validation.ValidatorFactory
[java] javax.validation.Configuration isn't structurally same.
[java] Invalid Unit: javax.validation.spi.ValidationProvider
[java] com.google.gwt.validation.client.Validation isn't structurally same.
[java] Invalid Unit: javax.validation.Validation
[java] com.google.gwt.editor.client.EditorDriver isn't structurally same.
[java] Invalid Unit: com.google.gwt.editor.client.impl.DelegateMap
[java] javax.validation.Configuration isn't structurally same.
[java] Invalid Unit: javax.validation.bootstrap.GenericBootstrap
[java] javax.validation.spi.ConfigurationState isn't structurally same.
[java] Invalid Unit: com.google.gwt.validation.client.spi.GwtConfigurationState
[java] javax.validation.Configuration isn't structurally same.
[java] Invalid Unit: javax.validation.bootstrap.ProviderSpecificBootstrap
[java] com.google.gwt.editor.client.EditorDriver isn't structurally same.
[java] Invalid Unit: com.google.gwt.editor.client.SimpleBeanEditorDriver
[java] MessageInterpolator isn't structurally same.
[java] Invalid Unit: javax.validation.ValidatorContext
[java] com.google.gwt.editor.client.impl.BaseEditorDriver isn't structurally same.
[java] Invalid Unit: com.google.gwt.editor.client.impl.AbstractSimpleBeanEditorDriver
[java] Invalid units found: 12
I used to have .xml files before upgrading GWT and the compiler, but after I
compiled the code. The .xml files disappeared.
what should I do?
Please Help.
Ali
Original comment by alzayer....@gmail.com
on 16 Jul 2012 at 5:04
I discovered that GWT 2.4 is working with JAVA 6 (not Java 7) and also I have
to set compiler compliance level to 1.6.
Even though, I am still trying to solve this problem.
My real problem is that before upgrading to GWT 2.4 I was getting .xml files
generated, but now I am not getting them. So I don’t how to get them
generated. Do I really need these .xml files or not. Thank you again and
looking for an answer.
Original comment by alzayer....@gmail.com
on 16 Jul 2012 at 5:58
Did you find a solution for the "Invalid Unit" thing? I have the same problem
and no clue, what's the reason. Googling for it only matches this page.. :-/
Original comment by grischa....@gmail.com
on 14 Sep 2012 at 1:36
Original issue reported on code.google.com by
alzayer....@gmail.com
on 15 Jul 2012 at 11:25