Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Compiler error with SmartGWT 1.3

    I'm getting the following compiler errors when trying to compile my modules with smartgwt 1.3

    I just replaced the old smartgwt.jar and smartgwt-skinks.jar from the previous version to the ones that came into the 1.3 package.

    Code:
       Refreshing module from source
          Validating newly compiled units
             Removing units with errors
                [ERROR] Errors in 'jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/data/fields/DataSourceSimpleTypeField.java'
                   [ERROR] Line 34: The method setType(FieldType) in the type DataSourceField is not applicable for the arguments (SimpleType)
                [ERROR] Errors in 'jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/util/JSONEncoder.java'
                   [ERROR] Line 97: Type mismatch: cannot convert from ValueEnum to JSONDateFormat
                   [ERROR] Line 143: Type mismatch: cannot convert from ValueEnum to JSONCircularReferenceMode
                [ERROR] Errors in 'jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/widgets/grid/ListGridSummaryField.java'
                   [ERROR] Line 27: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 32: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 37: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 42: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 47: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 52: ListGridFieldType.SUMMARY cannot be resolved
             Removing invalidated units
                [WARN] Compilation unit 'jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/util/JSON.java' is removed due to invalid reference(s):
                   [WARN] jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/util/JSONEncoder.java

    My gwt.xml follows, if needed, although it seems to be a smartgwt issue

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
    <module rename-to='RegistrarProposicaoApp'>
      
      <inherits name='com.google.gwt.user.User'/>
      <entry-point class='br.gov.almg.client.RegistrarProposicaoApp'/>
    
      <inherits name='com.smartgwt.SmartGwt'/>
      <inherits name="com.smartgwt.SmartGwtNoTheme" />
      <inherits name='com.google.gwt.user.theme.standard.Standard'/>
    
     <inherits name="com.allen_sauer.gwt.log.gwt-log-OFF" />
     <extend-property name="log_level" values="DEBUG"/>
     <set-property name="log_WindowLogger" value="DISABLED" />
     <set-property name="log_DivLogger" value="ENABLED" />
     <set-property name="log_ConsoleLogger" value="ENABLED" />
    
      <source path="multilayer"/>
      <source path="client"/>
      <source path="rp/modelo"/>
     
      <extend-property name="locale" values="pt_BR"/>
    </module>
    Any patch for this? Or am I doing something wrong?

    [],
    Matheus

    #2
    Sorry, my mistake

    I had both 1.2 and 1.3 in the classpath, removed the old one and compiler had no output errors.

    Sorry for my mistake.

    [],
    Matheus

    Originally posted by mgbf
    I'm getting the following compiler errors when trying to compile my modules with smartgwt 1.3

    I just replaced the old smartgwt.jar and smartgwt-skinks.jar from the previous version to the ones that came into the 1.3 package.

    Code:
       Refreshing module from source
          Validating newly compiled units
             Removing units with errors
                [ERROR] Errors in 'jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/data/fields/DataSourceSimpleTypeField.java'
                   [ERROR] Line 34: The method setType(FieldType) in the type DataSourceField is not applicable for the arguments (SimpleType)
                [ERROR] Errors in 'jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/util/JSONEncoder.java'
                   [ERROR] Line 97: Type mismatch: cannot convert from ValueEnum to JSONDateFormat
                   [ERROR] Line 143: Type mismatch: cannot convert from ValueEnum to JSONCircularReferenceMode
                [ERROR] Errors in 'jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/widgets/grid/ListGridSummaryField.java'
                   [ERROR] Line 27: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 32: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 37: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 42: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 47: ListGridFieldType.SUMMARY cannot be resolved
                   [ERROR] Line 52: ListGridFieldType.SUMMARY cannot be resolved
             Removing invalidated units
                [WARN] Compilation unit 'jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/util/JSON.java' is removed due to invalid reference(s):
                   [WARN] jar:file:/C:/Intranet/processo_legislativo/war/WEB-INF/lib/smartgwt.jar!/com/smartgwt/client/util/JSONEncoder.java

    My gwt.xml follows, if needed, although it seems to be a smartgwt issue

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
    <module rename-to='RegistrarProposicaoApp'>
      
      <inherits name='com.google.gwt.user.User'/>
      <entry-point class='br.gov.almg.client.RegistrarProposicaoApp'/>
    
      <inherits name='com.smartgwt.SmartGwt'/>
      <inherits name="com.smartgwt.SmartGwtNoTheme" />
      <inherits name='com.google.gwt.user.theme.standard.Standard'/>
    
     <inherits name="com.allen_sauer.gwt.log.gwt-log-OFF" />
     <extend-property name="log_level" values="DEBUG"/>
     <set-property name="log_WindowLogger" value="DISABLED" />
     <set-property name="log_DivLogger" value="ENABLED" />
     <set-property name="log_ConsoleLogger" value="ENABLED" />
    
      <source path="multilayer"/>
      <source path="client"/>
      <source path="rp/modelo"/>
     
      <extend-property name="locale" values="pt_BR"/>
    </module>
    Any patch for this? Or am I doing something wrong?

    [],
    Matheus

    Comment


      #3
      corrupted file

      Originally posted by mgbf

      Code:
      [ERROR] Line 27: ListGridFieldType.SUMMARY cannot be resolved
      I had this error and was caused by a corrupted download of smartgwt.

      Comment

      Working...
      X