Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] ArrayIndexOutOfBoundsException when using tycho-surefire-plugin with UIHarness

I don't understand the question. Are you asking if Tycho can fix an SWT error?

Regards
Tobias

> -----Original Message-----
> From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-
> bounces@xxxxxxxxxxx] On Behalf Of Tim Grebien
> Sent: Freitag, 20. Juli 2012 14:01
> To: tycho-user@xxxxxxxxxxx
> Subject: [tycho-user] ArrayIndexOutOfBoundsException when using tycho-
> surefire-plugin with UIHarness
> 
> Hi,
> 
> when running tests with tycho-surefire plugin on plugins that require
> UIHarness I get test failures.
> 
> Maven output is as following:
> 
> [INFO] --- tycho-surefire-plugin:0.16.0-SNAPSHOT:test (default-test) @
> de.cau.cs.kieler.core.kivi.test ---
> [INFO] Expected eclipse log file:
> /home/tig/git/kieler/mainline/test/de.cau.cs.kieler.core.kivi.test/target/
> work/data/.metadata/.log
> [INFO] Command line:
>         /bin/sh -c cd
> /home/tig/git/kieler/mainline/test/de.cau.cs.kieler.core.kivi.test &&
> /home/java/jdk64_1.6.0_21/jre/bin/java -Dosgi.noShutdown=false -
> Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=x86_64 -jar
> /home/tig/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.3.0
> .v20120522-1813/org.eclipse.equinox.launcher-1.3.0.v20120522-1813.jar -
> data
> /home/tig/git/kieler/mainline/test/de.cau.cs.kieler.core.kivi.test/target/
> work/data -dev
> file:/home/tig/git/kieler/mainline/test/de.cau.cs.kieler.core.kivi.test/ta
> rget/dev.properties -install
> /home/tig/git/kieler/mainline/test/de.cau.cs.kieler.core.kivi.test/target/
> work -configuration
> /home/tig/git/kieler/mainline/test/de.cau.cs.kieler.core.kivi.test/target/
> work/configuration -application
> org.eclipse.tycho.surefire.osgibooter.uitest -testproperties
> /home/tig/git/kieler/mainline/test/de.cau.cs.kieler.core.kivi.test/target/
> surefire.properties -nouithread
> [INFO] -------------------------------------------------------------------
> -----
> [INFO] Reactor Summary:
> [INFO]
> [INFO] plugins ........................................... SUCCESS
> [0.107s]
> [INFO] de.cau.cs.kieler.core.kivi ........................ SUCCESS
> [10.099s]
> [INFO] de.cau.cs.kieler.core.kivi.test ................... FAILURE
> [8.965s]
> .
> .
> .
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-
> plugin:0.16.0-SNAPSHOT:test (default-test) on project
> de.cau.cs.kieler.core.kivi.test: There are test failures.
> [ERROR]
> [ERROR] Please refer to
> /home/tig/git/kieler/mainline/test/de.cau.cs.kieler.core.kivi.test/target/
> surefire-reports for the individual test results.
> 
> In the corresponding logfile
> de.cau.cs.kieler.core.kivi.test/target/work/data/.metadata/.log
> I find the the followin ArrayIndexOutOfBoundsException:
> 
> !ENTRY org.eclipse.ui 4 0 2012-07-20 13:50:49.313
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.ArrayIndexOutOfBoundsException: 1
>         at
> org.eclipse.swt.custom.CTabFolder.setButtonBounds(CTabFolder.java:2463)
>         at
> org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.java:3641)
>         at
> org.eclipse.swt.custom.CTabFolder.updateItems(CTabFolder.java:3576)
>         at
> org.eclipse.swt.custom.CTabFolder.setMinimizeVisible(CTabFolder.java:2826)
>         at
> org.eclipse.ui.internal.presentations.PaneFolder.setMinimizeVisible(PaneFo
> lder.java:821)
>         at
> org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder
> .<init>(DefaultTabFolder.java:110)
>         at
> org.eclipse.ui.presentations.WorkbenchPresentationFactory.createEditorPres
> entation(WorkbenchPresentationFactory.java:53)
>         at
> org.eclipse.ui.internal.presentations.PresentationFactoryUtil.createPresen
> tation(PresentationFactoryUtil.java:42)
>         at
> org.eclipse.ui.internal.PartStack.createControl(PartStack.java:567)
>         .
>         .
>         .
> 
> This problem seems to be referenced in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=378000 which is marked as
> WONTFIX.
> 
> I tested this with both tycho 0.15.0 and 0.16.0-SNAPSHOT, same error.
> The problem only occures when compiling against Juno 3.8 runtime.
> Compiling against Indigo works just fine.
> 
> As I am not very experienced with Eclipse development, I would like to
> know if this issue can be fixed in my plugin code or if changes to the
> tycho-surefire-plugin are needed.
> 
> Best regards,
> Tim Grebien
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top