You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Peter Rothenpieler <ro...@itm.uni-luebeck.de> on 2010/02/01 17:00:45 UTC
Errors building org.apache.shindig.gadgets ()
Hi everyone,
I am currently getting started with Apache Shindig using Eclipse and
followed the Tutorial under [1] and the "\shindig\BUILD-JAVA" file.
I'm currently using SVN Rev 904981 (newest).
I've created the java-projects common/features/gadgets/server/social-api
(all 1.1-BETA6-SNAPSHOT) in eclipse and successfully build all of them
EXCEPT the "gadgets project", which fails on (see also the attached
surefire-reports):
> Failed tests:
> testEncodingDetectionBig5(org.apache.shindig.gadgets.http.HttpResponseTest)
> testEncodingDetectionBig5WithQuotes(org.apache.shindig.gadgets.http.HttpResponseTest)
>
> Tests in error:
> assumeLatin1OnInvalidUtf8(org.apache.shindig.gadgets.encoding.EncodingDetectorTest)
> testFallbackDetectorIsUsed(org.apache.shindig.gadgets.encoding.EncodingDetectorTest)
> doNotAssumeLatin1OnInvalidUtf8(org.apache.shindig.gadgets.encoding.EncodingDetectorTest)
> nullCustomDetector(org.apache.shindig.gadgets.encoding.EncodingDetectorTest)
> renderTypeHtml(org.apache.shindig.gadgets.render.RendererTest)
> renderTypeUrl(org.apache.shindig.gadgets.render.RendererTest)
> handlesProcessingExceptionGracefully(org.apache.shindig.gadgets.render.RendererTest)
> handlesRenderingExceptionGracefully(org.apache.shindig.gadgets.render.RendererTest)
> handlesRuntimeWrappedGadgetExceptionGracefully(org.apache.shindig.gadgets.render.RendererTest)
> otherRuntimeExceptionsThrow(org.apache.shindig.gadgets.render.RendererTest)
> validateParent(org.apache.shindig.gadgets.render.RendererTest)
> validateBadParent(org.apache.shindig.gadgets.render.RendererTest)
> handlesNoCurrentViewGracefully(org.apache.shindig.gadgets.render.RendererTest)
> verifyLockedDomain(org.apache.shindig.gadgets.render.RendererTest)
> wrongDomainFails(org.apache.shindig.gadgets.render.RendererTest)
>
> Tests run: 1083, Failures: 2, Errors: 15, Skipped: 6
What am I doing wrong? Anybody got any idea what I seem to be missing?
Regards,
Peter
[1] http://incubator.apache.org/shindig/developers/java/build.html
--
Dipl.-Inf. Peter Rothenpieler
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/rothenpieler
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5392
Re: Errors building org.apache.shindig.gadgets ()
Posted by Peter Rothenpieler <ro...@itm.uni-luebeck.de>.
Thank you, Paul.
I have managed to get Shindig "Trunk" compiling via mvn under cygwin and
have successfully integrated my own "dummy" data service implementation
following [1] with several changes due to moved/refactored Classes in
the trunk.
For now developing in eclipse seems to work fine for me - as long as I
compile via mvn/cygwin.
Cheers,
Peter
[1]
http://cwiki.apache.org/confluence/display/SHINDIG/Providing+your+own+data+service+implementation
--
Dipl.-Inf. Peter Rothenpieler
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/rothenpieler
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5392
Re: Errors building org.apache.shindig.gadgets ()
Posted by Paul Lindner <li...@inuus.com>.
This appears to be a (another) windows directory traversal incompatibility.
We need to get a windows-based hudson instance up and running. For now you
can probably just add an @Ignore to the test to get up and running, however
there's probably some underlying issue that will cause problems for you in
other areas.
2010/2/4 Peter Rothenpieler <ro...@itm.uni-luebeck.de>
> Hi,
>
> just wanted to let you know that I still have the same problem. After
> trying out several of the available "Sources" (to cut a long story short
> let's say [1] and [2]), I narrowed it down to the following issues:
>
> For [1] (1.1-BETA5-incubating):
> 1. compiling from the command line gives the following error:
> > Results :
> >
> > Tests in error:
> >
> registerFromFileInNestedDirectoryFeatureXmlFile(org.apache.shindig.gadgets.features.FeatureRegistryTest)
> >
> > Tests run: 973, Failures: 0, Errors: 1, Skipped: 1
> (see attached file)
> 2. executing "mvn eclipse:m2eclipse", importing Eclipse Projects and
> building with Maven Eclipse plugin works fine, EXCEPT for the "Gadgets"
> Project (see my other post to which i'm replying)
>
>
> For [2] (shindig-1.0-incubating):
> 1. compiling from the command line works fine (WinXP -> cygwin -> mvn)
> 2. "mvn -Prun" works fine, too
> 3. executing "mvn eclipse:m2eclipse", importing Eclipse Projects and
> building with Maven Eclipse plugin works fine, EXCEPT for the "Gadgets"
> and "Server" Project
>
> I don't know if this is due to some mis-configuration on my side (which
> probaly is odd, since the other eclipse-projects like
> "shindig-features", "shindig-server" etc. compile well inside eclipse.
>
> So the only solution for me is right now to use 1.0 and compile from the
> command line... which isn't that comfortable.
>
> [1]
>
> http://repo1.maven.org/maven2/org/apache/shindig/shindig/1.1-BETA5-incubating/shindig-1.1-BETA5-incubating-source.zip
> [2]
>
> http://repo1.maven.org/maven2/org/apache/shindig/shindig/1.0-incubating/shindig-1.0-incubating-source.zip
>
>
> --
> Dipl.-Inf. Peter Rothenpieler
> Institute of Telematics, University of Lübeck
> http://www.itm.uni-luebeck.de/users/rothenpieler
> Ratzeburger Allee 160, 23538 Lübeck, Germany
> Phone: +49 451 500 5392
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.shindig.gadgets.features.FeatureRegistryTest
>
> -------------------------------------------------------------------------------
> Tests run: 24, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.093 sec
> <<< FAILURE!
> registerFromFileInNestedDirectoryFeatureXmlFile(org.apache.shindig.gadgets.features.FeatureRegistryTest)
> Time elapsed: 0.016 sec <<< ERROR!
> java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal
> character in opaque part at index 2:
> c:\DOKUME~1\Peter\LOKALE~1\Temp\0.6202535606811763
> at
> org.apache.shindig.common.uri.DefaultUriParser.parse(DefaultUriParser.java:38)
> at org.apache.shindig.common.uri.Uri.parse(Uri.java:97)
> at
> org.apache.shindig.gadgets.features.FeatureRegistry.getComponentUri(FeatureRegistry.java:280)
> at
> org.apache.shindig.gadgets.features.FeatureRegistry.register(FeatureRegistry.java:118)
> at
> org.apache.shindig.gadgets.features.FeatureRegistryTest.registerFromFileInNestedDirectoryFeatureXmlFile(FeatureRegistryTest.java:137)
> 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
> at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> at
> org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
> at
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
> at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
> 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.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
> at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> Caused by: java.net.URISyntaxException: Illegal character in opaque part at
> index 2: c:\DOKUME~1\Peter\LOKALE~1\Temp\0.6202535606811763
> at java.net.URI$Parser.fail(URI.java:2809)
> at java.net.URI$Parser.checkChars(URI.java:2982)
> at java.net.URI$Parser.parse(URI.java:3019)
> at java.net.URI.<init>(URI.java:578)
> at
> org.apache.shindig.common.uri.DefaultUriParser.parse(DefaultUriParser.java:36)
> ... 31 more
>
>
>
Re: Errors building org.apache.shindig.gadgets ()
Posted by Peter Rothenpieler <ro...@itm.uni-luebeck.de>.
Hi,
just wanted to let you know that I still have the same problem. After
trying out several of the available "Sources" (to cut a long story short
let's say [1] and [2]), I narrowed it down to the following issues:
For [1] (1.1-BETA5-incubating):
1. compiling from the command line gives the following error:
> Results :
>
> Tests in error:
> registerFromFileInNestedDirectoryFeatureXmlFile(org.apache.shindig.gadgets.features.FeatureRegistryTest)
>
> Tests run: 973, Failures: 0, Errors: 1, Skipped: 1
(see attached file)
2. executing "mvn eclipse:m2eclipse", importing Eclipse Projects and
building with Maven Eclipse plugin works fine, EXCEPT for the "Gadgets"
Project (see my other post to which i'm replying)
For [2] (shindig-1.0-incubating):
1. compiling from the command line works fine (WinXP -> cygwin -> mvn)
2. "mvn -Prun" works fine, too
3. executing "mvn eclipse:m2eclipse", importing Eclipse Projects and
building with Maven Eclipse plugin works fine, EXCEPT for the "Gadgets"
and "Server" Project
I don't know if this is due to some mis-configuration on my side (which
probaly is odd, since the other eclipse-projects like
"shindig-features", "shindig-server" etc. compile well inside eclipse.
So the only solution for me is right now to use 1.0 and compile from the
command line... which isn't that comfortable.
[1]
http://repo1.maven.org/maven2/org/apache/shindig/shindig/1.1-BETA5-incubating/shindig-1.1-BETA5-incubating-source.zip
[2]
http://repo1.maven.org/maven2/org/apache/shindig/shindig/1.0-incubating/shindig-1.0-incubating-source.zip
--
Dipl.-Inf. Peter Rothenpieler
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/rothenpieler
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5392
Re: Errors building org.apache.shindig.gadgets ()
Posted by Peter Rothenpieler <ro...@itm.uni-luebeck.de>.
Hi Paul,
Sure! Sorry for the delay - had some real world trouble dealing with the
weather in northern germany...
Please see the attached files.
Regards,
Peter
--
Dipl.-Inf. Peter Rothenpieler
Institute of Telematics, University of Lübeck
http://www.itm.uni-luebeck.de/users/rothenpieler
Ratzeburger Allee 160, 23538 Lübeck, Germany
Phone: +49 451 500 5392
Re: Errors building org.apache.shindig.gadgets ()
Posted by Paul Lindner <li...@inuus.com>.
Peter,
Could you email the contents of the EncodingDetectorTest and RendererTest
test output in the surefire-reports directory? This will help us triage
your problem.
Thanks!
2010/2/1 Peter Rothenpieler <ro...@itm.uni-luebeck.de>
> Hi everyone,
>
> I am currently getting started with Apache Shindig using Eclipse and
> followed the Tutorial under [1] and the "\shindig\BUILD-JAVA" file.
> I'm currently using SVN Rev 904981 (newest).
>
> I've created the java-projects common/features/gadgets/server/social-api
> (all 1.1-BETA6-SNAPSHOT) in eclipse and successfully build all of them
> EXCEPT the "gadgets project", which fails on (see also the attached
> surefire-reports):
>
> > Failed tests:
> >
> testEncodingDetectionBig5(org.apache.shindig.gadgets.http.HttpResponseTest)
> >
> testEncodingDetectionBig5WithQuotes(org.apache.shindig.gadgets.http.HttpResponseTest)
> >
> > Tests in error:
> >
> assumeLatin1OnInvalidUtf8(org.apache.shindig.gadgets.encoding.EncodingDetectorTest)
> >
> testFallbackDetectorIsUsed(org.apache.shindig.gadgets.encoding.EncodingDetectorTest)
> >
> doNotAssumeLatin1OnInvalidUtf8(org.apache.shindig.gadgets.encoding.EncodingDetectorTest)
> >
> nullCustomDetector(org.apache.shindig.gadgets.encoding.EncodingDetectorTest)
> > renderTypeHtml(org.apache.shindig.gadgets.render.RendererTest)
> > renderTypeUrl(org.apache.shindig.gadgets.render.RendererTest)
> >
> handlesProcessingExceptionGracefully(org.apache.shindig.gadgets.render.RendererTest)
> >
> handlesRenderingExceptionGracefully(org.apache.shindig.gadgets.render.RendererTest)
> >
> handlesRuntimeWrappedGadgetExceptionGracefully(org.apache.shindig.gadgets.render.RendererTest)
> >
> otherRuntimeExceptionsThrow(org.apache.shindig.gadgets.render.RendererTest)
> > validateParent(org.apache.shindig.gadgets.render.RendererTest)
> > validateBadParent(org.apache.shindig.gadgets.render.RendererTest)
> >
> handlesNoCurrentViewGracefully(org.apache.shindig.gadgets.render.RendererTest)
> > verifyLockedDomain(org.apache.shindig.gadgets.render.RendererTest)
> > wrongDomainFails(org.apache.shindig.gadgets.render.RendererTest)
> >
> > Tests run: 1083, Failures: 2, Errors: 15, Skipped: 6
>
> What am I doing wrong? Anybody got any idea what I seem to be missing?
>
> Regards,
> Peter
>
>
> [1] http://incubator.apache.org/shindig/developers/java/build.html
>
> --
> Dipl.-Inf. Peter Rothenpieler
> Institute of Telematics, University of Lübeck
> http://www.itm.uni-luebeck.de/users/rothenpieler
> Ratzeburger Allee 160, 23538 Lübeck, Germany
> Phone: +49 451 500 5392
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.shindig.gadgets.http.HttpResponseTest
>
> -------------------------------------------------------------------------------
> Tests run: 33, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.shindig.gadgets.encoding.EncodingDetectorTest
>
> -------------------------------------------------------------------------------
> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
>
>