norbertsandor / gwt-ent Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/gwt-ent
Automatically exported from code.google.com/p/gwt-ent
What steps will reproduce the problem?
1.
2.public void doSomething(String ... parameters){
//display label if works
}
3.ClassType clientComponentClassType =
TypeOracle.Instance.getClassType(GWTClientComponent.class);
clientComponentClassType.invoke(listbox, "testCase", "hello");
Object[] stringArray = new String[2];
stringArray[0] = "Hello";
stringArray[1] = "Hdsfsfsdfo";
// clientComponentClassType.invoke(listbox, "doSomething", new Object[]
{ "blah", "blah" });
clientComponentClassType.invoke(listbox, "doSomething", stringArray });
the last 2 invoke do not work.
Can you please post a working example in which the
-function has array parameters
-with invoke
Thank you
What is the expected output? What do you see instead?
error:
Error Method: doSomethindrequest 1 params, but invoke provide 2 params.
im try and catching --printing e.getMessage
What version of the product are you using? On what operating system?
Please provide any additional information below.
Thank you for your time. It is urgent
Original issue reported on code.google.com by [email protected]
on 24 Aug 2010 at 1:42
What steps will reproduce the problem?
1. Create a class that has a field of a generic type; e.g.: private
List<String> names;
2. add a getter / setter
3. add: implements Reflection
What is the expected output? What do you see instead?
Reflection should work as expected.
It brings a compile error at runtime:
[ERROR] Errors in 'transient source for
com.gwtent.client.reflection.TypeOracle_Visitor'
[ERROR] Line 1435: T cannot be resolved to a type
which is in generated code:
return (Object)content.toArray(((T extends java.lang.Object[])args[0]));
What version of the product are you using? On what operating system?
Windows XP SP3, GET 1.5.3, GWT ENT 0.5
Please provide any additional information below.
It can be reproduced by a simple example.
Original issue reported on code.google.com by [email protected]
on 26 Jan 2009 at 7:13
there seems to be no good way to create a typed array using the reflection type
info, thus, the best one can do is create an array of objects which cannot be
easily casted in to the typed array.
Original issue reported on code.google.com by [email protected]
on 27 Oct 2010 at 8:57
What steps will reproduce the problem?
1. Use gwt-ent reflection to setMethod which accepts long type
2. java.lang.ClassCastException: java.lang.Long cannot be cast to
java.lang.Byte
at
com.gwtent.client.reflection.TypeOracle_Visitor$com_citi_gdos_vce_client_dataobj
ects_DimExecutionCost.invoke(transient
source for com.gwtent.client.reflection.TypeOracle_Visitor:3307)
3.
What is the expected output? What do you see instead?
long should not be casted byte
What version of the product are you using? On what operating system?
gwt-ent 0.7
gwt 1.6
smart gwt 1.2
Please provide any additional information below.
source : ReflectionCreator.java
long is casted to byte
float is casted to Long.
if (requestType.equals("long")) {
return "((Byte)" + argeName + ").byteValue()";
}
if (requestType.equals("float")) {
return "((Long)" + argeName + ").longValue()";
}
can you please fix this ASAP
Original issue reported on code.google.com by [email protected]
on 27 Sep 2009 at 6:00
Attachments:
What steps will reproduce the problem?
1. public void display(){}
2. if i want to do classType.invoke(clientWindow, "display");
does not work
classType.invoke(clientWindow, "display", true); does
3.
What is the expected output? What do you see instead?
how can u invoke with no parameters??
What version of the product are you using? On what operating system?
latest, xp
Thank you
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 19 Aug 2010 at 1:37
What steps will reproduce the problem?
ClassType ct = TypeOracle.Instance.getClassType(UnvanDto.class);
ct.invoke(UnvanDto.class, "getInstance", null);
getInstance is a static method. UnvanDto implements Reflection interface.
What is the expected output? What do you see instead?
java.lang.ClassCastException:
java.lang.Class cannot be cast to
tr.com.yuvamgroup.common.gwtshared.UnvanDto
at
com.gwtent.client.reflection.TypeOracle_Visitor$tr_com_yuvamgroup_common_gw
tshared_UnvanDto.invoke(transient source for
com.gwtent.client.reflection.TypeOracle_Visitor:2341)
at
tr.com.yuvamgroup.ebelediye.gwtclient.unvan.UnvanEditController.doSave
(UnvanEditController.java:88)
What version of the product are you using? On what operating system?
gwtent 0.6
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 11 Jun 2009 at 1:39
i have a DTO class in client side. if i am getting fields with
classType.getFields() it returns with incorrect order.
Sample DTO class :
package gov.egmidb.ziyaretci.client.dto;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import com.gwtent.reflection.client.Reflectable;
@Reflectable
public class TestDTO extends AbstractDTO {
private Long id;
private Date startDate;
private Date endDate;
private String description;
private Set<String> guests = new HashSet<String>();
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getStartDate() {
return startDate;
}
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getEndDate() {
return endDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Set<String> getGuests() {
return guests;
}
public void setGuests(Set<String> guests) {
this.guests = guests;
}
}
And getting fields with getField() method:
ClassType classType= TypeOracle.Instance.getClassType(TestDTO.class);
Fields[] fields = classType.getFields();
for(Field field : fields){
System.out.println(field.getName()+", "+field.getType().getSimpleSourceName());
}
And the output is:
id, java.lang.Long
startDate, java.util.Date
description, java.lang.String
guests, java.util.Set
endDate, java.util.Date
But i think it should be as the same order with fields of TestDTO class like
this:
id, java.lang.Long
startDate, java.util.Date
endDate, java.util.Date
description, java.lang.String
guests, java.util.Set
i am using gwt 2.1 and gwtent 1.0.0RC1 but because of an issue i mannually get
the r720 of gwtent.jar from svn repo and using it.
In the class com.gwtent.reflection.client.impl.ClassTypeImpl.java there is a
field property that is defined as HashMap. May be changing it as LinkedHashMap
should solve this issue.
Original issue reported on code.google.com by [email protected]
on 30 Dec 2010 at 10:03
Attachments:
When use this scene:
@Target(ElementType.ANNOTATION_TYPE)
public @interface MyParameterAnn {
int p1();
int p2() default 0;
}
@Target(ElementType.METHOD)
@Inherited
public @interface MyAnn {
int p1();
MyParameterAnn pa() default @MyParameterAnn(p1 = 0);
}
I have this error:
Syntax error on token "@", delete this token
...
p1 cannot be resolved
...
Syntax error on token ",", delete this token
recursivally from each parameter of MyParameterAnn.
I need set @Annotation(p=x) as parameter value
Original issue reported on code.google.com by [email protected]
on 29 Mar 2010 at 12:57
What steps will reproduce the problem?
1. adding gwtent-2.0.jar as Dependency
2. Start the hosted mode
3. look at the hosted mode console
10:05:17.745 [ERROR] Errors in
'jar:file:/C:/path/gwtent-2.0.jar!/com/gwtent/aop/client/AOPRegistor.java'
10:05:17.790 [ERROR] Line 29: The import com.gwtent.aop.matcher cannot be
resolved
Although this error is printed the reflection works fine in both hosted mode
and production mode.
Original issue reported on code.google.com by [email protected]
on 9 Mar 2011 at 9:22
What steps will reproduce the problem?
1. add gwtent.jar to project
2. add <inherits name="com.gwtent.GwtEnt"></inherits> in config xml
3. compile project
What is the expected output? What do you see instead?
expected : successful build
instead: compilation error
Scanning for additional dependencies: jar:file:/.../war/WEB-INF/lib/gwtent.jar!/com/gwtent/reflection/client/TypeOracle.java
Computing all possible rebind results for 'com.gwtent.reflection.client.TypeOracle'
Rebinding com.gwtent.reflection.client.TypeOracle
Invoking generator com.gwtent.gen.reflection.Reflection__ProxyGenerator
[ERROR] Annotation (com.google.gwt.resources.ext.ResourceGeneratorType) not exists in compiled client source code, please ensure this class is exists and included in your module(.gwt.xml) file. GWTENT reflection process will ignore it and continue.
[ERROR] Annotation (com.google.gwt.resources.ext.DefaultExtensions) not exists in compiled client source code, please ensure this class is exists and included in your module(.gwt.xml) file. GWTENT reflection process will ignore it and continue.
What version of the product are you using? On what operating system?
Windows 7 64-bit, gwt-ent-1.0, gwt-2.1 .
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 26 May 2011 at 9:13
What steps will reproduce the problem?
1.SmartGWT Component as a private variable in class which implements reflection
class x implements Reflection{
private IButton button;
}
will not compile from java to javascript
2.
3.
What is the expected output? What do you see instead?
When widgets are placed as private members compilation has no errors.
returning new IButton(); works
using IButton in a function works
using IButton as a function parameter does NOT
What version of the product are you using? On what operating system?
latest, xp
Please provide any additional information below.
Thank you
Original issue reported on code.google.com by [email protected]
on 23 Aug 2010 at 1:26
What steps will reproduce the problem?
1. Add gwtent.jar to classpath
2. Add <inherits name="javax.validation.Validation"/> (otherwise other
errors appear)
3. Add <inherits name='com.gwtent.GwtEnt' />
4. A <- B <- C (B extends A, C extends B and implements Reflection)
What is the expected output? What do you see instead?
Expected to compile and access A,B,C's members through reflection.
Instead, the following Gwt log appears:
[DEBUG] Invoking <generate-with
class='com.gwtent.gen.reflection.Reflection__ProxyGenerator'/>
[DEBUG] Adding '1' new generated units
[DEBUG] Validating newly compiled units
[TRACE] Removing units with errors
[ERROR] Errors in 'transient source for
com.gwtent.client.reflection.TypeOracle_Visitor'
[ERROR] Line 10843: com_google_gwt_dom_client_TagName cannot be resolved to
a type
[ERROR] Line 11056: com_google_gwt_dom_client_TagName cannot be resolved to
a type
[ERROR] Line 13436: com_google_gwt_dom_client_TagName cannot be resolved to
a type
[ERROR] Line 15080: com_google_gwt_dom_client_TagName cannot be resolved to
a type
[ERROR] Line 16970: com_google_gwt_dom_client_TagName cannot be resolved to
a type
What version of the product are you using? On what operating system?
OS: Linux Ubuntu 9.04, Java: 1.6.0_16, GWT: 1.7.0
Please provide any additional information below.
The same process was applied on a test application, using current java and
gwt versions, but the class hierarchy was simpler (A <- B); the test worked
without any complaints
Original issue reported on code.google.com by [email protected]
on 2 Sep 2009 at 11:28
1. GWT version 1.6.4, XP, Eclips Europa, gwt-ent-0.6
2. Trying to implement GWT reflection supported by gwtent.jar on client
side.
3. Code below
ReflectionTest obj = (ReflectionTest)constructor.newInstance();
Method[] methods = classType.getMethods();
for (Method method : methods)
Window.alert(method.toString());
Method method = classType.findMethod
("setXXX", "java.lang.String");
classType.invoke(obj, method.getName(), new Object[]
{"ReflectionTest"});
method.invoke(obj, new String[]{"ReflectionTest"});
I am trying to invoke method using Method.invoke and ClassType.invoke but
both doesn't work giving following exception at compile time.
It works when we call obj.setXXX("ReflectionTest") and gives all the
method name, if i comment the two line with invoke()
Stack Trace :-
gwtc:
[java] Compiling module com.google.gwt.sample.hello.Hello
[java] [ERROR] An internal compiler exception occurred
[java] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected
error during visit.
[java] at com.google.gwt.dev.jjs.ast.JVisitor.translateException
(JVisitor.java:74)
[java] at
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove
(JModVisitor.java:166)
[java] at com.google.gwt.dev.jjs.ast.js.JMultiExpression.traverse
(JMultiExpression.java:60)
[java] at
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove
(JModVisitor.java:162)
[java] at com.google.gwt.dev.jjs.ast.js.JMultiExpression.traverse
(JMultiExpression.java:60)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:81)
[java] at com.google.gwt.dev.jjs.ast.JReturnStatement.traverse
(JReturnStatement.java:39)
[java] at
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove
(JModVisitor.java:162)
[java] at com.google.gwt.dev.jjs.ast.JBlock.traverse
(JBlock.java:36)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:53)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JIfStatement.traverse
(JIfStatement.java:56)
[java] at
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove
(JModVisitor.java:162)
[java] at com.google.gwt.dev.jjs.ast.JBlock.traverse
(JBlock.java:36)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JVisitor.accept
(JVisitor.java:94)
[java] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse
(JMethodBody.java:52)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.ast.JMethod.traverse
(JMethod.java:194)
[java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept
(JModVisitor.java:132)
[java] at com.google.gwt.dev.jjs.impl.DeadCodeElimination.execImpl
(DeadCodeElimination.java:1788)
[java] at com.google.gwt.dev.jjs.impl.DeadCodeElimination.exec
(DeadCodeElimination.java:1761)
[java] at com.google.gwt.dev.jjs.impl.MethodInliner.execImpl
(MethodInliner.java:522)
[java] at com.google.gwt.dev.jjs.impl.MethodInliner.exec
(MethodInliner.java:500)
[java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.optimize
(JavaToJavaScriptCompiler.java:385)
[java] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
(JavaToJavaScriptCompiler.java:328)
[java] at com.google.gwt.dev.Precompile.precompile
(Precompile.java:300)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:170)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:84)
[java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:131)
[java] Caused by: java.lang.NullPointerException
[java] at com.google.gwt.dev.jjs.impl.Simplifier.conditional
(Simplifier.java:181)
[java] at com.google.gwt.dev.jjs.impl.Simplifier.conditional
(Simplifier.java:132)
[java] at
com.google.gwt.dev.jjs.impl.DeadCodeElimination$DeadCodeVisitor.endVisit
(DeadCodeElimination.java:266)
[java] at com.google.gwt.dev.jjs.ast.JConditional.traverse
(JConditional.java:72)
[java] at
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemove
(JModVisitor.java:162)
[java] ... 85 more
Original issue reported on code.google.com by [email protected]
on 11 Jun 2009 at 12:20
Currently, GWT-Ent supports validation of ORM's which support JPA 2.0
implementation of validation, and it is great !! But ... I'm using Seam as
backend framework, and it isn't developed JPA 2.0 support yet ( in fact,
doesn't support Hibernate 3.5 ), so I have two choices:
- Implement validation integration myself ( I have no problem with that )
- Wait for your implementation.
I don't know if you have plans to add it or not. Just to know if I have to
start coding ....
Original issue reported on code.google.com by demostenes1509
on 17 May 2010 at 3:28
What steps will reproduce the problem?
Create @Persistent @Embedded members for an AppEngine application.
What is the expected output?
Do not expect runtime errors
What do you see instead?
Errors at at
com.gwtent.gen.reflection.GeneratorHelper.addAnnotation(GeneratorHelper.jav
a:151)
because Annotation type field is null and the GWT ENT code calls:
annotation.annotationType().getName()
If AppEngine is not generating the right stuff, then I suppose this error
is correct. However, if it is possible for annotation to not have a type,
then annotations with the null type should just be ignored.
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 16 Aug 2009 at 9:00
When can we expect to see JPA 2.0 emulation inside gwt-ent? Somehow it worked
with 0.7.1, possibly due to classpath ordering. But now I get errors such as:
cannot find symbol
symbol : method getCriteriaBuilder()
location: interface javax.persistence.EntityManager
createQuery(java.lang.String) in javax.persistence.EntityManager cannot be
applied to (javax.persistence.criteria.CriteriaQuery<capture#766 of ?>)
cannot find symbol
symbol : method getEntityManagerFactory()
location: interface javax.persistence.EntityManager
Really doesn't it just need to emulate the annotations? Why does it emulate
EntityManager and other things?
Original issue reported on code.google.com by [email protected]
on 20 Jul 2010 at 9:31
What steps will reproduce the problem?
1. Use classes such as:
@Reflectable
public class TestReflection {}
@Reflectable
public class TestExtendedReflection extends TestReflection {}
2. Do
TypeOracle.Instance.getType(TestExtendedReflection.class).getSuperclass();
3. Returns null.
What is the expected output? What do you see instead?
TestReflection's type. Null.
What version of the product are you using? On what operating system?
Please provide any additional information below.
Can only get superclass if subclass says @Reflectable(superClasses=true). I
can't see any difference in the generated file between the generated
TypeOracle_Vistor.java file, so it must be something in the code that gets the
type. I can get both types via TypeOracle.Instance.getType.
Original issue reported on code.google.com by [email protected]
on 7 Sep 2010 at 4:31
What steps will reproduce the problem?
1. Use annotation such as:
@Retention( RetentionPolicy.RUNTIME )
@Target( { ElementType.METHOD, ElementType.FIELD } )
@Documented
public @interface Field {
/**
* Field name, default to the JavaBean property name
*/
String name() default "";
/**
* Should the value be stored in the document
* defaults to no.
*/
Store store() default Store.NO;
/**
* Defines how the Field should be indexed
* defaults to tokenized
*/
Index index() default Index.TOKENIZED;
/**
* Define term vector storage requirements,
* default to NO.
*/
TermVector termVector() default TermVector.NO;
/**
* Define an analyzer for the field, default to
* the inherited analyzer
*/
Analyzer analyzer() default @Analyzer;
/**
* Boost factor, default 1
*/
Boost boost() default @Boost( value = 1.0F );
/**
* Field bridge used. Default is autowired.
*/
FieldBridge bridge() default @FieldBridge;
}
2. Try to compile.
3. Fails due to
.generated/com/gwtent/client/reflection/TypeOracle_Visitor.java not having F on
the 1.0 parameter in boost.
What is the expected output? What do you see instead?
Correct compiling. The constructor
TypeOracle_Visitor.org_hibernate_search_annotations_Boost.org_hibernate_search_a
nnotations_BoostImpl(Class<Boost>, double).
What version of the product are you using? On what operating system?
0.7.1. Gentoo Linux.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Jun 2010 at 4:39
What steps will reproduce the problem?
if (setMethod.getParameters().length == 1) {
String typeName = setMethod.getParameters()[0].getTypeName();
Type type = setMethod.getParameters()[0].getType();
}
The actual type of the argument is Collection<Foo> where Foo implements
IsSerializable and
overrides equals() and hashCode().
What is the expected output? What do you see instead?
typeName is "java.util.Collection" and type is null.
What version of the product are you using? On what operating system?
gwt-ent 0.6 with gwt 1.6.4
Please provide any additional information below.
Original issue reported on code.google.com by alex%[email protected]
on 2 Jul 2009 at 10:21
What steps will reproduce the problem?
1.add the gwtent-0.7.1.jar
2.
3.
What is the expected output? What do you see instead?
successful build
but i am seeing the following errors
ompiling module com.uhg.dev.gwt.DEV_GWT_AppFrame
Validating newly compiled units
Ignored 32 units with compilation errors in first pass.
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
Scanning for additional dependencies: jar:file:/C:/dev/workspace/dev/WebContent/WEB-INF/lib/gwtent-0.7.1.jar!/com/gwtent/client/reflection/TypeOracle.java
Computing all possible rebind results for 'com.gwtent.client.reflection.TypeOracle'
Rebinding com.gwtent.client.reflection.TypeOracle
Invoking generator com.gwtent.gen.reflection.Reflection__ProxyGenerator
[ERROR] Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at com.gwtent.gen.reflection.GenExclusionCompositeReflection$1.exclude(GenExclusionCompositeReflection.java:40)
at com.gwtent.gen.GenExclusionCompositeImpl.exclude(GenExclusionCompositeImpl.java:37)
at com.gwtent.gen.LogableSourceCreator.genExclusion(LogableSourceCreator.java:92)
at com.gwtent.gen.LogableSourceCreator.generate(LogableSourceCreator.java:105)
at com.gwtent.gen.reflection.Reflection__ProxyGenerator.generate(Reflection__ProxyGenerator.java:33)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[ERROR] Errors in 'jar:file:/C:/dev/workspace/dev/WebContent/WEB-INF/lib/gwtent-0.7.1.jar!/com/gwtent/client/reflection/TypeOracle.java'
[ERROR] Line 25: Failed to resolve 'com.gwtent.client.reflection.TypeOracle' via deferred binding
[ERROR] Errors in 'jar:file:/C:/dev/workspace/dev/WebContent/WEB-INF/lib/gwt-log-3.1.8.jar!/com/allen_sauer/gwt/log/client/impl/LogClientBundle.java'
[ERROR] Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at com.google.gwt.resources.rg.CssResourceGenerator.computeOperableTypes(CssResourceGenerator.java:587)
at com.google.gwt.resources.rg.CssResourceGenerator.initReplacements(CssResourceGenerator.java:682)
at com.google.gwt.resources.rg.CssResourceGenerator.init(CssResourceGenerator.java:461)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1030)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1069)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:412)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[ERROR] Unexpected internal compiler error
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at com.google.gwt.resources.rg.CssResourceGenerator.computeOperableTypes(CssResourceGenerator.java:587)
at com.google.gwt.resources.rg.CssResourceGenerator.initReplacements(CssResourceGenerator.java:682)
at com.google.gwt.resources.rg.CssResourceGenerator.init(CssResourceGenerator.java:461)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1030)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare(AbstractClientBundleGenerator.java:1069)
at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generateIncrementally(AbstractClientBundleGenerator.java:412)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:177)
What version of the product are you using? On what operating system?
windows-xp , Eclipse 3.7.1, GWT-2.4
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Feb 2012 at 7:14
What steps will reproduce the problem?
The builds are not compatible with java 5
What is the expected output? What do you see instead?
The provided jars should be compatible with java 5
What version of the product are you using? On what operating system?
0.5
Original issue reported on code.google.com by [email protected]
on 25 Feb 2009 at 9:59
What steps will reproduce the problem?
1.Upgrade to GWT 2.2
2.Recompile my app
3.
What is the expected output? What do you see instead?
I expect a successful GWT compile
Instead I see:
Compiling module com.appmeum.brokerapp.client.brokerapp
Scanning for additional dependencies: jar:file:/Users/slehman/Documents/eclipse/brokerapp/lib/gwtent.jar!/com/gwtent/reflection/client/TypeOracle.java
Computing all possible rebind results for 'com.gwtent.reflection.client.TypeOracle'
Rebinding com.gwtent.reflection.client.TypeOracle
Invoking generator com.gwtent.gen.reflection.Reflection__ProxyGenerator
[ERROR] Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at com.gwtent.gen.reflection.GenExclusionCompositeReflection$1.exclude(GenExclusionCompositeReflection.java:40)
at com.gwtent.gen.GenExclusionCompositeImpl.exclude(GenExclusionCompositeImpl.java:37)
at com.gwtent.gen.LogableSourceCreator.genExclusion(LogableSourceCreator.java:92)
at com.gwtent.gen.LogableSourceCreator.generate(LogableSourceCreator.java:105)
at com.gwtent.gen.reflection.Reflection__ProxyGenerator.generate(Reflection__ProxyGenerator.java:33)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:517)
at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
at com.google.gwt.dev.Compiler.run(Compiler.java:215)
at com.google.gwt.dev.Compiler.run(Compiler.java:187)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
at com.google.gwt.dev.Compiler.main(Compiler.java:166)
[ERROR] Errors in 'jar:file:/Users/slehman/Documents/eclipse/brokerapp/lib/gwtent.jar!/com/gwtent/reflection/client/TypeOracle.java'
[ERROR] Line 24: Failed to resolve 'com.gwtent.reflection.client.TypeOracle' via deferred binding
[ERROR] Cannot proceed due to previous errors
What version of the product are you using? On what operating system?
From the tip of the repository. I am only using reflection. I am using the
tip rather than 1.0.0 b/c to solve a similar issue with GWT 2.1.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 14 Feb 2011 at 4:15
I created a project using gwtent2.0 ext-gwt 2.2.4 and gwt 2.2.0.
In gwtent2.0 there is a class named AnnotationsHelper which calls some excluded
methods from JClassType. With gwt 2.2.0 JClassType doesnt have a method named
"getAnnotations". Because of that while compiling the project, i get below
error.
AnnotationsHelper.class
.....
public static Annotation[] getAnnotations(HasAnnotations annotations){
if (annotations instanceof JClassType)
return getAnnotations((JClassType)annotations);
else if (annotations instanceof JAbstractMethod)
return getAnnotations((JAbstractMethod)annotations);
else if (annotations instanceof JField)
return getAnnotations((JField)annotations);
else if (annotations instanceof JPackage)
return getAnnotations((JPackage)annotations);
else if (annotations instanceof JParameter)
return getAnnotations((JParameter)annotations);
else
return null;
}
public static Annotation[] getAnnotations(JClassType classType){
return classType.getAnnotations();
}
.....
Error
.....
Rebinding com.gwtent.reflection.client.TypeOracle
Invoking generator com.gwtent.gen.reflection.Reflection__ProxyGenerator
[ERROR] com.google.gwt.core.ext.typeinfo.JClassType.getAnnotations()[Ljava/lang/annotation/Annotation;
java.lang.NoSuchMethodError:
com.google.gwt.core.ext.typeinfo.JClassType.getAnnotations()[Ljava/lang/annotati
on/Annotation;
at com.google.gwt.core.ext.typeinfo.AnnotationsHelper.getAnnotations(AnnotationsHelper.java:50)
at com.gwtent.gen.GenUtils.getClassTypeAnnotationWithMataAnnotation(GenUtils.java:224)
at com.gwtent.gen.reflection.ReflectAllInOneCreator.getAllReflectionClasses(ReflectAllInOneCreator.java:148)
at com.gwtent.gen.reflection.ReflectAllInOneCreator.doGetSourceWriter(ReflectAllInOneCreator.java:418)
at com.gwtent.gen.LogableSourceCreator.getSourceWriter(LogableSourceCreator.java:137)
at com.gwtent.gen.LogableSourceCreator.generate(LogableSourceCreator.java:109)
at com.gwtent.gen.reflection.Reflection__ProxyGenerator.generate(Reflection__ProxyGenerator.java:33)
at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)
at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:662)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:74)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:259)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:248)
at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
.....
Does anyone have any idea?
Thanks in advance
Original issue reported on code.google.com by [email protected]
on 2 Aug 2011 at 1:36
What steps will reproduce the problem?
1.setting a class to implement reflection that has a smartGWT component
2.
3.
What is the expected output? What do you see instead?
does not compile
What version of the product are you using? On what operating system?
latest download
windows xp
Please provide any additional information below.
reflection with widgets work
Original issue reported on code.google.com by [email protected]
on 16 Aug 2010 at 12:08
this is a great library :D I was specifically interested in the serialization
module, do you have any example for it ?
Many thanks!!!
Original issue reported on code.google.com by [email protected]
on 30 Mar 2011 at 10:25
Hi guys,
I just discovered your project and think it's some great piece of work you have
achieved here. I wonder though why it's so hard to find when googleing for
databinding...
Anyways, I ran into a Problem when testing your Validation features:
What steps will reproduce the problem?
1. Using the @Size(min=5) (javax.validation.constraints.Size) Anntotation on
any attribute of a Pojo
2. Binding that attribute via UIBinding to a GWT TextBox Widget
3. Run the application and change the value of the TextBox
What is the expected output? What do you see instead?
Expected: Validation of InputString (size>5)
Instead:
When the Validation is invoked following Exception is thrown:
your class (javax.validation.constraints.SizeValidator) should have reflection
information before this opeartion. This can be done by annotated class with
"@Reflectable" annotations, i.e: "@Reflectable", "@Reflect_Domain",
"@Reflect_Full", "@Reflect_Mini", "@Validtable", "@DataContract" or implement
flag interface "Reflection". if you are facing the class which you can not
modify(i.e java.*, javax.*), you can using @Reflectable(relationTypes=true) or
@Reflect_Domain to your class. Current message is :
To make ConstraintValidator works with GWT, please makesure its reflection
enabled. The exception stack trace follows:
com.gwtent.reflection.client.ReflectionUtils$ReflectionRequiredException
at com.gwtent.reflection.client.ReflectionUtils.reflectionRequired(ReflectionUtils.java:172)
at com.gwtent.reflection.client.ReflectionUtils.reflectionRequired(ReflectionUtils.java:185)
at com.gwtent.validate.client.impl.ValidatorGWT.createConstraintValidatorFromAnnotation(ValidatorGWT.java:305)
at com.gwtent.validate.client.impl.ValidatorGWT.doValidate(ValidatorGWT.java:213)
at com.gwtent.validate.client.impl.ValidatorGWT.validateValue(ValidatorGWT.java:117)
...
What version of the product are you using? On what operating system?
using GWT 2.0.3 via Maven
using gwt-ent 1.0.0-RC1
included gwt-ent in gwt.xml via
<inherits name="com.gwtent.GwtEnt" />
Please provide any additional information below.
I have Reflection and UIBinding working, so I think I have gwt-ent set up
correctly.
I investigated the issue quiet a lot and came to the following hints:
-when tying to instantiate the ConstraintValidator for the Size Validation,
"TypeOracle.Instance.getClassType(clazz);" is called with clazz being set to
"javax.validation.constraints.SizeValidator"
-this call though returns Null, cause
"javax.validation.constraints.SizeValidator" is not included in the typeMap of
TypeOracleImpl
-so I think it has something to do with loading the SizeValidator class into
the typeMap of the TypeOracleImpl, which must be a setup thing?!
-the @Required Validation workes fine and the RequiredValidator is correctly
loaded into the typeMap of the TypeOracleImpl
Puhh...long but hopefully helpfull description.
I hope you can give me some hints about what I might have done wrong in project
setup, sine I don't think it's the wrong use of the Annotation.
Thanks a lot! If I get this to work I will most likely use it in a major
enterprise project and future contributions in return will be likely.
Original issue reported on code.google.com by [email protected]
on 13 Jul 2010 at 3:08
What steps will reproduce the problem?
1. Have class such as:
public class Property<E> {
private E value;
public void setValue(E val) {
this.value = val;
}
}
2. Try and compile.
3. Get error
[INFO] [ERROR] Line 79: E cannot be resolved
[INFO] [ERROR] Line 79: Syntax error on token "extends", . expected
What do you see instead?
public void setFieldValue(Object instance, String fieldName, Object value) {
com.xteconline.desktop.client.state.Property content = (com.xteconline.desktop.client.state.Property)instance;
if (fieldName.equals("value")) {
content.value=(E extends java.lang.Object)value;
} else super.setFieldValue(instance, fieldName, value);
}
What version of the product are you using? On what operating system?
2.0RC1 on Linux.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Mar 2011 at 3:58
ไธบไปไนไธ็ดๆฅไปๆฏๆgxt2ๅผๅงๅข๏ผ
Original issue reported on code.google.com by [email protected]
on 18 Jul 2009 at 7:23
What steps will reproduce the problem?
1. My Pojo has couple of fields of data type java.math.BigDecimal
2. Added math jars to classpath & inherited module in GWT.xml
(gwt-math.jar & gwt-math-server.jar & <inherits
name="com.googlecode.gwt.math.Math" />)
http://code.google.com/p/gwt-math/
3. ClassType classType =
TypeOracle.Instance.getClassType(pojoObject.getClass());
What is the expected output? What do you see instead?
I would like use all the api available via gwtent Reflection instead I am
getting run time exception
[ERROR] Failed to create an instance of
'com.gwtent.client.reflection.TypeOracle' via deferred binding
java.lang.SecurityException: Prohibited package name: java.math
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:479)
at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at
com.google.gwt.dev.shell.CompilingClassLoader.findClass(CompilingClassLoader.jav
a:629)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at
com.gwtent.client.reflection.TypeOracle_Visitor$java_math_InternalBigDecimal.<in
it>(transient
source for com.gwtent.client.reflection.TypeOracle_Visitor:3442)
at com.gwtent.client.reflection.TypeOracle_Visitor.<init>(transient source
for com.gwtent.client.reflection.TypeOracle_Visitor:5798)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:373)
at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at com.gwtent.client.reflection.TypeOracle.<clinit>(TypeOracle.java:25)
at
com.citi.gdos.vce.client.utils.datasource.GWTRPCDataSource.getValueOfEntityField
(GWTRPCDataSource.java:291)
at
com.citi.gdos.vce.client.utils.datasource.GWTRPCDataSource.copyEntityRecordToGri
dRecord(GWTRPCDataSource.java:265)
What version of the product are you using? On what operating system?
GWT 1.6,
SMART GWT 1.2
gwt-math-2.1.jar & gwt-math-server-2.1.jar
gwtent.jat (latest verion gwt-ent-0.7)
Windows XP 2002
Please provide any additional information below.
MY POJO
import com.gwtent.client.reflection.Reflection;
import java.math.BigDecimal;
import java.util.Date;
public class DimExecutionCost implements java.io.Serializable , Reflection
{
private static final long serialVersionUID = 389980682318637939L;
private long dwExecCostId;
private BigDecimal fee;
private char feeBasis;
private String venue;
etc ...
}
Original issue reported on code.google.com by [email protected]
on 22 Sep 2009 at 3:09
Separate source to a GWT module and Create a jar file
Original issue reported on code.google.com by [email protected]
on 2 Jan 2008 at 12:42
Hello!
We are evaluating GwtEnt for our application but found a show-stopper problem.
We have an application which uses annotated JPA entities both at the client
side and the server side.
When
TypeOracle.Instance.getClassType(type);
is called from our GWT client code, lots of exceptions are thrown at
com.gwtent.gen.reflection.GeneratorHelper@136
JClassType classType =
typeOracle.getType(annotation.annotationType().getName());
The cause is that we use JPA (and Hibernate) annotations in our entity
classes (which are used in GWT client code as well), but the sources of
these annotations are not available for the GWT compiler. (The GWT compiler
does not emit eny warnings or errors.)
A solution would be that NotFoundExceptions should be caught by the
corresponding GwtEnt reflection classes, so annotations unavailable for the
GWT compiler should be made unavailable for GwtEnt reflection as well.
This is a show-stopper problem for us, and although GwtEnt seems to be very
good, we cannot use it because of this bug :(
Thanks for your help in advance!
Regards:
Norbi
---
GWT: 1.5.3
GwtEnt: 0.5
Reproducing: call TypeOracle.Instance.getClassType(type) for a type which
has some annotations which are available for the Java compiler but not
available for the GWT compiler.
More complete stack trace:
com.google.gwt.core.ext.typeinfo.NotFoundException: javax.persistence.Entity
at
com.gwtent.gen.reflection.GeneratorHelper.addAnnotation(GeneratorHelper.java:136
)
at
com.gwtent.gen.reflection.GeneratorHelper.addAnnotations(GeneratorHelper.java:19
8)
at
com.gwtent.gen.reflection.ReflectionCreator$ReflectionSourceCreator.addClassAnno
tation(ReflectionCreator.java:212)
at
com.gwtent.gen.reflection.ReflectionCreator$ReflectionSourceCreator.createSource
(ReflectionCreator.java:183)
at
com.gwtent.gen.reflection.ReflectAllInOneCreator.genAllClasses(ReflectAllInOneCr
eator.java:72)
at
com.gwtent.gen.reflection.ReflectAllInOneCreator.createSource(ReflectAllInOneCre
ator.java:53)
at
com.gwtent.gen.LogableSourceCreator.generate(LogableSourceCreator.java:109)
at
com.gwtent.gen.reflection.Reflection__ProxyGenerator.generate(Reflection__ProxyG
enerator.java:33)
at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:51)
Original issue reported on code.google.com by [email protected]
on 26 Jan 2009 at 10:10
What steps will reproduce the problem?
1. I am trying to construct a class which expects HashMap in the Constructor. I
am not able do so. It is only suppoting empty constructor.
What is the expected output? What do you see instead?
I should be able to call the constructor with HashMap as Parameter OR some
String as Parameter
What version of the product are you using? On what operating system?
gwtent.1.0.0.RC1.zip on Windows.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 22 Nov 2010 at 5:59
Recent version of Hibernate Validator 4 and also Spring 3 validation API
requires JSR 303 in 1.0.0 version, guessing in trunk is 0.7.0.
If you must use Hibernate Validation on server side with gwt-ent on client
side, you must hack your jar to remove or update javax.validation version (with
gwt .xml module descriptor).
Even if you do that and for reason not include sources of javax.validation, it
throws gwt compiler errors and slow up whole build - but works.
If you do include source codes, it won't compile at all (due to version
incompatibilities).
Original issue reported on code.google.com by miroslav.hruz
on 14 Dec 2010 at 9:25
The showcase download does not complete - it is always disconnected after 11.5
MB. This
happens also from a server in a different country with this message:
08:08:34 (0.00 B/s) - Connection closed at byte 12058624. Retrying.
--08:08:44-- http://gwt-ent.googlecode.com/files/gwtent_showcase.zip
(try:17) => `gwtent_showcase.zip.2'
Connecting to gwt-ent.googlecode.com|74.125.77.82|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 24,931,641 (24M), 12,873,017 (12M) remaining [application/x-zip]
48% [+++++++++++++++++++++++++++++++++++++
]
12,058,624 --.--K/s
08:08:45 (0.00 B/s) - Connection closed at byte 12058624. Retrying.
So it looks like a problem with googles file hosting. Not sure if it is
temporary or due to some
property of the file.
Original issue reported on code.google.com by jdpatterson
on 27 May 2010 at 11:17
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 23 Oct 2009 at 5:45
Since upgrading to GWT 2.1.1 (I used 2.0.4 before, which worked fine) I get
strange errors on using the reflection part of gwt-ent.
I used gwt-ent-0.7.1 before and tried upgrading to gwt-ent-1.0.0.RC1 to resolve
this error but it didn't change.
The errors only happen in production mode, not in debug mode.
The line that causes the problem is:
TypeOracle.Instance.getClassType(classNameString);
In Chrome Im getting the following error only on the first time of calling the
above line (I compiled as detailed):
CB2422B9A6098702773EB2EE7E782D2A.cache.html:33859 Uncaught TypeError: Cannot
call method 'get__Ljava_lang_Object_2Ljava_lang_Object_2' of undefined
The function from which the throwable gets thrown is:
function
com_google_gwt_core_client_impl_Impl_entry__Lcom_google_gwt_core_client_JavaScri
ptObject_2Lcom_google_gwt_core_client_JavaScriptObject_2(jsFunction){
return function(){
try {
return com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(jsFunction, this, arguments);
}
catch (e) {
throw e;
}
};
}
Internet Explorer 8 throws the following on every call of the at the top
specified method:
(TypeError): 'com_gwtent_reflection_client_impl_TypeOracleImpl_typeMap' ist
Null oder kein Objekt
Original issue reported on code.google.com by [email protected]
on 17 Feb 2011 at 11:37
Hi guys.
Our team have been using GWT ENT in our enterprise project for months
now. Before this, non reflectable nature of the compiled code was causing
long lasting subtle problems. This one has surely solved all of them
single-handedly. Thanks to you guys :).
Well, I ran into a problem so I need someone's help. When I updated a
compiler from GWT 2.0.3 to GWT 2.1 RC1. It didn't work. After some homework,
I end up a piece of code that behaves differently in on-browser.
Is there any workaround for this now? GWT 2.1 has some sweet
feature we cannot miss.
What steps will reproduce the problem?
The code below compiles with both 2.0 and 2.1, works fine in dev-mode,
but GWT 2.1 seems to spit a non-worky Javascript code on browser.
----- CODE ----
ReflectSample.java
---
package org.example.reflect.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.gwtent.reflection.client.ClassType;
import com.gwtent.reflection.client.Constructor;
import com.gwtent.reflection.client.TypeOracle;
public class ReflectSample implements EntryPoint {
public void onModuleLoad() {
ClassType classType = TypeOracle.Instance.getClassType( Entity.class);
Constructor constructor = classType.findConstructor();
Object e = constructor.newInstance();
final Label label=new Label();
label.setText( ((Entity)e).getName());
RootPanel.get("container").add( label);
}
}
Entity.java:
---
import com.gwtent.reflection.client.Reflectable;
@Reflectable
public class Entity {
String name;
public Entity() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
----- CODE ----
What is the expected output? What do you see instead?
We got a following Javascript error on Firefox 3.6.
it's compiled with a "DETAIL" style option.
----- ERROR ----
Error: this$static is undefined
Line: 3397
function java_util_AbstractHashMap_$get__Ljava_util_AbstractHashMap_2Ljava_lang_Object_2Ljava_lang_Object_2(this$static, key){
==> return key ==
null?this$static.java_util_AbstractHashMap_nullSlot:key != null &&
key.java_lang_Object_castableTypeMap$ &&
!!key.java_lang_Object_castableTypeMap$[1]?this$static.java_util_AbstractHashMap
_stringMap[$intern_231 +
com_google_gwt_lang_Cast_dynamicCast__Ljava_lang_Object_2ILjava_lang_Object_2(ke
y,
1)]:java_util_AbstractHashMap_$getHashValue__Ljava_util_AbstractHashMap_2Ljava_l
ang_Object_2ILjava_lang_Object_2(this$static, key,
~~com_google_gwt_core_client_JavaScriptObject_hashCode_1_1devirtual$__Ljava_lang
_Object_2I(key));
}
----- ERROR ----
What version of the product are you using? On what operating system?
GWT 2.1.0 RC1 via Eclipse 3.5 with Google Plugin for Eclipse
GWT-ENT 1.0.0-RC1
FireFox 3.6.11
Please provide any additional information below.
We also encountered TypeOracleImpl_typeMap missing error in much complecated code.
But the cause of it also seems to be the error above.
Thanks in advance!
Original issue reported on code.google.com by [email protected]
on 28 Oct 2010 at 9:16
What steps will reproduce the problem?
The code below generate lexically invalid TypeOracle_Visitor.java .
@Reflectable
class A<B extends java.util.List> {
B b;
}
class C<D extends java.util.List> extends A<D>{
D d;
}
What is the expected output? What do you see instead?
Scanning for additional dependencies: generated://4663315228C030854442979D3F99FD1C/com/gwtent/reflection/client/TypeOracle_Visitor.java
Adding '392' new generated units
Validating newly compiled units
[ERROR] Errors in 'generated://E8F0F7DB9CA04B34EE02CDA8A32CBA3E/xxxxxxxxx/web/client/A___Reflection.java'
[ERROR] Line 49: B cannot be resolved
[ERROR] Line 49: Syntax error on token "extends", . expected
See snapshot: C:\DOCUME~1\HYAMAM~1\LOCALS~1\Temp\xxxxxxxxx.web.client.A___Reflection7042553645245114911.java
[ERROR] Errors in 'generated://A6D4338DDE28FA3EE7262778BAECBAEE/xxxxxxxxx/web/client/C___Reflection.java'
[ERROR] Line 48: D cannot be resolved
[ERROR] Line 48: Syntax error on token "extends", . expected
See snapshot: C:\DOCUME~1\HYAMAM~1\LOCALS~1\Temp\xxxxxxxxx.web.client.C___Reflection8760375983145239651.java
[ERROR] Errors in 'generated://E8F0F7DB9CA04B34EE02CDA8A32CBA3E/xxxxxxxxx/web/client/A___Reflection.java'
[ERROR] Line 49: B cannot be resolved
[ERROR] Line 49: Syntax error on token "extends", . expected
[ERROR] Errors in 'generated://A6D4338DDE28FA3EE7262778BAECBAEE/xxxxxxxxx/web/client/C___Reflection.java'
[ERROR] Line 48: D cannot be resolved
[ERROR] Line 48: Syntax error on token "extends", . expected
[ERROR] Cannot proceed due to previous errors
What version of the product are you using? On what operating system?
GWT ENT (svn trunk 20100907)
GWT 2.1 RC1 privately patched
But you may have to use GWT 2.0 to compile the code as GWT 2.1 RC1 is still
broken.
Please provide any additional information below.
To avoid this problem, I had to rewrite the code like this.
@Reflectable
class A<B extends java.util.List> {
java.util.List b;
}
class C<D extends java.util.List> extends A<D>{
java.util.List d;
}
Original issue reported on code.google.com by [email protected]
on 30 Oct 2010 at 1:59
is the project available on some maven repo? i was not able to find one.
Original issue reported on code.google.com by [email protected]
on 31 Jan 2012 at 5:11
What steps will reproduce the problem?
1. Upload a databinding app to Google APp Engine
What is the expected output? What do you see instead?
com.gwtent.common.client.CheckedExceptionWrapper: (TypeError): Cannot read
property 'stringMap' of undefined
Please provide any additional information below.
The javascript runs fine in hosted mode. It fails when uploaded to App Engine.
Original issue reported on code.google.com by [email protected]
on 10 Feb 2011 at 3:09
What steps will reproduce the problem?
1. add the gwtent.jar in classpath
2. add <inherits name="com.gwtent.GwtEnt"></inherits> in config xml
3.
What is the expected output? What do you see instead?
expected : successful build
I see -
cleanGWT:
gwtc:
Compiling module abm.ui.service.Service
Refreshing module from source
Validating newly compiled units
Removing units with errors
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/validate/ValidateTestCase.java'
[ERROR] Line 9: The import com.google.gwt.validation cannot
be resolved
[ERROR] Line 16: IValidator cannot be resolved to a type
[ERROR] Line 16: The method create(Class<?>) from the type
GWT refers to the missing type IValidator
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/validate/Person.java'
[ERROR] Line 5: The import com.google.gwt.validation cannot
be resolved
[ERROR] Line 6: The import com.google.gwt.validation cannot
be resolved
[ERROR] Line 7: The import com.google.gwt.validation cannot
be resolved
[ERROR] Line 8: The import com.google.gwt.validation cannot
be resolved
[ERROR] Line 11: IValidatable cannot be resolved to a type
[ERROR] Line 13: NotNull cannot be resolved to a type
[ERROR] Line 13: The attribute groups is undefined for the
annotation type NotNull
[ERROR] Line 14: NotEmpty cannot be resolved to a type
[ERROR] Line 14: The attribute groups is undefined for the
annotation type NotEmpty
[ERROR] Line 15: Length cannot be resolved to a type
[ERROR] Line 15: The attribute minimum is undefined for the
annotation type Length
[ERROR] Line 15: The attribute groups is undefined for the
annotation type Length
[ERROR] Line 18: NotNull cannot be resolved to a type
[ERROR] Line 19: NotEmpty cannot be resolved to a type
[ERROR] Line 20: Length cannot be resolved to a type
[ERROR] Line 20: The attribute minimum is undefined for the
annotation type Length
[ERROR] Line 23: NotEmpty cannot be resolved to a type
Removing units with errors
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/impl/InvalidConstraintImpl.java'
[ERROR] Line 5: No source code is available for type
javax.validation.InvalidConstraint<T>; did you forget to inherit a
required module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/ValidatorFactory.java'
[ERROR] Line 13: No source code is available for type
javax.validation.Validator<T>; did you forget to inherit a required module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/ClientValidatorFactory.java'
[ERROR] Line 15: No source code is available for type
javax.validation.Validator<T>; did you forget to inherit a required module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/aop/AOPTestCase.java'
[ERROR] Line 31: No source code is available for type
com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a
required module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/impl/ValidatorGWT.java'
[ERROR] Line 27: No source code is available for type
javax.validation.Validator<T>; did you forget to inherit a required module?
[ERROR] Line 33: No source code is available for type
javax.validation.ElementDescriptor; did you forget to inherit a required
module?
[ERROR] Line 53: No source code is available for type
javax.validation.MessageResolver; did you forget to inherit a required
module?
[ERROR] Line 58: No source code is available for type
javax.validation.InvalidConstraint<T>; did you forget to inherit a
required module?
[ERROR] Line 158: No source code is available for type
javax.validation.Constraint<A>; did you forget to inherit a required
module?
[ERROR] Line 177: No source code is available for type
javax.validation.ConstraintValidator; did you forget to inherit a required
module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/impl/ConstraintFactoryCacheImpl.java'
[ERROR] Line 9: No source code is available for type
javax.validation.ConstraintFactory; did you forget to inherit a required
module?
[ERROR] Line 16: No source code is available for type
javax.validation.Constraint<A>; did you forget to inherit a required
module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/ValidatorFactoryDefault.java'
[ERROR] Line 11: No source code is available for type
javax.validation.Validator<T>; did you forget to inherit a required module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/reflection/ReflectionTestCase.java'
[ERROR] Line 47: No source code is available for type
com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a
required module?
[ERROR] Line 118: No source code is available for type
javax.validation.NotNull; did you forget to inherit a required module?
[ERROR] Line 119: No source code is available for type
javax.validation.ConstraintValidator; did you forget to inherit a required
module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
validate/impl/ConstraintFactoryImpl.java'
[ERROR] Line 11: No source code is available for type
javax.validation.ConstraintFactory; did you forget to inherit a required
module?
[ERROR] Line 20: No source code is available for type
javax.validation.Constraint<A>; did you forget to inherit a required
module?
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
test/GwtEntTestCase.java'
[ERROR] Line 5: No source code is available for type
com.google.gwt.junit.client.GWTTestCase; did you forget to inherit a
required module?
Removing invalidated units
[WARN] Compilation
unit 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/clien
t/test/template/TemplateTestCase.java' is removed due to invalid reference
(s):
[WARN]
jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/test
/GwtEntTestCase.java
[WARN] Compilation
unit 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/clien
t/test/json/SerializationTestCase.java' is removed due to invalid reference
(s):
[WARN]
jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/test
/GwtEntTestCase.java
Scanning for additional dependencies:
jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/refl
ection/TypeOracle.java
Computing all possible rebind results
for 'com.gwtent.client.reflection.TypeOracle'
Rebinding com.gwtent.client.reflection.TypeOracle
Invoking <generate-with
class='com.gwtent.gen.reflection.Reflection__ProxyGenerator'/>
[ERROR] javax.validation.Constraint
com.google.gwt.core.ext.typeinfo.NotFoundException:
javax.validation.Constraint
at com.google.gwt.core.ext.typeinfo.TypeOracle.getType
(TypeOracle.java:446)
at
com.gwtent.gen.reflection.ReflectAllInOneCreator.getAllReflectionClasses
(ReflectAllInOneCreator.java:115)
at
com.gwtent.gen.reflection.ReflectAllInOneCreator.doGetSourceWriter
(ReflectAllInOneCreator.java:202)
at com.gwtent.gen.LogableSourceCreator.getSourceWriter
(LogableSourceCreator.java:130)
at com.gwtent.gen.LogableSourceCreator.generate
(LogableSourceCreator.java:105)
at com.gwtent.gen.reflection.Reflection__ProxyGenerator.generate
(Reflection__ProxyGenerator.java:33)
at com.google.gwt.dev.cfg.RuleGenerateWith.realize
(RuleGenerateWith.java:49)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind
(StandardRebindOracle.java:113)
at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind
(StandardRebindOracle.java:62)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:172)
at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:161)
at
com.google.gwt.dev.Precompile$DistillerRebindPermutationOracle.getAllPossib
leRebindAnswers(Precompile.java:204)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe
binds(WebModeCompilerFrontEnd.java:128)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process
(AbstractCompiler.java:151)
at org.eclipse.jdt.internal.compiler.Compiler.compile
(Compiler.java:444)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
(AbstractCompiler.java:85)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile
(AbstractCompiler.java:181)
at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$400
(AbstractCompiler.java:71)
at com.google.gwt.dev.jdt.AbstractCompiler.compile
(AbstractCompiler.java:473)
at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio
ns(WebModeCompilerFrontEnd.java:73)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
(JavaToJavaScriptCompiler.java:254)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:300)
at com.google.gwt.dev.Compiler.run(Compiler.java:170)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:84)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
at com.google.gwt.dev.Compiler.main(Compiler.java:131)
[ERROR] Errors
in 'jar:file:/C:/workspace/DEV/GoogleABM/lib/gwtent.jar!/com/gwtent/client/
reflection/TypeOracle.java'
[ERROR] Line 25: Failed to
resolve 'com.gwtent.client.reflection.TypeOracle' via deferred binding
[ERROR] Cannot proceed due to previous errors
C:\workspace\DEV\GoogleABM\build.xml:93: Java returned: 1
BUILD FAILED (total time: 4 seconds)
What version of the product are you using? On what operating system?
latest, windows
Please provide any additional information below.
using netbeans
Original issue reported on code.google.com by [email protected]
on 3 Jun 2009 at 7:59
What steps will reproduce the problem?
1. Create a reflectable class named "ChildSomething"
2. call
TypeOracle.Instance.getClassType(ChildSomething.class).getSuperclass() and
confirm result is null
What is the expected output? What do you see instead?
The call should return the ChildSomething superclass, either the Object
class type if it doesn't extend anything explicitly, or the parent class type.
What version of the product are you using? On what operating system?
I'm using gwt-ent 0.7 on Windows XP Professional Service Pack 3
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 8 Oct 2009 at 3:39
What steps will reproduce the problem?
1. Create class as such:
@Reflect_Full
public class ReflectionPopulator {
Collection<?> collection;
List<?> list = new ArrayList<String>();
ArrayList<?> arrayList;
Set<?> set;
Map<?, ?> map = new HashMap<String, String>();
HashMap<?, ?> hashMap;
}
2. Compile and run.
What is the expected output? What do you see instead?
ArrayList correctly gets List, Cloneable, Serializable (although should
theoretically also have Iterable and RandomAccess)
Set correctly gets Collection (although should theoretically have Iterable too)
HashMap on the other hand only gets Cloneable and Serializable and not Map.
What version of the product are you using? On what operating system?
1.0RC1 on Windows 7 and Gentoo Linux.
Please provide any additional information below.
At a minimum I would think that these would also already have reflection
information generated for them. If I don't have it this way and I don't
reference Collection anywhere else there is an @Reflect* annotation, List also
does not list Collection as one of its interfaces. This does kind of break
things especially when you have a class that mimics Class.isAssignableFrom by
checking superinterfaces and superclasses against another class (i.e. in this
case using List.class and all its interfaces against Collection.class).
Original issue reported on code.google.com by [email protected]
on 8 Apr 2011 at 4:01
Reflection still doesn't work for a java.util.List with generics.
Error is in the generated com.gwtent.client.reflection.TypeOracle_Visitor:
public Object invoke(Object instance, String methodName, Object[] args)
throws MethodInvokeException {
java.util.List content = (java.util.List)instance;
if (args == null){
args = new Object[]{};
}
if (methodName.equals("add")) {
checkInvokeParams(methodName, 1, args);
return Boolean.valueOf(content.add(((java.lang.Object)args[0])));
} else if (methodName.equals("add")) {
checkInvokeParams(methodName, 2, args);
content.add((((Integer)args[0]).intValue()),
((java.lang.Object)args[1]));
return null;
}
........................
.......................
} else if (methodName.equals("toArray")) {
checkInvokeParams(methodName, 1, args);
return (Object)content.toArray(((T extends
java.lang.Object[])args[0]));
} else return super.invoke(instance, methodName, args);
}
The compiler fails here:
return (Object)content.toArray(((T extends java.lang.Object[])args[0]));
Original issue reported on code.google.com by [email protected]
on 11 Mar 2009 at 1:47
What steps will reproduce the problem?
Just a basic unit test where TypeOracle.Instance is used, for instance
TypeOracle.Instance.getClassType().
What is the expected output? What do you see instead?
NullPointerException (Instance is null).
What version of the product are you using? On what operating system?
GWT 2.4.0
Inherited from module and everything compiles and runs fine, some aspects of
the API work but TypeOracle.Instance is always null for me.
Original issue reported on code.google.com by [email protected]
on 27 Mar 2012 at 7:10
Old code:
public Collection<String> getPropertyNames() {
if (propertyNames != null) {
Collection<String> result = new ArrayList<String>();
for (Method method : classType.getMethods()) {
if ((method.getName().startsWith("get"))
&& (method.getParameters().length <= 0)) {
result.add(method.getName().substring(4));
}
}
}
return propertyNames;
}
This method will always return null because propertyNames is set to be null
as default thus never entering the loop. Also once it's in the loop the
variable never gets set.
Fixed code:
public Collection<String> getPropertyNames() {
if (propertyNames == null) {
Collection<String> result = new ArrayList<String>();
for (Method method : classType.getMethods()) {
if ((method.getName().startsWith("get"))
&& (method.getParameters().length <= 0)) {
result.add(method.getName().substring(4));
}
}
propertyNames = result;
}
return propertyNames;
}
Original issue reported on code.google.com by [email protected]
on 6 Oct 2009 at 12:32
What steps will reproduce the problem?
1. If the reflectable class , or its dependent classs has an annotation whose
value is this class, then processClass enters infinite loop.
for example,
@DomainClass(TtBina.class)
public interface ITtBina {}
public class TtBina implements ITtBina,Reflection{}
I have patched addClassIfNotExists and processClass methods as below.
private void processClass(JClassType classType, Reflectable reflectable) {
if (! genExclusion(classType)){
if (addClassIfNotExists(classType, reflectable)) {
processRelationClasses(classType, reflectable);
processAnnotationClasses(classType, reflectable);
}
}
}
private boolean addClassIfNotExists(JClassType classType, Reflectable setting){
//Add next line we can make sure we just append normal class type, always get from TypeOracle
//not JParameterizedType or JTypeParameter etc...
if (classType != null){
// System.out.println("addClassIfNotExists: " +
classType.getQualifiedSourceName());
classType = this.typeOracle.findType(classType.getQualifiedSourceName());
}
//we just process public classes
if ((classType == null) || (!classType.isPublic()))
return false;
if (candidateList.indexOf(classType) < 0) {
candidateList.add(classType);
candidates.put(classType, setting);
return true;
}
return false;
}
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
gwt-ent 1.0.0.RC1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 26 Aug 2010 at 2:26
What steps will reproduce the problem?
1. Create a class with @Reflectable(assignableClasses = true)
2. Create an anonymous class extending the previous class
3. Serialize the child class
What do you see instead?
ReflectionRequiredException
What version of the product are you using? On what operating system?
Ubuntu, gwt 2.0.3 , gwtent 0.7.1
Original issue reported on code.google.com by [email protected]
on 23 Jun 2010 at 7:20
*What steps will reproduce the problem?
1. Aspectable class :
public class DummyModel implements Aspectable {
private String string1;
public void setString1(String string1) {
this.string1 = string1;
}
}
------------------------------------------
2. Interceptor class :
@Aspect
public class HasHistoryInterceptor {
@After("execution(* *.set*(..))")
public void afterCall(MethodInvocation invocation) {
System.out.println("Just called a setter");
}
}
------------------------------------------
3. Do:
public void testAOP(){
final DummyModel model = GWT.create(DummyModel.class);
model.setString1("state1");
model.setString1("state2");
}
*What is the expected output? What do you see instead?
The afterCall method in the Interceptor class in only fired once.
The only output I have with the System.out.println is:
Just called a setter
Where I should have:
Just called a setter
Just called a setter
*What version of the product are you using? On what operating system?
gwtent-1.0.0RC1
Original issue reported on code.google.com by [email protected]
on 21 Sep 2010 at 3:12
What steps will reproduce the problem?
1. Open http://gwtent-
showcase.appspot.com/gwtent_showcase/Gwtent_showcase.html in Google Chrome
3.0.195.33
2. Click Reflection tab
3. Click any link in left section. Click button "Show Reflection .." on
central area
What is the expected output? What do you see instead?
It supposed some text to appear in central text area, but nothing happens
instead.
What version of the product are you using? On what operating system?
MS Vista, Google Chrome 3.0.195.33
Please provide any additional information below.
Reflection works in FF 3.5.5. The rest of functionality (i.e. validation in
html templates) seems to work in Chrome well. So only Reflection doesn't
work in Chrome.
Original issue reported on code.google.com by [email protected]
on 26 Nov 2009 at 12:00
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.