users@grizzly.java.net

RE: Trouble getting started with Grizzly

From: Bjarki Bjorgulfsson <bb72_at_kent.ac.uk>
Date: Tue, 24 Jun 2008 12:12:34 +0100

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> -->

 

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?
 
- 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