Announcement

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

    IllegalStateException NO CONTENT

    SmartGwt: 4.1p
    JDK: 1.6 and 1.7

    Very recently we upgraded to 4.1p from 3.1p.

    Now I am getting IllegalStateException NO CONTENT when I try to run my application in the Eclipse Kepler which is using Jetty.


    === 2014-07-08 08:39:00,167 - [4-29] INFO com.isomorphic.compression.Compression:398 - /Triad40.html: 0 -> 20 bytes
    === 2014-07-08 08:39:00,167 - [4-29] ERROR com.isomorphic.compression.Compression:334 - Caught exception in doFilter() - for URI: /Triad40.html
    java.lang.IllegalStateException: NO CONTENT
    at org.eclipse.jetty.http.HttpGenerator.addContent(HttpGenerator.java:176)
    at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:155)
    at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)
    at java.io.ByteArrayOutputStream.writeTo(ByteArrayOutputStream.java:109)
    at com.isomorphic.compression.ServletCompression.compressAndSend(ServletCompression.java:159)
    at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:387)
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:68)
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
    at org.eclipse.jetty.server.Server.handle(Server.java:370)
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
    at java.lang.Thread.run(Thread.java:662)


    Please give me some idea on how to fix this.

    #2
    Hi siegersallee,

    I also do get that one in Dev Mode, too (Kepler, current 4.1., GWT 2.6.1) but it works nevertheless. Is this true for you as well?

    Best regards,
    Blama

    Comment


      #3
      SmartGWT: 4.1p
      GWT: 2.6.1
      Eclipse Kepler
      Java 1.6

      We are getting null pointers that we have never gotten before the upgrade to 4.1.
      The DynamicForm has been instantiated as a class variable when it is added to a Window in the constructor of the class in question.

      This one is a major show stopper. We believe that this exception is related to the NO CONTENT exception

      13:11:35.766 [ERROR] [triad40] Uncaught exception escaped

      com.google.gwt.event.shared.UmbrellaException: Exception caught: (null) @com.smartgwt.client.widgets.form.DynamicForm::create()([]): null
      at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129)
      at eti.client.common.i18n.LanguageResourceBundleFetcher$1.execute(LanguageResourceBundleFetcher.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
      at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
      at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
      at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
      at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
      at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
      at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
      at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
      at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:356)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
      at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
      at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
      at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
      at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
      at java.lang.Thread.run(Thread.java:724)
      Caused by: com.google.gwt.core.client.JavaScriptException: (null) @com.smartgwt.client.widgets.form.DynamicForm::create()([]): null
      at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
      at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
      at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
      at com.smartgwt.client.widgets.form.DynamicForm.create(DynamicForm.java)
      at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:456)
      at com.smartgwt.client.widgets.Window.addItem(Window.java:1792)
      at eti.client.application.authentication.LoginDialog.<init>(LoginDialog.java:89)
      at eti.client.application.authentication.LoginDialogPresenter.<init>(LoginDialogPresenter.java:82)
      at eti.client.application.MainPresenter.presentLoginDialog(MainPresenter.java:111)
      at eti.client.application.MainPresenter$2.onFetch(MainPresenter.java:146)
      at eti.client.common.events.actionevents.AcquiredSupportedLanguagesAndLoginTranslationsEvent.dispatch(AcquiredSupportedLanguagesAndLoginTranslationsEvent.java:25)
      at eti.client.common.events.actionevents.AcquiredSupportedLanguagesAndLoginTranslationsEvent.dispatch(AcquiredSupportedLanguagesAndLoginTranslationsEvent.java:1)
      at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1)
      at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40)
      at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193)
      at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88)
      at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127)
      at eti.client.common.i18n.LanguageResourceBundleFetcher$1.execute(LanguageResourceBundleFetcher.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
      at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
      at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
      at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:338)
      at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:219)
      at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:576)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:284)
      at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
      at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
      at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:356)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
      at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
      at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
      at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
      at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
      at java.lang.Thread.run(Thread.java:724)
      Last edited by siegersallee; 8 Jul 2014, 09:14.

      Comment


        #4
        Please focus on providing details and/or test cases for those other errors then.

        Comment


          #5
          Thank you. We figured out the problem.

          A line of code was merged out of our code base when a check in was done.

          Comment

          Working...
          X