2012-10-26 4 views
1

내가이 예를 구현하기 위해 노력하고있어 컴파일 : 내 GWT 응용 프로그램에 http://zenoconsulting.wikidot.com/blog:17을하지만 난 프로젝트를 컴파일 할 때이 오류가 :GWT 인큐베이터 PagingScrollTable 오류

Compiling module com.myapp.security.GwtSpringSecurityProject 
    Validating newly compiled units 
     Ignored 2 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:/_work/Eclipse/MyApp/war/WEB-INF/lib/gwt-incubator-20101117-r1766.jar!/com/google/gwt/gen2/table/client/AbstractScrollTable.java 
     Computing all possible rebind results for 'com.google.gwt.gen2.table.client.AbstractScrollTable.Impl' 
     Rebinding com.google.gwt.gen2.table.client.AbstractScrollTable.Impl 
      Could not find an exact match rule. Using 'closest' rule <replace-with class='com.google.gwt.gen2.table.client.AbstractScrollTable.ImplIE6'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding 
    Scanning for additional dependencies: jar:file:/C:/_work/Eclipse/MyApp/war/WEB-INF/lib/gwt-incubator-20101117-r1766.jar!/com/google/gwt/gen2/table/client/FixedWidthTableImpl.java 
     Computing all possible rebind results for 'com.google.gwt.gen2.table.client.FixedWidthTableImpl.Impl' 
     Rebinding com.google.gwt.gen2.table.client.FixedWidthTableImpl.Impl 
      Could not find an exact match rule. Using 'closest' rule <replace-with class='com.google.gwt.gen2.table.client.FixedWidthTableImpl.ImplIE8'/> based on fall back values. You may need to implement a specific binding in case the fall back behavior does not replace the missing binding 
    [ERROR] An internal compiler exception occurred 
com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode 
    at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140) 
    at com.google.gwt.dev.jjs.impl.TypeMap.internalGet(TypeMap.java:242) 
    at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:138) 
    at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:1144) 
    at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:603) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatement(GenerateJavaAST.java:1771) 
    at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:638) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processStatements(GenerateJavaAST.java:1846) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1513) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:501) 
    at com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:2958) 
    at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:608) 
    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] <no source info>: public abstract class java.text.DateFormat 
    extends java.text.Format 
