[JBoss JIRA] (ARQ-1066) ArchiveDeployer.deployInternal() always uses null rootCause
by James Livingston (JIRA)
James Livingston created ARQ-1066:
-------------------------------------
Summary: ArchiveDeployer.deployInternal() always uses null rootCause
Key: ARQ-1066
URL: https://issues.jboss.org/browse/ARQ-1066
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JBoss AS Containers
Reporter: James Livingston
ArchiveDeployer.deployInternal() walks back along the chain of initialCause exceptions to attach the root cause to the thrown exception, presumably in an attempt to reduce the clutter in the output.
The way it does so is incorrect and will always result in rootCause=null. I think that it should just attach "ex" as-is, but if stripping the intermediate exceptions is what is desired, then the while condition should be "rootCause != null && rootCause.getCause() != null", so that it extracts the last one.
--
Throwable rootCause = ex.getCause();
while (null != rootCause) {
rootCause = rootCause.getCause();
}
throw new DeploymentException("Cannot deploy: " + name, rootCause);
--
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (ARQRUSH-45) When running big suite in manager, it runs out of memory
by Lukáš Fryč (JIRA)
Lukáš Fryč created ARQRUSH-45:
---------------------------------
Summary: When running big suite in manager, it runs out of memory
Key: ARQRUSH-45
URL: https://issues.jboss.org/browse/ARQRUSH-45
Project: Arquillian RushEye
Issue Type: Bug
Components: Manager
Reporter: Lukáš Fryč
Assignee: Jakub Dunia
When running whole sample test suite [1], I hit Java heap space error, the end of the log bellow:
[1] https://github.com/lfryc/rusheye-sample-suite
{code}
[ SAME ] TabPanelTestCase.testCustomization
Update from parser
290 0 77 0 0
[ SAME ] SuggestionBoxTestCase.testSecondExamplePageSource
Update from parser
291 0 77 0 0
[ SAME ] AjaxValidatorTestCase.testAgeIntegerOnly
Update from parser
292 0 77 0 0
[ SAME ] PanelTestCase.testFirstExample
Update from parser
293 0 77 0 0
[ SAME ] CalendarTestCase.testApplyButtonCheckbox
Update from parser
294 0 77 0 0
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:470)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:338)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:557)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:541)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:189)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:204)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:956)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:578)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:71)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1011)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3084)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3069)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:413)
at javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:167)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:769)
at javax.swing.JComponent.paint(JComponent.java:1045)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JViewport.paint(JViewport.java:731)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5212)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:295)
at javax.swing.RepaintManager.paint(RepaintManager.java:1206)
at javax.swing.JComponent._paintImmediately(JComponent.java:5160)
=====================
Overall Statistics:
SAME: 294
DIFFER: 77
=====================
Exception in thread "Thread-1" java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
at org.jboss.rusheye.parser.Handler$ListeningContext.invoke(Handler.java:69)
at $Proxy0.onTestReady(Unknown Source)
at org.jboss.rusheye.parser.ManagerParser.parseSuiteFile(ManagerParser.java:117)
at org.jboss.rusheye.parser.ParserThread.run(ParserThread.java:30)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:470)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:329)
at org.jboss.rusheye.core.DefaultImageComparator.compare(DefaultImageComparator.java:99)
at org.jboss.rusheye.parser.listener.CompareListener.onTestReady(CompareListener.java:105)
at org.jboss.rusheye.suite.SuiteListenerImpl.onTestReady(SuiteListenerImpl.java:115)
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:601)
at org.jboss.rusheye.parser.Handler$ListeningContext.invoke(Handler.java:64)
... 4 more
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:470)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:338)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:557)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:541)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:189)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:204)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:956)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:578)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:71)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1011)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3084)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3069)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:413)
at javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:167)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:769)
at javax.swing.JComponent.paint(JComponent.java:1045)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JViewport.paint(JViewport.java:731)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5212)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:295)
at javax.swing.RepaintManager.paint(RepaintManager.java:1206)
at javax.swing.JComponent._paintImmediately(JComponent.java:5160)
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:75)
at java.awt.image.Raster.createPackedRaster(Raster.java:470)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:338)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:557)
at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:541)
at sun.java2d.loops.MaskBlit$General.MaskBlit(MaskBlit.java:189)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:204)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:956)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:578)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:71)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1011)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3084)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3069)
at javax.swing.ImageIcon.paintIcon(ImageIcon.java:413)
at javax.swing.plaf.basic.BasicLabelUI.paint(BasicLabelUI.java:167)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)
at javax.swing.JComponent.paintComponent(JComponent.java:769)
at javax.swing.JComponent.paint(JComponent.java:1045)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JViewport.paint(JViewport.java:731)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintChildren(JComponent.java:878)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5212)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:295)
at javax.swing.RepaintManager.paint(RepaintManager.java:1206)
at javax.swing.JComponent._paintImmediately(JComponent.java:5160)
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months
[JBoss JIRA] (ARQ-1062) Arquillian Drone Webdriver's OperaDriver depchain is not compatible with ShrinkWrap Resolver 1.0.0-beta-7
by Karel Piwko (JIRA)
Karel Piwko created ARQ-1062:
--------------------------------
Summary: Arquillian Drone Webdriver's OperaDriver depchain is not compatible with ShrinkWrap Resolver 1.0.0-beta-7
Key: ARQ-1062
URL: https://issues.jboss.org/browse/ARQ-1062
Project: Arquillian
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Extension - Drone
Affects Versions: drone_1.1.0.CR2
Reporter: Karel Piwko
Assignee: Karel Piwko
When using OperaDriver defined in org.jboss.arquillian.extension:arquillian-drone-webdriver-depchain, together with ShrinkWrap Resolver on the classpath,
following error might occur, depending on classpath ordering:
{code}
java.lang.RuntimeException: Unable to instantiate Drone via com.opera.core.systems.OperaDriver(Capabilities)
at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:160)
at org.jboss.arquillian.drone.webdriver.factory.OperaDriverFactory.createInstance(OperaDriverFactory.java:70)
at org.jboss.arquillian.drone.webdriver.factory.OperaDriverFactory.createInstance(OperaDriverFactory.java:35)
at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:129)
at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:43)
at org.jboss.arquillian.drone.impl.DroneCreator.createWebTestBrowser(DroneCreator.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
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:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
at org.jboss.arquillian.drone.impl.DroneConfigurator.configureDrone(DroneConfigurator.java:116)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
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.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)
at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:182)
at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)
at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)
at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.NoSuchMethodError: com.google.common.base.Platform.precomputeCharMatcher(Lcom/google/common/base/CharMatcher;)Lcom/google/common/base/CharMatcher;
at com.google.common.base.CharMatcher.precomputed(CharMatcher.java:719)
at com.google.common.base.CharMatcher.<clinit>(CharMatcher.java:66)
at com.google.common.base.CaseFormat.<clinit>(CaseFormat.java:32)
at com.opera.core.systems.OperaSettings$Capability.<init>(OperaSettings.java:456)
at com.opera.core.systems.OperaSettings$Capability.<init>(OperaSettings.java:110)
at com.opera.core.systems.OperaSettings$Capability$1.<init>(OperaSettings.java:121)
at com.opera.core.systems.OperaSettings$Capability.<clinit>(OperaSettings.java:121)
at com.opera.core.systems.OperaSettings.<init>(OperaSettings.java:571)
at com.opera.core.systems.OperaDriver.<init>(OperaDriver.java:160)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)
... 58 more
{code}
This happens due to com.google.common.base.Platform being included in guava-12 (RemoteWebDriver dependency) and google-collections (ShrinkWrap Resolver dependency)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 4 months