Announcement

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

    Error: Missing IOUtils Class

    Hi Isomorphic,

    i'm suddenly getting following error when trying to upload image. Everything worked fine before, but now after one of the latest releases (not sure in which one it appeared) im getting this error on one of your functions - setProperties(req.getValues(), entity). Could you please explain and check if you haven't forgot to include some libraries.

    P.S.: I'm not using apache poi anywhere.

    Thanks, Martin.

    Code:
    [INFO] === 2011-09-05 13:03:29,746 [l0-6] ERROR IDACall - Top-level servlet error: 
    [INFO] java.lang.NoClassDefFoundError: org/apache/poi/util/IOUtils
    [INFO] 	at com.isomorphic.util.DataTools.convertType(DataTools.java:3091)
    [INFO] 	at com.isomorphic.util.DataTools.convertType(DataTools.java:2999)
    [INFO] 	at com.isomorphic.base.Reflection.adaptValue(Reflection.java:1369)
    [INFO] 	at com.isomorphic.datasource.DataSource.adaptValue(DataSource.java:1394)
    [INFO] 	at com.isomorphic.datasource.DataSource.setProperties(DataSource.java:1318)
    [INFO] 	at com.isomorphic.datasource.DataSource.setProperties(DataSource.java:1216)
    [INFO] 	at com.dsoft.risikocheck.web.server.datasource.GenericDataSource.executeAdd(GenericDataSource.java:127)
    [INFO] 	at com.isomorphic.datasource.DataSource.execute(DataSource.java:1156)
    [INFO] 	at com.dsoft.risikocheck.web.server.datasource.GenericDataSource.execute(GenericDataSource.java:78)
    [INFO] 	at com.dsoft.risikocheck.web.server.datasource.sandbox.rc.review.RisikoCheckImageDataSource.execute(RisikoCheckImageDataSource.java:29)
    [INFO] 	at com.isomorphic.application.AppBase.executeDefaultDSOperation(AppBase.java:721)
    [INFO] 	at com.isomorphic.application.AppBase.executeAppOperation(AppBase.java:658)
    [INFO] 	at com.isomorphic.application.AppBase.execute(AppBase.java:491)
    [INFO] 	at com.isomorphic.datasource.DSRequest.execute(DSRequest.java:1653)
    [INFO] 	at com.isomorphic.servlet.IDACall.handleDSRequest(IDACall.java:199)
    [INFO] 	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:156)
    [INFO] 	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:121)
    [INFO] 	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:73)
    [INFO] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    [INFO] 	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    [INFO] 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    [INFO] 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    [INFO] 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    [INFO] 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    [INFO] 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    [INFO] 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    [INFO] 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    [INFO] 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    [INFO] 	at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    [INFO] 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    [INFO] 	at org.mortbay.jetty.Server.handle(Server.java:324)
    [INFO] 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    [INFO] 	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
    [INFO] 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
    [INFO] 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    [INFO] 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    [INFO] 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    [INFO] 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
    [INFO] Caused by: java.lang.ClassNotFoundException: org.apache.poi.util.IOUtils
    [INFO] 	at java.lang.ClassLoader.findClass(ClassLoader.java:359)
    [INFO] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    [INFO] 	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    [INFO] 	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:352)
    [INFO] 	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
    [INFO] 	... 38 more

    #2
    We ship Apache POI for Excel export, so just include it from the SDK to get rid of this problem. However, we didn't mean to create a dependency on POI if you are not using the Export feature, so that will be removed.

    Comment


      #3
      Dependency on POI is removed.

      Comment


        #4
        Thanks, will try tomorrow. M.

        Comment


          #5
          The error remains the same after using the latest nightly.

          SmartClient Version: SC_SNAPSHOT-2011-09-05/Pro Deployment (built 2011-09-05)

          Comment


            #6
            To get a change announced on 9/5 (as above), download the 9/6 build. They are built around 3am.

            Comment


              #7
              Using this build, the error still remains the same.

              SmartClient Version: SC_SNAPSHOT-2011-09-06/Pro Deployment (built 2011-09-06)

              Comment


                #8
                Sorry, that doesn't make sense, there is no longer even a Java import. Please double-check whether you are actually using new files.

                Comment


                  #9
                  I have replaced 3 jars : isomorphic-core, smartgwt and smartgwt-pro.

                  This is the version taken from the console: SmartClient Version: SC_SNAPSHOT-2011-09-06/Pro Deployment (built 2011-09-06)

                  Should i replace some more ?

                  Comment


                    #10
                    Never replace individual .jars, always follow the documented installation procedure.

                    Comment


                      #11
                      Will try tomorrow, thanks.

                      Comment

                      Working...
                      X