/* fields */ 
protected [unresolved] Unresolved type java.util.Calendar calendar 
protected [unresolved] Unresolved type java.text.NumberFormat numberFormat 
public static final [unresolved] int ERA_FIELD 
public static final [unresolved] int YEAR_FIELD 
public static final [unresolved] int MONTH_FIELD 
public static final [unresolved] int DATE_FIELD 
public static final [unresolved] int HOUR_OF_DAY1_FIELD 
public static final [unresolved] int HOUR_OF_DAY0_FIELD 
public static final [unresolved] int MINUTE_FIELD 
public static final [unresolved] int SECOND_FIELD 
public static final [unresolved] int MILLISECOND_FIELD 
public static final [unresolved] int DAY_OF_WEEK_FIELD 
public static final [unresolved] int DAY_OF_YEAR_FIELD 
public static final [unresolved] int DAY_OF_WEEK_IN_MONTH_FIELD 
public static final [unresolved] int WEEK_OF_YEAR_FIELD 
public static final [unresolved] int WEEK_OF_MONTH_FIELD 
public static final [unresolved] int AM_PM_FIELD 
public static final [unresolved] int HOUR1_FIELD 
public static final [unresolved] int HOUR0_FIELD 
public static final [unresolved] int TIMEZONE_FIELD 
private static final [unresolved] long serialVersionUID 
public static final [unresolved] int FULL 
public static final [unresolved] int LONG 
public static final [unresolved] int MEDIUM 
public static final [unresolved] int SHORT 
public static final [unresolved] int DEFAULT 
/* methods */ 
[unresolved] protected void <init>() 
[unresolved] public java.lang.Object clone() 
[unresolved] public boolean equals(java.lang.Object) 
public final java.lang.String format(java.util.Date) 
public final java.lang.StringBuffer format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition) 
public abstract java.lang.StringBuffer format(java.util.Date, java.lang.StringBuffer, java.text.FieldPosition) 
[unresolved] private static java.text.DateFormat get(int, int, int, Unresolved type java.util.Locale) 
[unresolved] public static Unresolved type java.util.Locale[] getAvailableLocales() 
[unresolved] public Unresolved type java.util.Calendar getCalendar() 
[unresolved] public static final java.text.DateFormat getDateInstance() 
[unresolved] public static final java.text.DateFormat getDateInstance(int) 
[unresolved] public static final java.text.DateFormat getDateInstance(int, Unresolved type java.util.Locale) 
[unresolved] public static final java.text.DateFormat getDateTimeInstance() 
[unresolved] public static final java.text.DateFormat getDateTimeInstance(int, int) 
[unresolved] public static final java.text.DateFormat getDateTimeInstance(int, int, Unresolved type java.util.Locale) 
[unresolved] public static final java.text.DateFormat getInstance() 
[unresolved] public Unresolved type java.text.NumberFormat getNumberFormat() 
[unresolved] public static final java.text.DateFormat getTimeInstance() 
[unresolved] public static final java.text.DateFormat getTimeInstance(int) 
[unresolved] public static final java.text.DateFormat getTimeInstance(int, Unresolved type java.util.Locale) 
[unresolved] public Unresolved type java.util.TimeZone getTimeZone() 
[unresolved] public int hashCode() 
[unresolved] public boolean isLenient() 
[unresolved] public java.util.Date parse(java.lang.String) throws java.text.ParseException 
[unresolved] public abstract java.util.Date parse(java.lang.String, Unresolved type java.text.ParsePosition) 
[unresolved] public java.lang.Object parseObject(java.lang.String, Unresolved type java.text.ParsePosition) 
[unresolved] public void setCalendar(Unresolved type java.util.Calendar) 
[unresolved] public void setLenient(boolean) 
[unresolved] public void setNumberFormat(Unresolved type java.text.NumberFormat) 
[unresolved] public void setTimeZone(Unresolved type java.util.TimeZone) 
/* members */ 
Unresolved type java.text.DateFormat$DateFormatGetter 
Unresolved type java.text.DateFormat$Field 



     org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding 
     [ERROR] at PsTable.java(351): new SimpleDateFormat("MM/dd/yyyy").format(rowValue.getDate()) 
     org.eclipse.jdt.internal.compiler.ast.MessageSend 
     [ERROR] at PsTable.java(351): return new SimpleDateFormat("MM/dd/yyyy").format(rowValue.getDate()); 
     org.eclipse.jdt.internal.compiler.ast.ReturnStatement 
     [ERROR] at PsTable.java(350): public String getCellValue(Message rowValue); 

     com.google.gwt.dev.jjs.ast.JMethod 
     [ERROR] at PsTable.java(348): final class PsTable$DateColumnDefinition extends AbstractColumnDefinition 
     com.google.gwt.dev.jjs.ast.JClassType 

내가 단순이의 클래스를 추가 한을 내 애플 리케이션에서 예제와 나는 내 클라이언트 클래스에 새로운 PsTable을 만든다.

답변

2

GWT Incubator의 최신 릴리스는 GWT 2.1과 만 호환되며 GWT 2.3 이상을 사용하고 있습니다 (은 IE9를 지원하기 위해 2.3에 추가되었습니다). GWT 2.2가 생성자 (GWT 2.2 이상에서 다시 컴파일해야 함)의 바이너리 호환성을 파괴하고 실패할만한 이유가 있음을 추가하십시오.

GWT Incubator 홈페이지에서 PaagingScrollTable을 GWT 2.4의 DataGrid으로 바꿀 수 있어야합니다. GWT 인큐베이터는 (좋은 이유로) 더 이상 사용하지 말아야하며, 프로젝트에서 사용한다면 절대 사용하지 말아야하며, 절대적으로 사용하면됩니다 (셀 대 위젯). 새 프로젝트에서 사용 시작하지 마세요.


BTW, 당신이 링크를 문서 된 삼년입니다. 고대 코드 스 니펫에서는 아무 것도 기대할 수 없습니다.