users@grizzly.java.net

RE: Trouble getting started with Grizzly

From: Bjarki Bjorgulfsson <bb72_at_kent.ac.uk>
Date: Wed, 25 Jun 2008 22:32:20 +0100

Hello Jeanfrancois

Currently I'm on Windows XP Professional SP3 with JDK1.6.0_06 and
JRE1.6.0_06 but this morning I was running XP SP2 but it didn't matter. The
steps I have tried are the following:

1. Deleted all JREs and JDKs older than 1.6.0_06 (there were a lot of them)
2. Updated from Netbeans 6.0 to 6.1
3. Updated to Windows XP SP3

It did not make any difference. To get the project to compile I changed this
one line in SuspendableTest.java from:

208 } catch (EOFException ex){

To

208 } catch (Exception ex){

Regards,
- Bjarki

-----Original Message-----
From: Jeanfrancois.Arcand_at_Sun.COM [mailto:Jeanfrancois.Arcand_at_Sun.COM]
Sent: 25. júní 2008 14:59
To: users_at_grizzly.dev.java.net
Subject: Re: Trouble getting started with Grizzly

Salut,

Bjarki Bjorgulfsson wrote:
> Hello,
>
>
>
> I did get one step further by commenting out
>
>
>
> <!--<extension>
>
> <groupId>org.jvnet.wagon-svn</groupId>
>
> <artifactId>wagon-svn</artifactId>
>
> <version>1.6</version>
>
> </extension> -->
>

OK I will send an email to this list with the workaround. Thanks!



>
>
> From the pom but now the build fails because of test failures:
>
>
>
> ------------------------------------------------------------------------
>
> Reactor Summary:
>
> ------------------------------------------------------------------------
>
> grizzly-project ....................................... SUCCESS [16.204s]
>
> grizzly-framework ..................................... FAILED [4:31.812s]




>
>
>
> and the rest is not built
>
> ------------------------------------------------------------------------
>
> [ERROR]Mojo:
>
> [ERROR] org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test
>
> [ERROR]FAILED for project:
>
> [ERROR] com.sun.grizzly:grizzly-framework:bundle:1.8.1-SNAPSHOT
>
> [ERROR]Reason:
>
> [ERROR]There are test failures.
>
> [ERROR]Please refer to
> C:\java\grizzly\trunk\modules\grizzly\target\surefire-reports for the
> individual test results.
>
> Here is the error in this particular test:
>
>
----------------------------------------------------------------------------
---
> 
> Test set: com.sun.grizzly.SuspendableTest
> 
>
----------------------------------------------------------------------------
---
> 
> Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 37.171 
> sec <<< FAILURE!
> 
> testCancelSuspendAfter(com.sun.grizzly.SuspendableTest)  Time elapsed: 
> 3.032 sec  <<< ERROR!
> 
> java.io.IOException: An existing connection was forcibly closed by the 
> remote host
> 
>         at sun.nio.ch.SocketDispatcher.read0(Native Method)
> 
>         at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25)
> 
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
> 
>         at sun.nio.ch.IOUtil.read(IOUtil.java:206)
> 
>         at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
> 
>         at 
> com.sun.grizzly.util.Utils.readWithTemporarySelector(Utils.java:100)
> 
>         at 
> com.sun.grizzly.util.InputReader.doClearRead(InputReader.java:283)
> 
>         at com.sun.grizzly.util.InputReader.doRead(InputReader.java:258)
> 
>         at com.sun.grizzly.util.InputReader.read(InputReader.java:215)
> 
>         at 
> com.sun.grizzly.TCPConnectorHandler.read(TCPConnectorHandler.java:381)
> 
>         at 
>
com.sun.grizzly.utils.NonBlockingTCPIOClient.receive(NonBlockingTCPIOClient.
java:83)
> 
>         at 
>
com.sun.grizzly.utils.NonBlockingTCPIOClient.receive(NonBlockingTCPIOClient.
java:78)
> 
>         at 
>
com.sun.grizzly.SuspendableTest.testCancelSuspendAfter(SuspendableTest.java:
208)
> 
> Any ideas?
> 
Hum, which OS/JDK version are you running this test? You can compile 
using mvn -Dmaven.test.skip=true.
Thanks for filling the issue!
A+
-- Jeanfrancois
>  
> 
> - Bjarki
> 
>  
> 
> ------------------------------------------------------------------------
> 
> *From:* Bjarki Bjorgulfsson [mailto:bb72_at_kent.ac.uk]
> *Sent:* 22. júní 2008 17:08
> *To:* users_at_grizzly.dev.java.net
> *Subject:* Trouble getting started with Grizzly
> 
>  
> 
> Hello
> 
>  
> 
> I’m unable to compile the Grizzly source following this tutorial:
> 
>  
> 
> https://grizzly.dev.java.net/tutorials/grizzly-nb6-tutorial/index.html
> 
>  
> 
> Initially I get a maven error similar to what is happening here:
> 
>
http://www.nabble.com/Problem-Grizzly-Netbeans-maven-Installation-td17273564
.html 
> 
> 
>  
> 
> I change the version in the pom inside the trunk directory:
> 
>  
> 
>             <extension>
> 
>                 <groupId>org.jvnet.wagon-svn</groupId>
> 
>                 <artifactId>wagon-svn</artifactId>
> 
>                 <version>RELEASE</version>
> 
>             </extension>
> 
>  
> 
> To
> 
>  
> 
>             <extension>
> 
>                 <groupId>org.jvnet.wagon-svn</groupId>
> 
>                 <artifactId>wagon-svn</artifactId>
> 
>                 <version>1.8</version>
> 
>             </extension>
> 
>  
> 
> Then I get rid of the “badly formed maven project” error message and the 
> project is named grizzly-project (pom) instead. But when I compile I get 
> the following error:
> 
>  
> 
> [ERROR]Maven encountered an error while trying to resolve an the direct 
> dependencies for a build extension used in your project.
> 
> [ERROR]Project:
> 
> [ERROR]Group-Id: com.sun.grizzly
> 
> [ERROR]Artifact-Id: grizzly-project
> 
> [ERROR]Version: 1.8-SNAPSHOT
> 
> [ERROR]Type: pom
> 
> [ERROR]Scope: null
> 
> [ERROR]Extension:
> 
> [ERROR]Group-Id: org.jvnet.wagon-svn
> 
> [ERROR]Artifact-Id: wagon-svn
> 
> [ERROR]Version: 1.8
> 
> [ERROR]Type: jar
> 
> [ERROR]Scope: null
> 
> [ERROR]Failed Artifact:
> 
> [ERROR]Group-Id: org.jvnet.wagon-svn
> 
> [ERROR]Artifact-Id: wagon-svn
> 
> [ERROR]Version: 1.8
> 
> [ERROR]Type: jar
> 
> [ERROR]Scope: null
> 
> [ERROR]Error message: Unable to read the metadata file for artifact 
> 'org.jvnet.wagon-svn:wagon-svn:jar': POM 'org.jvnet.wagon-svn:wagon-svn' 
> not found in repository: Unable to download the artifact from any
repository
> 
> [ERROR]  org.jvnet.wagon-svn:wagon-svn:pom:1.8
> 
> [ERROR]from the specified remote repositories:
> 
> [ERROR]  central (http://repo1.maven.org/maven2)
> 
> [ERROR] for project org.jvnet.wagon-svn:wagon-svn
> 
> [ERROR]Root error message: Unable to download the artifact from any 
> repository
> 
> ------------------------------------------------------------------------
> 
> For more information, run with the -e flag
> 
> ------------------------------------------------------------------------
> 
>  + Ignoring build failures
> 
> ------------------------------------------------------------------------
> 
> BUILD SUCCESSFUL
> 
> ------------------------------------------------------------------------
> 
> Total time: < 1 second
> 
> Finished at: Sun Jun 22 12:45:31 BST 2008
> 
> Final Memory: 70M/125M
> 
> ------------------------------------------------------------------------
> 
>  
> 
> I’m on Windows XP SP2 with jre1.6.0_06
> 
>  
> 
>  
> 
>  
> 
>  
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
For additional commands, e-mail: users-help_at_grizzly.dev.java.net