4 Replies Latest reply on May 7, 2017 11:35 PM by Bartosz Majsak

    Arquillian + managed Tomcat 7 test fails with "invalid stream header: 0D0A3C21"

    Marcus Noerder-Tuitje Newbie

      Hello!

       

      I want to run arquillian tests with our software. But I constantly fail to run a single test.

       

      Sympton:

      I get an exception like this :

       

      java.io.StreamCorruptedException: invalid stream header: 0D0A3C21

       

      Environment:

      - local managed Tomcat 7

      - JDK 7

      - gradle, unfortunately

       

      Because gradle does not know about the maven import scope, I followed the gradle documentation and made a manual resolution of the BOMs.

       

      These are my depenendencies:

       

       

      dependencies {

       

       

          testCompile group: 'junit', name: 'junit', version: '4.11'

          testCompile(group: 'com.oracle.oracle', name: 'ojdbc6', version: '12.1.0.1.0')

       

      /* BEGIN SCRIPT TEST

       

          testCompile group: 'javax.enterprise', name: 'cdi-api', version: libraryVersions.cdi

       

          testCompile group: 'junit', name: 'junit', version: libraryVersions.junit

          testCompile group: 'org.jboss.arquillian', name: 'arquillian-junit', version: libraryVersions.arquillian

          testCompile(group:'org.jboss.arquillian.container',name:'arquillian-container-test-api',version:'1.1.4.Final')

       

       

          testRuntime group: 'org.jboss.arquillian.container', name: 'arquillian-tomcat-managed-7', version: '1.0.0.CR6'

          testRuntime group: 'org.slf4j', name: 'slf4j-log4j12', version: libraryVersions.slf4j

          testRuntime group: 'log4j', name: 'log4j', version: libraryVersions.log4j

       

      END */

      /** Arquillian BOM */

          testCompile(group:'org.jboss.arquillian.core',name:'arquillian-core-api',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.core',name:'arquillian-core-spi',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.core',name:'arquillian-core-impl-base',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.config',name:'arquillian-config-api',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.config',name:'arquillian-config-spi',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.config',name:'arquillian-config-impl-base',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.test',name:'arquillian-test-api',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.test',name:'arquillian-test-spi',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.test',name:'arquillian-test-impl-base',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.container',name:'arquillian-container-spi',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.container',name:'arquillian-container-impl-base',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.container',name:'arquillian-container-test-api',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.container',name:'arquillian-container-test-spi',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.container',name:'arquillian-container-test-impl-base',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.junit',name:'arquillian-junit-core',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.junit',name:'arquillian-junit-container',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.junit',name:'arquillian-junit-standalone',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.testng',name:'arquillian-testng-core',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.testng',name:'arquillian-testng-container',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.testng',name:'arquillian-testng-standalone',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.protocol',name:'arquillian-protocol-servlet',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.protocol',name:'arquillian-protocol-jmx',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.testenricher',name:'arquillian-testenricher-cdi',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.testenricher',name:'arquillian-testenricher-ejb',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.testenricher',name:'arquillian-testenricher-resource',version:'1.1.4.Final')

          testCompile(group:'org.jboss.arquillian.testenricher',name:'arquillian-testenricher-initialcontext',version:'1.1.4.Final')

       

          /* Shrinkwrap API */

          testCompile(group:'org.jboss.shrinkwrap',name:'shrinkwrap-api',version:'1.2.2')

          testCompile(group:'org.jboss.shrinkwrap',name:'shrinkwrap-spi',version:'1.2.2')

          testCompile(group:'org.jboss.shrinkwrap',name:'shrinkwrap-impl-base',version:'1.2.2')

          testCompile(group:'org.jboss.shrinkwrap',name:'shrinkwrap-api-nio2',version:'1.2.2')

          testCompile(group:'org.jboss.shrinkwrap',name:'shrinkwrap-impl-nio2',version:'1.2.2')

       

          /* Resolver */

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-api',version:'2.1.0')

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-spi',version:'2.1.0')

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-api-maven',version:'2.1.0')

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-spi-maven',version:'2.1.0')

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-impl-maven',version:'2.1.0')

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-api-maven-archive',version:'2.1.0')

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-impl-maven-archive',version:'2.1.0')

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-depchain',version:'2.1.0')

          testCompile(group:'org.jboss.shrinkwrap.resolver',name:'shrinkwrap-resolver-maven-plugin',version:'2.1.0')

       

          /* Descriptor */

         testCompile(group:'org.jboss.shrinkwrap.descriptors',name:'shrinkwrap-descriptors-api-base',version:'2.0.0-alpha-5')

          testCompile(group:'org.jboss.shrinkwrap.descriptors',name:'shrinkwrap-descriptors-api-javaee',version:'2.0.0-alpha-5')

          testCompile(group:'org.jboss.shrinkwrap.descriptors',name:'shrinkwrap-descriptors-api-jboss',version:'2.0.0-alpha-5')

          testCompile(group:'org.jboss.shrinkwrap.descriptors',name:'shrinkwrap-descriptors-gen',version:'2.0.0-alpha-5')

          testCompile(group:'org.jboss.shrinkwrap.descriptors',name:'shrinkwrap-descriptors-impl-base',version:'2.0.0-alpha-5')

          testCompile(group:'org.jboss.shrinkwrap.descriptors',name:'shrinkwrap-descriptors-impl-javaee',version:'2.0.0-alpha-5')

          testCompile(group:'org.jboss.shrinkwrap.descriptors',name:'shrinkwrap-descriptors-impl-jboss',version:'2.0.0-alpha-5')

          testCompile(group:'org.jboss.shrinkwrap.descriptors',name:'shrinkwrap-descriptors-spi',version:'2.0.0-alpha-5')

       

       

       

      /*  TODO :GRAPHENE

       

          testCompile(group: 'org.jboss.arquillian.graphene', name: 'graphene-parent', version: '2.0.2.Final')

          testCompile(group: 'org.jboss.arquillian.graphene', name: 'graphene-webdriver', version: '2.0.2.Final')

          testCompile(group: 'org.jboss.arquillian.graphene', name: 'arquillian-graphene', version: '2.0.2.Final')

          testCompile(group: 'org.jboss.arquillian.graphene', name: 'graphene-webdriver-spi', version: '2.0.2.Final')

          testCompile(group: 'org.jboss.arquillian.graphene', name: 'graphene-webdriver-impl', version: '2.0.2.Final')

          testCompile(group: 'org.jboss.arquillian.graphene', name: 'graphene-webdriver-api', version: '2.0.2.Final')

          testCompile(group: 'org.jboss.arquillian.graphene', name: 'graphene-webdriver-api', version: '2.0.2.Final')*/

       

          testCompile(group: 'org.jboss.arquillian.junit', name: 'arquillian-junit-core', version: '1.1.4.Final')

          testCompile(group: 'org.jboss.arquillian.core', name: 'arquillian-core-api', version: '1.1.4.Final')

          testCompile(group: 'org.jboss.arquillian.core', name: 'arquillian-core-spi', version: '1.1.4.Final')

          testCompile(group: 'org.jboss.arquillian.core', name: 'arquillian-core-impl-base', version: '1.1.4.Final')

          testCompile(group: 'org.jboss.arquillian.container', name: 'arquillian-tomcat-managed-7', version: '1.0.0.CR6') {

              exclude module: 'arquillian-config-impl-base'

          }

       

      }

       

      My arquillian.xml looks like this

       

      <?xml version="1.0" encoding="UTF-8"?>

      <arquillian xmlns="http://jboss.org/schema/arquillian"

                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                  xsi:schemaLocation="http://jboss.org/schema/arquillian

      http://jboss.org/schema/arquillian/arquillian_1_0.xsd">

       

          <!-- Uncomment to have test archives exported to the file system for inspection -->

          <engine>

              <property name="deploymentExportPath">C:\temp\deployments/</property>

          </engine>

       

          <defaultProtocol type="Servlet 3.0" />

       

          <container qualifier="tomcat-managed-7" default="true">

              <configuration>

                  <!-- Must match HTTP port from Tomcat server configuration file -->

                  <property name="bindHttpPort">8080</property>

                  <property name="bindAddress">mybox.intranet.de</property>

                  <!-- The prepared Tomcat instance -->

                  <property name="catalinaHome">C:/devtools/tomcat7-Testing</property>

                  <property name="javaHome">C:\Program Files\JAVA\jdk1.7.0_05</property>

                  <property name="javaVmArguments">-Xmx2G -Xms2G -XX:MaxPermSize=1G</property>

                  <!-- Must match configured manager from tomcat-users.xml -->

                  <property name="user">tomcat</property>

                  <property name="pass">getouttahere</property>

                  <property name="urlCharset">UTF-8</property>

                  <property name="startupTimeoutInSeconds">240</property>

                  <!-- Local copy of Tomcat server configuration file -->

                  <property name="serverConfig">server.xml</property>

              </configuration>

          </container>

       

          <extension qualifier="spring">

              <property name="auto-package">false</property>

          </extension>

       

      </arquillian>

       

      Test Case

       

      My TestCase is disentangled project rebundling our warfile :

       

      package c.d.g.frontendtest;

       

      import org.jboss.arquillian.container.test.api.Deployment;
      import org.jboss.arquillian.junit.Arquillian;
      import org.jboss.shrinkwrap.api.ShrinkWrap;
      import org.jboss.shrinkwrap.api.spec.WebArchive;
      import org.junit.Test;
      import org.junit.runner.RunWith;

       

      import java.io.File;

       

      import static org.junit.Assert.assertTrue;

       


      @RunWith(Arquillian.class)
      public class SimpleTest {

       

          @Deployment(testable = true)
          public static WebArchive createDeployment() {
              WebArchive war = ShrinkWrap.createFromZipFile(WebArchive.class, new File("C:\\devtools\\g\\trunk\\Application\\dist\\tmp\\project\\libs\\g-6.5-SNAPSHOT.war"));
              return war;
          }

       

          @Test
          public void test(){
              assertTrue(true);
          }
      }

       

       

       

      Error-Situation

       

      When I run my tests, the deployment looks fine so far.

       

      But when the test is launched I get this output ending in an exception:

       

      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.startup.TaglibUriRule body
      INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
      Jun 05, 2014 11:50:28 AM org.apache.catalina.core.ApplicationContext log
      INFO: No Spring WebApplicationInitializer types detected on classpath
      Jun 05, 2014 11:50:28 AM org.apache.catalina.core.ApplicationContext log
      INFO: Set web app root system property: 'g.root' = [C:\devtools\tomcat7-Testing\webapps\g-6.5-SNAPSHOT\]
      Jun 05, 2014 11:50:28 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing log4j from [C:\devtools\tomcat7-Testing\webapps\g-6.5-SNAPSHOT\WEB-INF\log4j.properties]
      Jun 05, 2014 11:50:28 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring root WebApplicationContext
      2014-06-05 11:50:36,294 [http-apr-8080-exec-4] INFO  c.d.g.util.AlternativeString  - ALT-ENV key DAP_APPLICATION has been set to value none coming from  PROPERTY
      2014-06-05 11:50:36,295 [http-apr-8080-exec-4] INFO  c.d.g.util.AlternativeString  - ALT-ENV key DWEB_SITE_ID has been set to value null coming from  ENV PARAM
      2014-06-05 11:50:36,295 [http-apr-8080-exec-4] INFO  c.d.g.util.AlternativeString  - ALT-ENV [DAP_APPLICATION|DWEB_SITE_ID| with default none] IS SET TO none
      2014-06-05 11:50:36,300 [http-apr-8080-exec-4] INFO  c.d.g.util.AlternativeString  - ALT-ENV key DAP_TYPE has been set to value int coming from  PROPERTY
      2014-06-05 11:50:36,300 [http-apr-8080-exec-4] INFO  c.d.g.util.AlternativeString  - ALT-ENV key DWEB_CLASS has been set to value null coming from  ENV PARAM
      2014-06-05 11:50:36,300 [http-apr-8080-exec-4] INFO  c.d.g.util.AlternativeString  - ALT-ENV [DAP_TYPE|DWEB_CLASS| with default int] IS SET TO int
      2014-06-05 11:50:38,895 [http-apr-8080-exec-4] INFO  c.f.commons.persistence.hibernate3.AnnotationSessionFactoryBean  - Building new Hibernate SessionFactory
      DuplicateAvoidingExecutorService Root WebApplicationContext: startup date [Thu Jun 05 11:50:29 CEST 2014]; root of context hierarchyDuplicateAvoidingExecutorService Root WebApplicationContext: startup date [Thu Jun 05 11:50:29 CEST 2014]; root of context hierarchy2014-06-05 11:50:46,818 [http-apr-8080-exec-4] WARN  c.d.g.env.SystemPropertyProductionStateFactoryBean  - Environment is NOT production environment
      2014-06-05 11:50:50,138 [http-apr-8080-exec-4] INFO  c.d.g.eevi.cmis.EeviCMISManager  - DEBUG = false
      2014-06-05 11:50:50,186 [http-apr-8080-exec-4] INFO  c.d.g.eevi.workflow.WorkflowServiceImpl  - Using workflow process com/db/g/eevi/workflow/model/evCycleProcess.bpmn20.xml and com/db/g/eevi/workflow/model/evProvProcess.bpmn20.xml
      2014-06-05 11:50:51,424 [http-apr-8080-exec-4] INFO  org.quartz.simpl.SimpleThreadPool  - Job execution threads will use class loader of thread: http-apr-8080-exec-4
      2014-06-05 11:50:51,447 [http-apr-8080-exec-4] INFO  org.quartz.core.SchedulerSignalerImpl  - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
      2014-06-05 11:50:51,447 [http-apr-8080-exec-4] INFO  org.quartz.core.QuartzScheduler  - Quartz Scheduler v.1.6.5 created.
      2014-06-05 11:50:51,455 [http-apr-8080-exec-4] INFO  org.quartz.core.QuartzScheduler  - JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@37f661a7
      2014-06-05 11:51:00,522 [http-apr-8080-exec-4] INFO  c.d.g.portal.workflow.PortalWorkflowServiceImpl  - Using workflow process com/db/g/portal/workflow/release_to_bms.bpmn20.xml
      2014-06-05 11:51:00,621 [http-apr-8080-exec-4] INFO  org.quartz.core.QuartzScheduler  - Scheduler scheduler_$_DEFRAWS1239001401961851422 started.
      2014-06-05 11:51:02,436 [http-apr-8080-exec-4] WARN  org.apache.myfaces.config.FacesConfigurator  - More than one managed bean w/ the name of 'messageHandler' - only keeping the last
      2014-06-05 11:51:02,436 [http-apr-8080-exec-4] WARN  org.apache.myfaces.config.FacesConfigurator  - More than one managed bean w/ the name of 'beanResolver' - only keeping the last
      2014-06-05 11:51:02,536 [http-apr-8080-exec-4] INFO  c.f.commons.web.util.VersionServletContextListener  - Version of application is: 6.5-SNAPSHOT.4.27713
      Jun 05, 2014 11:51:02 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'dispatcher'
      Jun 05, 2014 11:51:03 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'oof'
      Jun 05, 2014 11:51:03 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'scut'
      Jun 05, 2014 11:51:04 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'eevi'
      Jun 05, 2014 11:51:05 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'refl'
      Jun 05, 2014 11:51:05 AM org.apache.catalina.core.ApplicationContext log
      INFO: Initializing Spring FrameworkServlet 'portal'
      Jun 05, 2014 11:51:06 AM org.apache.jasper.compiler.TldLocationsCache tldScanJar
      INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
      Jun 05, 2014 11:51:07 AM org.jboss.arquillian.container.tomcat.ProtocolMetadataParser connect
      INFO: Connecting to JMX at service:jmx:rmi:///jndi/rmi://my.host.intranet:8089/jmxrmi
      Header Names:
      Header Names:
      cache-control
      cache-control
      pragma
      pragma
      user-agent
      user-agent
      host
      host
      accept
      accept
      connection
      connection

       

      java.lang.IllegalStateException: Error launching test c.d.g.frontendtest.SimpleTest public void c.d.g.frontendtest.SimpleTest.test()
          at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:103)
          at org.jboss.arquillian.container.test.impl.execution.RemoteTestExecuter.execute(RemoteTestExecuter.java:109)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
          at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
          at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:57)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
          at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:129)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
          at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:102)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
          at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:84)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
          at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:65)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
          at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
          at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:145)
          at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:111)
          at org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:266)
          at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:229)
          at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:317)
          at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:46)
          at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:243)
          at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
          at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
          at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:188)
          at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:317)
          at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:46)
          at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:202)
          at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
          at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:150)
          at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
          at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)
          at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
          at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      Caused by: java.io.StreamCorruptedException: invalid stream header: 0D0A3C21
          at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
          at java.io.ObjectInputStream.<init>(ObjectInputStream.java:298)
          at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute(ServletMethodExecutor.java:191)
          at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.executeWithRetry(ServletMethodExecutor.java:121)
          at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.invoke(ServletMethodExecutor.java:99)
          ... 78 more

       

      java.io.StreamCorruptedException: invalid stream header: 0D0A3C21
          at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:801)
          at java.io.ObjectInputStream.<init>(ObjectInputStream.java:298)
          at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor.execute(ServletMethodExecutor.java:191)
          at org.jboss.arquillian.protocol.servlet.ServletMethodExecutor$1.run(ServletMethodExecutor.java:243)
          at java.util.TimerThread.mainLoop(Timer.java:555)
          at java.util.TimerThread.run(Timer.java:505)
      Jun 05, 2014 11:51:10 AM org.apache.catalina.core.ApplicationContext log
      INFO: Manager: undeploy: Undeploying web application at '/g-6.5-SNAPSHOT'
      Jun 05, 2014 11:51:10 AM org.apache.catalina.core.ApplicationContext log
      INFO: Destroying Spring FrameworkServlet 'dispatcher'
      Jun 05, 2014 11:51:10 AM org.apache.catalina.core.ApplicationContext log
      INFO: Destroying Spring FrameworkServlet 'oof'
      Jun 05, 2014 11:51:10 AM org.apache.catalina.core.ApplicationContext log
      INFO: Destroying Spring FrameworkServlet 'scut'
      Jun 05, 2014 11:51:10 AM org.apache.catalina.core.ApplicationContext log
      INFO: Destroying Spring FrameworkServlet 'eevi'
      Jun 05, 2014 11:51:10 AM org.apache.catalina.core.ApplicationContext log
      INFO: Destroying Spring FrameworkServlet 'refl'
      Jun 05, 2014 11:51:10 AM org.apache.catalina.core.ApplicationContext log
      INFO: Destroying Spring FrameworkServlet 'portal'
      Jun 05, 2014 11:51:11 AM org.apache.catalina.core.ApplicationContext log
      INFO: Closing Spring root WebApplicationContext
      2014-06-05 11:51:11,054 [http-apr-8080-exec-9] INFO  org.quartz.core.QuartzScheduler  - Scheduler scheduler_$_DEFRAWS1239001401961851422 paused.
      2014-06-05 11:51:16,775 [http-apr-8080-exec-9] INFO  org.quartz.core.QuartzScheduler  - Scheduler scheduler_$_DEFRAWS1239001401961851422 shutting down.
      2014-06-05 11:51:16,775 [http-apr-8080-exec-9] INFO  org.quartz.core.QuartzScheduler  - Scheduler scheduler_$_DEFRAWS1239001401961851422 paused.
      2014-06-05 11:51:16,776 [http-apr-8080-exec-9] INFO  org.quartz.core.QuartzScheduler  - Scheduler scheduler_$_DEFRAWS1239001401961851422 shutdown complete.
      2014-06-05 11:51:16,793 [http-apr-8080-exec-9] INFO  c.f.commons.persistence.hibernate3.AnnotationSessionFactoryBean  - Closing Hibernate SessionFactory
      Jun 05, 2014 11:51:16 AM org.apache.catalina.core.ApplicationContext log
      INFO: Shutting down log4j
      Jun 05, 2014 11:51:16 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/g-6.5-SNAPSHOT] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
      Jun 05, 2014 11:51:16 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/g-6.5-SNAPSHOT] appears to have started a thread named [scheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
      Jun 05, 2014 11:51:16 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/g-6.5-SNAPSHOT] appears to have started a thread named [scheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
      Jun 05, 2014 11:51:16 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/g-6.5-SNAPSHOT] appears to have started a thread named [scheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
      Jun 05, 2014 11:51:16 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/g-6.5-SNAPSHOT] appears to have started a thread named [scheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
      Jun 05, 2014 11:51:16 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
      SEVERE: The web application [/g-6.5-SNAPSHOT] appears to have started a thread named [scheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
      Jun 05, 2014 11:51:16 AM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
      SEVERE: The web application [/g-6.5-SNAPSHOT] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@4a7de35a]) and a value of type [org.springframework.security.context.SecurityContextImpl] (value [org.springframework.security.context.SecurityContextImpl@ffffffff: Null authentication]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.

       

       

      Any idea on this problem?

       

      Thanks in advance,

      gore