Announcement

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

    Trying to Change to GWT 2.8.2 release. - XML Parser mismatch

    SmartClient Version: v11.1p_2018-04-03/PowerEdition Deployment (built 2018-04-03)

    We are trying out GWT 2.82. release in Eclipse with DevMode and a Codeserver. The application builds but I get this error after the compile completes and the server/client tries to initialize.

    Code:
    === 2018-06-15 13:18:44,209 [1-65] DEBUG XML - An exception was thrown while setting feature strings to prevent loading a DTD: 
    java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
        at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
        at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
        at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setFeature(Unknown Source)
        at com.isomorphic.xml.XML.parseXML(XML.java:216)
        at com.isomorphic.xml.XML.parseRestrictedXML(XML.java:149)
        at com.isomorphic.xml.XML.toDSRecords(XML.java:497)
        at com.isomorphic.xml.XML.toDSRecords(XML.java:493)
        at com.isomorphic.rpc.RPCManager.parseRequest(RPCManager.java:2397)
        at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:390)
        at com.isomorphic.rpc.RPCManager.<init>(RPCManager.java:370)
        at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:147)
        at com.isomorphic.servlet.IDACall._processRequest(IDACall.java:119)
        at com.isomorphic.servlet.IDACall.doPost(IDACall.java:79)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
        at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:176)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
        at com.isomorphic.servlet.CompressionFilter._doFilter(CompressionFilter.java:260)
        at com.isomorphic.servlet.BaseFilter.doFilter(BaseFilter.java:93)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at beer.server.DevelopmentAuthenticationFilter.doFilter(DevelopmentAuthenticationFilter.java:49)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:224)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:553)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    A Google search gave me these suggestions - that I have not yet been able to get working.

    https://stackoverflow.com/questions/...awareparsercon

    and

    https://stackoverflow.com/questions/...onfiguration-c


    Similar solutions - there is a library incompatibility somewhere. But I have been unable yet to resolve it.

    Questions
    1. Have you successfully run with a GWT version of 2.8.2? If not what is the latest GWT version you have tested.
    2. Have you come across this exception and if so do you have a suggestion on how to resolve or find the mismatch?

    Thanks
    T


    #2
    Did you see the section titled, "Extra Step Required for GWT 2.8+" in the help topic SgwtEE Setup?

    Comment


      #3
      Originally posted by Isomorphic View Post
      Did you see the section titled, "Extra Step Required for GWT 2.8+" in the help topic SgwtEE Setup?
      Thanks for the pointer. Its now working.

      Pity that Google didn't find your reference.

      Comment


        #4
        Followup:

        My client does not contain the "re-compile" button/icon which is usually down in the bottom right hand corner. So there is no easy / quick way to do code change re-complies from the client tab.

        Using the codeserver's 'Dev Mode On' bookmark does not make the button re-appear. But the codeserver page does allow one to clear the compile caches, and a re-load of the client causes a compile - which incidentally fails with a message:
        [ERROR] Could not find com.isomorphic.rpc.BaseResponse in types compiled from source. Is the source glob too strict?
        Even though the first client compile after a dev mode full compile, works with no problem. Any suggestions? - What has to be enabled/changed to cause the client re-compile button to appear?

        Again this are experiments in GWT 2.8.2

        Or should I pose a new thread to the Forum?


        Comment


          #5
          com.isomorphic.* classes are server-side classes. Your GWT code may not refer to them - compilation won't work. If you haven't been referring to them in code, you may just have them in the classpath inappropriately.

          As far as a "re-compile button", presumably this is somewhere in the Eclipse UI? You should probably look on GWT forums for advice here, as we don't provide the GWT plugin. Note: you'll need to post your IDE and version.

          Comment

          Working...
          X