Test error OsgiControllerTest on building

1 view
Skip to first unread message

daniel_parry

unread,
Jun 8, 2009, 6:57:27 AM6/8/09
to Sakai Kernel
I was following the steps at:

http://groups.google.com/group/sakai-kernel/web/building-3akai-sling?pli=1

from scratch with a completely fresh local repo. When building
building the k2 fork (git://github.com/ieb/k2-sling-fork.git).

I get the following test error:

Tests in error:
testBundleStatePreserved [felix]
(org.apache.sling.jcr.jcrinstall.it.OsgiControllerTest)

Tests run: 4, Failures: 0, Errors: 1, Skipped: 0

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to /home/daniel/sling/k2-sling-fork/contrib/extensions/
jcrinstall/it/target/surefire-reports for the individual test results.

-------------------------------------------------------------------------------
Test set: org.apache.sling.jcr.jcrinstall.it.OsgiControllerTest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 16.636
sec <<< FAILURE!
testBundleStatePreserved [felix]
(org.apache.sling.jcr.jcrinstall.it.OsgiControllerTest) Time elapsed:
1.656 sec <<< ERROR!
java.lang.Error: IOException in adaptTo
at
org.apache.sling.jcr.jcrinstall.it.SimpleFileInstallableData.adaptTo
(SimpleFileInstallableData.java:42)
at
org.apache.sling.osgi.installer.impl.InstallableDataWrapper.<init>
(InstallableDataWrapper.java:52)
at org.apache.sling.osgi.installer.impl.OsgiResourceTask.<init>
(OsgiResourceTask.java:51)
at
org.apache.sling.osgi.installer.impl.OsgiControllerImpl.scheduleInstallOrUpdate
(OsgiControllerImpl.java:118)
at
org.apache.sling.jcr.jcrinstall.it.OsgiControllerTest.testBundleStatePreserved
(OsgiControllerTest.java:240)
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:585)
at
org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.injectContextAndInvoke
(CallableTestMethodImpl.java:126)
at
org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.call
(CallableTestMethodImpl.java:94)
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:585)
at
org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall
(RemoteBundleContextImpl.java:80)
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:585)
at sun.rmi.server.UnicastServerRef.dispatch
(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages
(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.FileNotFoundException: /home/daniel/sling/k2-sling-
fork/contrib/extensions/jcrinstall/it/target/
org.apache.sling.jcr.jcrinstall.it-2.0.3-incubator-SNAPSHOT-
otherBundleA-1.0.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at
org.apache.sling.jcr.jcrinstall.it.SimpleFileInstallableData.adaptTo
(SimpleFileInstallableData.java:40)
... 26 more

Anyone else seen this?

Best wishes,

Daniel

Matthew Buckett

unread,
Jun 8, 2009, 7:04:13 AM6/8/09
to sakai-...@googlegroups.com
2009/6/8 daniel_parry <daniel...@cantab.net>:

>
> I was following the steps at:
>
> http://groups.google.com/group/sakai-kernel/web/building-3akai-sling?pli=1
>
> from scratch with a completely fresh local repo. When building
> building the k2 fork (git://github.com/ieb/k2-sling-fork.git).
>

The build in hudson is currently stuck at a similar point:

http://stickleback.oucs.ox.ac.uk/hudson/job/K2%20Sling/63/console

--
Matthew Buckett

Ian Boston

unread,
Jun 8, 2009, 7:24:44 AM6/8/09
to sakai-...@googlegroups.com
Is it going to be possible to get Hudson to email the list when it
fails (and works again ?)

Ian

Bertrand Delacretaz

unread,
Jun 8, 2009, 7:28:41 AM6/8/09
to sakai-...@googlegroups.com
Hi,

On Mon, Jun 8, 2009 at 12:57 PM, daniel_parry<daniel...@cantab.net> wrote:
> I get the following test error:
>
> Tests in error:
>  testBundleStatePreserved [felix]

> (org.apache.sling.jcr.jcrinstall.it.OsgiControllerTest)...

Looks like a problem in the Sling test code, see
https://issues.apache.org/jira/browse/SLING-996 . I'm hoping to have a
look today or tomorrow.

-Bertrand

Matthew Buckett

unread,
Jun 8, 2009, 7:56:39 AM6/8/09
to sakai-...@googlegroups.com
2009/6/8 Ian Boston <ianb...@googlemail.com>:

>
> Is it going to be possible to get Hudson to email the list when it
> fails (and works again ?)

Sure, can you add matthew...@oucs.ox.ac.uk as allowed to post to
the list, but not down to receive any messages and I'll tell hudson to
mail the list when Open Experiments or K2 Sling break.

--
Matthew Buckett

Ian Boston

unread,
Jun 8, 2009, 8:43:04 AM6/8/09
to sakai-...@googlegroups.com
Done,
you should get a notification message soon.
Ian

On 8 Jun 2009, at 12:56, Matthew Buckett wrote:

> matthew...@oucs.ox.ac.uk

Ian Boston

unread,
Jun 8, 2009, 9:00:01 AM6/8/09
to sakai-...@googlegroups.com
Commit 782602 against SLING-996 in the Apache SVN has been merged into
our branch and pushed.

Ian

daniel_parry

unread,
Jun 8, 2009, 9:17:17 AM6/8/09
to Sakai Kernel
Thanks, now building ok.

Best wishes,

Daniel

On Jun 8, 2:00 pm, Ian Boston <ianbos...@googlemail.com> wrote:
> Commit 782602 against SLING-996 in the Apache SVN has been merged into  
> our branch and pushed.
>
> Ian
>
> On 8 Jun 2009, at 12:28, Bertrand Delacretaz wrote:
>
>
>
> > Hi,
>
> > On Mon, Jun 8, 2009 at 12:57 PM,  
> > daniel_parry<daniel_pa...@cantab.net> wrote:
> >> I get the following test error:
>
> >> Tests in error:
> >>  testBundleStatePreserved [felix]
> >> (org.apache.sling.jcr.jcrinstall.it.OsgiControllerTest)...
>
> > Looks like a problem in the Sling test code, see
> >https://issues.apache.org/jira/browse/SLING-996. I'm hoping to have a

Matthew Buckett

unread,
Jun 8, 2009, 9:43:10 AM6/8/09
to sakai-...@googlegroups.com
2009/6/8 Ian Boston <ianb...@googlemail.com>:

>
> Done,
> you should get a notification message soon.

Thanks, seems to be working fine (posting of notifications). I've
removed the space in the name of K2 Sling as it was causing the build
to fail. It's now at:

http://stickleback.oucs.ox.ac.uk/hudson/job/k2-sling/

Would you like Open Experiments renamed to the remove the space from
the checkout path? It doesn't seem to be causing the build to fail at
the moment.

--
Matthew Buckett

Ian Boston

unread,
Jun 8, 2009, 10:21:37 AM6/8/09
to sakai-...@googlegroups.com
Yes please, just in case.
Thanks
Ian


>
>
> --
> Matthew Buckett
>
> >

Reply all
Reply to author
Forward
0 new messages