---------- Forwarded message ---------- From: "Toni Menzel" <t...@okidokiteam.com> Date: May 24, 2011 9:06 AM Subject: Re: Form Submission - Contact To: "Kamalakannan CM" <kamalthero...@gmail.com>
Mhh will have a look at it during the day. Do you have the chance to try the oracle jdk? Just for comarism. Also,which maven version and commands are you using. This usually does not matter at all.. but a NPE at that spot sounds odd. As for mailinglist: we are on it. We will switch to googlegroups very likely! Its spreads up,search for ops4j on groups.google.com. sorry. On May 24, 2011 1:31 AM, "Kamalakannan CM" <kamalthero...@gmail.com> wrote: > Thanks Toni. > > I tried to subscribe to the mailing list but it is not working. i even sent > a mail to the DL Owners about it. > > Anyways i saw that the Pax Exam 2.0 is available and i was excited to try it > out. But when ran the junit lesson sample from learn-paxexam, it failed with > the following exception. > > > <testcase classname="org.ops4j.pax.exam.lesson3.LessonTest" > name="initializationError" time="0"> > <error > type="java.lang.NullPointerException">java.lang.NullPointerException > at > org.ops4j.pax.exam.spi.probesupport.intern.TestProbeBuilderImpl.constructProbeTag(TestProbeBuilderImpl.java:192) > at > org.ops4j.pax.exam.spi.probesupport.intern.TestProbeBuilderImpl.build(TestProbeBuilderImpl.java:119) > at > org.ops4j.pax.exam.junit.JUnit4TestRunner.addTestsToReactor(JUnit4TestRunner.java:185) > at > org.ops4j.pax.exam.junit.JUnit4TestRunner.prepareReactor(JUnit4TestRunner.java:151) > at > org.ops4j.pax.exam.junit.JUnit4TestRunner.<init>(JUnit4TestRunner.java:77) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:41) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39) > at java.lang.reflect.Constructor.newInstance(Constructor.java:515) > at > org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31) > at > org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24) > at > org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) > at > org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29) > at > org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57) > at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24) > at > org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:33) > at > org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:146) > at > org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:599) > at > org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) > at $Proxy0.invoke(Unknown Source) > at > org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:145) > at > org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:87) > at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) > </error> > <system-out>@HL > @HL------------------------------------------------------- > @HL T E S T S > @HL------------------------------------------------------- > @SLRunning org.ops4j.pax.exam.lesson3.LessonTest > </system-out> > <system-err>1765 [main] INFO org.ops4j.pax.exam.junit.JUnit4TestRunner - > Add Configuration config > </system-err> > > i am using IBM JDK 1.6 . please let me know how this would be resolved. > > Regards > Kamal > > On Wed, May 18, 2011 at 12:14 AM, Toni Menzel <t...@okidokiteam.com> wrote: > >> It depends ;) >> >> If you are using the Pax Runner Container: >> You can use any obr url, like: >> provision( "obr:<blabla>") >> >> directly. There is probably no api sugar for obr handler urls yet (unlike >> with maven()) but you should be able to use it with the aforementioned >> generic provision method. >> Please note, because the URL Handler will be registered at a later time >> than this code executes, you should not use new URL("") but the String >> version. (could be a pitfall if you tried before). >> >> If you are using the Native Container: >> add the pax-url-obr dependency to your pom/test classpath first. >> Then it should work there, too. >> >> In general, please write on the OPS4J Mailinglist, which gives you usually >> better response times. (general@lists.ops4j.org) >> >> Cheers, >> Toni >> >> >> On Wed, May 18, 2011 at 8:47 AM, Squarespace Services < >> servi...@squarespace.com> wrote: >> >>> This email was transmitted via www.okidokiteam.com. >>> >>> Submitted from address freshcode.net/85.214.101.7. >>> >>> ---------------------------------------------------------------------- >>> >>> >>> Your Name: Kamal >>> Your Email: kamalthero...@gmail.com >>> Subject: Bundle provising in Pax Exam 2 >>> Your Message to Okidokiteam: Hi Toni >>> >>> Can you tell if there is a way to provising the bundles to the Pax exam >>> Configurations through OBR URL >>> >>> if so please give an example of how to provide the obr url in the >>> configuration method >>> >>> Regards >>> Kamal >>> >>> -- >>> Powered by Squarespace (http://www.squarespace.com/). >>> >> >> >> >> -- >> Toni Menzel Source <http://tonimenzel.com> >> >> > > > -- > "You may be someone to the World, > But for someone you are the World.... > Somewhere Someone like the way you are > So Always be what you are........"
_______________________________________________ general mailing list general@lists.ops4j.org http://lists.ops4j.org/mailman/listinfo/general