Announcement

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

    Error while upgrading to 3.1p release

    Today I tried upgrade with 3.1p release, but when I am doing GWT complie getting the below Error.

    Errors in 'generated://DBCDB8E4DB98BEC59390FD093F9EE887/com/smartgwt/client/widgets/events/DropCompleteEvent___Reflection.java'
    Line 30: Bound mismatch: The generic method fire(S, JavaScriptObject) of type DropCompleteEvent is not applicable for the arguments (DropCompleteHandler, JavaScriptObject). The inferred type DropCompleteHandler is not a valid substitute for the bounded parameter <S extends DropCompleteHandler & HasHandlers>
    See snapshot: C:\Users\dsingh\AppData\Local\Temp\com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection6434598508134042400.java
    Removing invalidated units
    [ERROR] Errors in 'generated://DBCDB8E4DB98BEC59390FD093F9EE887/com/smartgwt/client/widgets/events/DropCompleteEvent___Reflection.java'
    [ERROR] Line 30: Bound mismatch: The generic method fire(S, JavaScriptObject) of type DropCompleteEvent is not applicable for the arguments (DropCompleteHandler, JavaScriptObject). The inferred type DropCompleteHandler is not a valid substitute for the bounded parameter <S extends DropCompleteHandler & HasHandlers>
    See snapshot: C:\Users\dsingh\AppData\Local\Temp\com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection7685001721046845830.java
    [ERROR] Errors in 'gen/com/gwtent/reflection/client/TypeOracle_Visitor.java'
    [ERROR] Line 2541: Rebind result 'com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection' could not be found

    Please suggest.


    Thanks
    Deepak

    #2
    This suggests your project is incorrect in some way. We'd recommend clearing your GWT unitcache (see GWT docs if you don't know how to do this), then running a GWT compile again.
    Last edited by Isomorphic; 11 Feb 2013, 15:38. Reason: fixed typo

    Comment


      #3
      Error while upgrading to 3.1p release

      I deleted the GWT unitcache from my Project and again run the GWT complie, but still facing the same problem.

      Console output.

      Code commited, Unit name: com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection Time:-1
      Generator returned type 'com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection; mode USE_ALL_NEW_WITH_NO_CACHING; in 1 ms
      Rebind result was com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection
      Rebinding com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType
      Checking rule <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.aop.client.Aspectable'/>
      No, the requested type was not assignable
      No: One or more subconditions was false
      Rule did not match
      Found better fallback match for <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking rule <generate-with class='com.gwtent.gen.reflection.ReflectionProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.reflection.client.ClassType'/>
      Yes, the requested type was assignable
      Yes: All subconditions were true
      Rule was a match and will be used
      Invoking generator com.gwtent.gen.reflection.ReflectionProxyGenerator
      Start generate UNIT for com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType in com.gwtent.gen.reflection.ReflectionCreator
      Code commited, Unit name: com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection Time:0
      Generator returned type 'com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection; mode USE_ALL_NEW_WITH_NO_CACHING; in 0 ms
      Rebind result was com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection
      Rebinding com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType
      Checking rule <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.aop.client.Aspectable'/>
      No, the requested type was not assignable
      No: One or more subconditions was false
      Rule did not match
      Found better fallback match for <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking rule <generate-with class='com.gwtent.gen.reflection.ReflectionProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.reflection.client.ClassType'/>
      Yes, the requested type was assignable
      Yes: All subconditions were true
      Rule was a match and will be used
      Invoking generator com.gwtent.gen.reflection.ReflectionProxyGenerator
      Start generate UNIT for com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType in com.gwtent.gen.reflection.ReflectionCreator
      Code commited, Unit name: com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection Time:0
      Generator returned type 'com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection; mode USE_ALL_NEW_WITH_NO_CACHING; in 0 ms
      Rebind result was com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection
      Rebinding com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType
      Checking rule <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.aop.client.Aspectable'/>
      No, the requested type was not assignable
      No: One or more subconditions was false
      Rule did not match
      Found better fallback match for <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking rule <generate-with class='com.gwtent.gen.reflection.ReflectionProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.reflection.client.ClassType'/>
      Yes, the requested type was assignable
      Yes: All subconditions were true
      Rule was a match and will be used
      Invoking generator com.gwtent.gen.reflection.ReflectionProxyGenerator
      Start generate UNIT for com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType in com.gwtent.gen.reflection.ReflectionCreator
      Code commited, Unit name: com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection Time:0
      Generator returned type 'com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection; mode USE_ALL_NEW_WITH_NO_CACHING; in 0 ms
      Rebind result was com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection
      Rebinding com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType
      Checking rule <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.aop.client.Aspectable'/>
      No, the requested type was not assignable
      No: One or more subconditions was false
      Rule did not match
      Found better fallback match for <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking rule <generate-with class='com.gwtent.gen.reflection.ReflectionProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.reflection.client.ClassType'/>
      Yes, the requested type was assignable
      Yes: All subconditions were true
      Rule was a match and will be used
      Invoking generator com.gwtent.gen.reflection.ReflectionProxyGenerator
      Start generate UNIT for com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType in com.gwtent.gen.reflection.ReflectionCreator
      Code commited, Unit name: com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection Time:0
      Generator returned type 'com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection; mode USE_ALL_NEW_WITH_NO_CACHING; in 0 ms
      Rebind result was com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection
      Rebinding com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType
      Checking rule <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.aop.client.Aspectable'/>
      No, the requested type was not assignable
      No: One or more subconditions was false
      Rule did not match
      Found better fallback match for <generate-with class='com.gwtent.gen.aop.AOPProxyGenerator'/>
      Checking rule <generate-with class='com.gwtent.gen.reflection.ReflectionProxyGenerator'/>
      Checking if all subconditions are true (<all>)
      <when-assignable class='com.gwtent.reflection.client.ClassType'/>
      Yes, the requested type was assignable
      Yes: All subconditions were true
      Rule was a match and will be used
      Invoking generator com.gwtent.gen.reflection.ReflectionProxyGenerator
      Start generate UNIT for com.gwtent.reflection.client.TypeOracle_Visitor.com_smartgwt_client_widgets_events_DropCompleteEvent_GWTENTAUTO_ClassType in com.gwtent.gen.reflection.ReflectionCreator
      Code commited, Unit name: com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection Time:0
      Generator returned type 'com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection; mode USE_ALL_NEW_WITH_NO_CACHING; in 0 ms
      Rebind result was com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection
      Assimilating generated source
      Generated source files...
      com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection
      Adding '1' new generated units
      Compiling...
      Compilation completed in 0.02 seconds
      Validating units:
      Errors in 'generated://DBCDB8E4DB98BEC59390FD093F9EE887/com/smartgwt/client/widgets/events/DropCompleteEvent___Reflection.java'
      Line 30: Bound mismatch: The generic method fire(S, JavaScriptObject) of type DropCompleteEvent is not applicable for the arguments (DropCompleteHandler, JavaScriptObject). The inferred type DropCompleteHandler is not a valid substitute for the bounded parameter <S extends DropCompleteHandler & HasHandlers>
      See snapshot: C:\Users\dsingh\AppData\Local\Temp\com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection4047622520849648771.java
      Removing invalidated units
      [ERROR] Errors in 'generated://DBCDB8E4DB98BEC59390FD093F9EE887/com/smartgwt/client/widgets/events/DropCompleteEvent___Reflection.java'
      [ERROR] Line 30: Bound mismatch: The generic method fire(S, JavaScriptObject) of type DropCompleteEvent is not applicable for the arguments (DropCompleteHandler, JavaScriptObject). The inferred type DropCompleteHandler is not a valid substitute for the bounded parameter <S extends DropCompleteHandler & HasHandlers>
      See snapshot: C:\Users\dsingh\AppData\Local\Temp\com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection5149646728303518123.java
      [ERROR] Errors in 'gen/com/gwtent/reflection/client/TypeOracle_Visitor.java'
      [ERROR] Line 2240: Rebind result 'com.smartgwt.client.widgets.events.DropCompleteEvent___Reflection' could not be found

      Comment


        #4
        This looks to be some kind of bogus compile error, and no one else is seeing it.

        The best we can suggest is:
        1. upgrade your version of GWT in case this is a bug in core GWT (or in case you have a corrupt GWT SDK somehow)

        2. restart your IDE, clear your GWT Unit cache again and try a compile

        3. if that's still failing, it suggests perhaps your Eclipse project is corrupted, and you should rebuild it

        Comment


          #5
          Error while upgrading to 3.1p release

          1. I downloaded the latest GWT SDK and used it for GWT Compile

          2. Restarted my IDE, cleared my GWT Unit cache again and run the GWT Compile

          3. Deleted the existing project from my Eclipse and again Imported the clean project, but still getting the same Error.

          One difference which i found between is we don't have com/smartgwt/client/widgets/events/DropCompleteEvent.class in smartgwtpower-2.5p release but in smartgwtpower-3.1p we have this and getting the problem.

          Please suggest

          Regards,
          Deepak Singh

          Comment


            #6
            Error while upgrading to 3.1p release

            One more thing, I tried also by using -Dgwt.usearchives=false (VM argument). Even though it get failed.

            Output
            Looking for previously cached Compilation Units in C:\archProjects\j2ee_apps\ARCHUI\war\..\gwt-unitCache
            Found 0 cached/archived units. Used 0 / 4426 units from cache.
            Compiling...
            10% complete (ETR: 45 seconds)
            10% complete (ETR: 45 seconds)
            20% complete (ETR: 30 seconds)
            30% complete (ETR: 23 seconds)
            40% complete (ETR: 16 seconds)
            50% complete (ETR: 12 seconds)
            60% complete (ETR: 9 seconds)
            70% complete (ETR: 6 seconds)
            80% complete (ETR: 4 seconds)
            90% complete (ETR: 2 seconds)
            100% complete (ETR: 0 seconds)
            Compilation completed in 22.19 seconds
            Added 4426 units to cache since last cleanup.


            Regards,
            Deepak

            Comment


              #7
              We just noticed you never indicated your exact version (please always do this).

              If you aren't already, please test with the latest patched version (from smartclient.com/builds).

              Comment


                #8
                Error while upgrading to 3.1p release

                We developed our application on SC_SNAPSHOT-2012-03-05_v8.1p/PowerEdition Deployment (built 2012-03-05).

                Now trying to migrate to 3.1 but facing the issue which I communicated in trailing Thread.

                As you suggest I took the latest latest patched version(builds/SmartGWT/3.1p/PowerEdition/2013-02-09), still facing the same problem.

                If I use 2.5p (/builds/SmartGWT/2.5p/PowerEdition/2013-02-08 ) it is working for me.

                I am having doubt on DropCompleteEvent.class, this is even not there in 2.5p (/builds/SmartGWT/2.5p/PowerEdition/2013-02-08)

                Please look into it.

                Regards,
                Deepak Singh

                Comment


                  #9
                  There's nothing to look into - DropCompleteEvent is a new API in 3.1 so it makes perfect sense that the class is present there and not in 2.5.

                  And there's nothing wrong with the class since everyone else is compiling with it successfully.

                  So again the next steps are still to investigate what's special about your project. If you isolate the problem to something you think is a problem in our software, please let us know.

                  Comment


                    #10
                    Error while upgrading to 3.1p release

                    Can you please see below URL

                    http://code.google.com/p/google-web-toolkit/issues/detail?id=7269


                    Regards,
                    Deepak

                    Comment


                      #11
                      This appears to be an unconfirmed bug report against core GWT related to a coding pattern we don't use.

                      Once again, everyone else can compile just fine. Something is wrong with your particular project, so please try to isolate what's different.

                      Comment


                        #12
                        Can we schedule a WebEx session for finding out the cause of this issue?

                        Thanks,
                        Deepak

                        Comment


                          #13
                          Sorry, this is not possible yet because nothing suggests a problem with our software, rather, every indication so far is an issue of some kind with your project.

                          If you make an attempt to isolate the issue, and you succeed in demonstrating an issue with our software, then the problem will be fixed right away (with no need for a Webex).

                          Comment


                            #14
                            By the way, here are some of the basic troubleshooting steps you need to apply:

                            1. sanity check that any other developer on your team gets a similar compilation error

                            2. verify you can import and run a sample project from the SDK (if you can, this clearly means an issue with your project; if you can't, this indicates some kind of fundamental issue in your IDE setup / core GWT setup)

                            3. make sure you don't have multiple copies of GWT or SGWT or of other libraries in your classpath

                            4. make sure you don't have mixed versions of GWT or SGWT libraries in your classpath

                            5. temporarily remove <inherits> of third-party libraries, if you're using any (temporarily comment out / disable any code that depends on these)

                            6. try compiling trivial code and/or small subsets of your application (temporarily comment out / disable all other code in your application) to see if you can isolate the problem to particular parts of your application code

                            Comment


                              #15
                              I think I find the cause for this problem.

                              I am using GWTEnt.jar after commenting the code we use for Reflection(using gwtent jar) my GWT compile run successfully.

                              Is this may be the issue?

                              One thing more now I want to achieve Reflection without using GWTEnt code.

                              Please suggest.

                              Regards,
                              Deepak Singh

                              Comment

                              Working...
                              X