Announcement

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

    Error when opening Developer Console after upgrading to 12.0p.

    Isomorphic,

    We upgraded from "SmartClient Version: v10.1p_2017-08-10/Pro Deployment (built 2017-08-10)" to "SmartClient Version: v12.0p_2018-09-12/Pro Deployment (built 2018-09-12)" and we are now seeing the following exception when opening the SmartGWT Developer Console.

    Code:
    2018-09-18-12:43:22:306 -0400  ERROR [http-nio-8080-exec-3] Unable to instantiate class 'com.isomorphic.messaging.StreamDataSource' - check to make sure you have isomorphic_realtime_messaging.jar (and its dependencies: isomorphic_core_rpc.jar, isomorphic_js_parser.jar, devenv/google-oauth-client-jetty-1.22.0.jar, devenv/javax.websocket-api-1.1.jar, commons-jxpath-1.3.jar, commons-pool-1.6.jar, devenv/jjwt-0.9.0.jar, devenv/google-http-client-jackson2-1.22.0.jar, commons-lang-2.6.jar, httpclient-4.5.5.jar, devenv/javax.jms.jar, devenv/google-api-services-gmail-v1-rev44-1.22.0.jar, commons-vfs2-2.1.jar, poi-ooxml-schemas-3.17.jar, commons-io-2.5.jar, slf4j-api-1.7.25.jar, devenv/google-api-client-1.22.0.jar, groovy-sql-2.4.13.jar, activation.jar, commons-cli-1.4.jar, log4j-1.2.17.jar, devenv/jackson-core-2.9.3.jar, commons-collections-3.2.2.jar, xmlbeans-2.6.0.jar, devenv/jackson-databind-2.9.3.jar, velocity-1.7.jar, poi-3.17.jar, commons-collections4-4.1.jar, devenv/jackson-annotations-2.9.3.jar, hibernate-validator-4.1.0.Final.jar, mail.jar, javax.persistence.jar, commons-codec-1.10.jar, commons-fileupload-1.3.3.jar, httpcore-4.4.9.jar, groovy-jsr223-2.4.13.jar, devenv/google-oauth-client-1.22.0.jar, joda-time-2.9.9.jar, poi-ooxml-3.17.jar, validation-api-1.0.0.GA.jar, devenv/google-http-client-1.22.0.jar, devenv/google-oauth-client-java6-1.22.0.jar, groovy-2.4.13.jar) in your CLASSPATH
    2018-09-18-12:43:22:306 -0400  ERROR [http-nio-8080-exec-3] Exception while attempting to load a DataSource
    java.lang.ClassNotFoundException: com.isomorphic.messaging.StreamDataSource
    We didn't include the isomorphic_realtime_messaging.jar in the past since we aren't using the messaging module. Should we be including this jar now? Or is there a configuration option to prevent this exception?

    Thanks.

    #2
    This is due to Remote Debugging, which now, in all Pro and better builds, uses the RealTimeMessaging module to allow debugging applications which are running in another browser - very useful for Debugging mobile. So you should include the messaging.jar if you want to use this feature.

    As far as getting this specific error with the .jar absent, that doesn't seem normal. How did you obtain this error message? Were you launching the Developer Console from a running application, or did you open it directly?

    Comment


      #3
      OK, we do not need Remote Debugging at this time so I'd rather not include the jar.

      We are launching the Developer Console from a running application with a call to SC.showConsole();

      I should have included the following error message which may explain why StreamDataSource class is getting loaded.

      Code:
      2018-09-18-12:43:22:307 -0400  ERROR [http-nio-8080-exec-3] BaseServlet Global Exception
      javax.servlet.ServletException: DataSource 'DataSourceDataChanged' failed to load due to an exception on the server:
      com.isomorphic.messaging.StreamDataSource
      See the server-side log for additional details.
      Thanks.
      Last edited by stonebranch3; 18th Sep 2018, 11:26.

      Comment


        #4
        Hi Isomorphic,

        Do you have an update for this one?

        Thanks.

        Comment


          #5
          As far as we understand this is a harmless error message and we just plan to make it clearer what’s going on. Is it blocking you somehow?

          Comment


            #6
            OK, thanks. That's what I wanted to confirm.

            Comment


              #7
              FYI - this harmless (but admittedly alarming) error message will no longer appear in the logs as of the next patch build (Oct 5, 2018). Thanks for your patience.

              Comment


                #8
                Isomorphic,

                This error message still appears in the log with the following build.

                SmartClient Version: v12.0p_2019-02-06/Pro Deployment (built 2019-02-06)

                Thanks

                Comment


                  #9
                  Hi guys - this took a little bit of time to track down, but should be resolved now in tomorrow's (Oct 19) build!

                  Comment


                    #10
                    This is resolved; however, the following warning is now logged when opening the SmartClient Developer Console. We reported a similar warning before for our "script" data source. Can we safely ignore this warning as well?

                    Code:
                    2019-10-29-09:52:28:482 -0400   WARN [qtp1250529959-59] Validation errors validating a 'Object':
                    {
                        "/Object[@ID=Mail]/fields/user":{
                            recordPath:"/Object[@ID=Mail]/fields/user",
                            userName:{
                                errorMessage:"Field is required"
                            },
                        }
                    }

                    Comment


                      #11
                      Do you have a DataSource named Mail.ds.xml?

                      Are you using our mail subsystem?

                      Or perhaps just some custom tags in your DataSource that are <Mail>?

                      Comment


                        #12
                        We do not have a DataSource named Mail.ds.xml, but we do have one named user.ds.xml which the warning message seems to be referring to since it has a required "userName" field.

                        We are not using the mail subsystem or custom tags.

                        Comment


                          #13
                          Ok, this is probably harmless, but we need some context on how this warning appears. Is it in the middle of loading one of your DataSources, processing a DataSource operation, or something else? Please show the surrounding logs.

                          Comment


                            #14
                            The warning only appears when the SmartClient Developer Console is first shown.

                            We are using SC.showConsole() to show the console.

                            We reported a similar warning here for our "script" DataSource which may shed some light on this.

                            Comment


                              #15
                              We're aware of the other issue. Still need to see the surrounding logs.

                              Comment

                              Working...
                              X