You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Hubert, Eric" <er...@jamba.net> on 2008/05/06 00:46:05 UTC
Build problem
Hi all,
today I tried to build synapse and got the following error during test execution:
org.apache.maven.surefire.booter.SurefireExecutionException: Unable to instantia
te POJO 'class org.apache.synapse.transport.mail.TestFolder'; nested exception i
s java.lang.InstantiationException: org.apache.synapse.transport.mail.TestFolder
; nested exception is org.apache.maven.surefire.testset.TestSetFailedException:
Unable to instantiate POJO 'class org.apache.synapse.transport.mail.TestFolder';
nested exception is java.lang.InstantiationException: org.apache.synapse.transp
ort.mail.TestFolder
org.apache.maven.surefire.testset.TestSetFailedException: Unable to instantiate
POJO 'class org.apache.synapse.transport.mail.TestFolder'; nested exception is j
ava.lang.InstantiationException: org.apache.synapse.transport.mail.TestFolder
java.lang.InstantiationException: org.apache.synapse.transport.mail.TestFolder
at java.lang.Class.newInstance0(Class.java:340)
It seems as if the "not so clever" maven surefire-plugin tries to instantiate a test class which in fact is no test class at all. Surefire blindly follows the "Test*"-naming pattern. At least this applies to the surefire plugin version 2.3 which I use. If I remember correctly someone told me that this is fixed in 2.4 or 2.5. Not sure about that.
What version do you guys use? I was using vanilla Maven 2.0.9. I guess a few people out there should have the same trouble. Wouldn't it be better to rename this file?
For now I used -DskipTests, which was sufficient for me. Just wanted to let you guys know about it.
Regards,
Eric
Re: Build problem
Posted by Ruwan Linton <ru...@gmail.com>.
Eric,
Cool. Nice to hear you got it working.
Thanks,
Ruwan
On Tue, May 6, 2008 at 1:33 PM, Hubert, Eric <er...@jamba.net> wrote:
> Hi Ruwan,
>
>
>
> as I was at home, your assumption has been correct. I was using Windows…
> Ok, I validated this now at work… of course I also used a Windows machine
> for this test now. Works like a charm.
>
>
>
> Thanks,
>
> Eric
>
>
> ------------------------------
>
> *From:* Ruwan Linton [mailto:ruwan.linton@gmail.com]
> *Sent:* Tuesday, May 06, 2008 9:04 AM
> *To:* dev@synapse.apache.org
> *Subject:* Re: Build problem
>
>
>
> Hi Eric,
>
> Assuming you are on Windows, this should be due to the maven profile
> effect (there is a profile for windows in transports pom). I just changed
> that and if you can check it again and let me know that will be perfect..
>
> Thanks,
> Ruwan
>
--
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"
RE: Build problem
Posted by "Hubert, Eric" <er...@jamba.net>.
Hi Ruwan,
as I was at home, your assumption has been correct. I was using
Windows... Ok, I validated this now at work... of course I also used a
Windows machine for this test now. Works like a charm.
Thanks,
Eric
________________________________
From: Ruwan Linton [mailto:ruwan.linton@gmail.com]
Sent: Tuesday, May 06, 2008 9:04 AM
To: dev@synapse.apache.org
Subject: Re: Build problem
Hi Eric,
Assuming you are on Windows, this should be due to the maven profile
effect (there is a profile for windows in transports pom). I just
changed that and if you can check it again and let me know that will be
perfect..
Thanks,
Ruwan
Re: Build problem
Posted by Ruwan Linton <ru...@gmail.com>.
Hi Eric,
Assuming you are on Windows, this should be due to the maven profile effect
(there is a profile for windows in transports pom). I just changed that and
if you can check it again and let me know that will be perfect..
Thanks,
Ruwan
On Tue, May 6, 2008 at 12:28 PM, Hubert, Eric <er...@jamba.net> wrote:
> Hi Andreas,
>
> then this is possibly somehow related to my environment. I had done a
> fresh svn update and after that a mvn clean install. I just tried it again -
> same error.
>
> I will test the same at work in about an hour.
>
> Regards,
> Eric
>
> ________________________________
>
> Von: Andreas Veithen [mailto:andreas.veithen@skynet.be]
> Gesendet: Di 06.05.2008 01:19
> An: dev@synapse.apache.org
> Betreff: Re: Build problem
>
>
>
> Eric,
>
> I corrected the problem yesterday (SVN revision 653167) by adding an
> exclusion pattern. What sources do you use to build Synapse?
>
> Andreas
>
>
> On 06 May 2008, at 00:46, Hubert, Eric wrote:
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
> For additional commands, e-mail: dev-help@synapse.apache.org
>
--
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"
AW: Build problem
Posted by "Hubert, Eric" <er...@jamba.net>.
Hi Andreas,
then this is possibly somehow related to my environment. I had done a fresh svn update and after that a mvn clean install. I just tried it again - same error.
I will test the same at work in about an hour.
Regards,
Eric
________________________________
Von: Andreas Veithen [mailto:andreas.veithen@skynet.be]
Gesendet: Di 06.05.2008 01:19
An: dev@synapse.apache.org
Betreff: Re: Build problem
Eric,
I corrected the problem yesterday (SVN revision 653167) by adding an
exclusion pattern. What sources do you use to build Synapse?
Andreas
On 06 May 2008, at 00:46, Hubert, Eric wrote:
Re: Build problem
Posted by Andreas Veithen <an...@skynet.be>.
Eric,
I corrected the problem yesterday (SVN revision 653167) by adding an
exclusion pattern. What sources do you use to build Synapse?
Andreas
On 06 May 2008, at 00:46, Hubert, Eric wrote:
> Hi all,
>
> today I tried to build synapse and got the following error during
> test execution:
>
> org.apache.maven.surefire.booter.SurefireExecutionException: Unable
> to instantia
> te POJO 'class org.apache.synapse.transport.mail.TestFolder'; nested
> exception i
> s java.lang.InstantiationException:
> org.apache.synapse.transport.mail.TestFolder
> ; nested exception is
> org.apache.maven.surefire.testset.TestSetFailedException:
> Unable to instantiate POJO 'class
> org.apache.synapse.transport.mail.TestFolder';
> nested exception is java.lang.InstantiationException:
> org.apache.synapse.transp
> ort.mail.TestFolder
> org.apache.maven.surefire.testset.TestSetFailedException: Unable to
> instantiate
> POJO 'class org.apache.synapse.transport.mail.TestFolder'; nested
> exception is j
> ava.lang.InstantiationException:
> org.apache.synapse.transport.mail.TestFolder
> java.lang.InstantiationException:
> org.apache.synapse.transport.mail.TestFolder
> at java.lang.Class.newInstance0(Class.java:340)
>
> It seems as if the "not so clever" maven surefire-plugin tries to
> instantiate a test class which in fact is no test class at all.
> Surefire blindly follows the "Test*"-naming pattern. At least this
> applies to the surefire plugin version 2.3 which I use. If I
> remember correctly someone told me that this is fixed in 2.4 or 2.5.
> Not sure about that.
>
> What version do you guys use? I was using vanilla Maven 2.0.9. I
> guess a few people out there should have the same trouble. Wouldn't
> it be better to rename this file?
>
> For now I used -DskipTests, which was sufficient for me. Just wanted
> to let you guys know about it.
>
> Regards,
> Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org
Re: Build problem
Posted by Deepal jayasinghe <de...@gmail.com>.
Do you have the default constructor in your class ?
-Deepal
> Hi all,
>
> today I tried to build synapse and got the following error during test
> execution:
>
> org.apache.maven.surefire.booter.SurefireExecutionException: Unable to
> instantia
> te POJO 'class org.apache.synapse.transport.mail.TestFolder'; nested
> exception i
> s java.lang.InstantiationException:
> org.apache.synapse.transport.mail.TestFolder
> ; nested exception is
> org.apache.maven.surefire.testset.TestSetFailedException:
> Unable to instantiate POJO 'class
> org.apache.synapse.transport.mail.TestFolder';
> nested exception is java.lang.InstantiationException:
> org.apache.synapse.transp
> ort.mail.TestFolder
> org.apache.maven.surefire.testset.TestSetFailedException: Unable to
> instantiate
> POJO 'class org.apache.synapse.transport.mail.TestFolder'; nested
> exception is j
> ava.lang.InstantiationException:
> org.apache.synapse.transport.mail.TestFolder
> java.lang.InstantiationException:
> org.apache.synapse.transport.mail.TestFolder
> at java.lang.Class.newInstance0(Class.java:340)
>
> It seems as if the "not so clever" maven surefire-plugin tries to
> instantiate a test class which in fact is no test class at all.
> Surefire blindly follows the "Test*"-naming pattern. At least this
> applies to the surefire plugin version 2.3 which I use. If I remember
> correctly someone told me that this is fixed in 2.4 or 2.5. Not sure
> about that.
>
> What version do you guys use? I was using vanilla Maven 2.0.9. I guess
> a few people out there should have the same trouble. Wouldn't it be
> better to rename this file?
>
> For now I used -DskipTests, which was sufficient for me. Just wanted
> to let you guys know about it.
>
> Regards,
> Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org