[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openmrs-dev
Subject:    Re: Class not found running ResourceDocCreatorTest
From:       Lluis Martinez <lluismf () gmail ! com>
Date:       2015-04-06 23:13:34
Message-ID: CAAmjNgYZ9q8-vnBQL8mJVG8oBvFp_nORcsmuh5FAtKdqYuVSrw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Wyclif

Thanks for your answer. Running mvn clean install failed with the same
error.
Anyway, moving the class to another omod worked and I did export the wiki
output which was my goal.

Cheers

On Fri, Apr 3, 2015 at 2:10 AM, Wyclif Luyima <wyclif@openmrs.org> wrote:

> My assumption is that the unit test should be run via maven so that the
> maven placeholders for the versions are replaced, that way the correct
> classes get loaded.
> 
> Wyclif
> 
> On Thu, Apr 2, 2015 at 5:15 PM, Lluis Martinez <lluismf@gmail.com> wrote:
> 
> > Hi Wyclif,
> > 
> > Yes, it was running unit tests on ResourceDocCreatorTest. All its methods
> > have an Ignore annotation, and with good reason.
> > As a workaround, I copied this class to /webservices.rest-omod-1.10 and
> > it worked (but don't ask me why).
> > 
> > Cheers
> > 
> > 
> > 
> > 
> > On Thu, Apr 2, 2015 at 9:33 PM, Wyclif Luyima <wyclif@openmrs.org> wrote:
> > 
> > > Hi Lluis,
> > > 
> > > Are running into this while running unit tests?
> > > 
> > > Wyclif
> > > 
> > > On Wed, Apr 1, 2015 at 5:22 PM, Lluis Martinez <lluismf@gmail.com>
> > > wrote:
> > > 
> > > > I want to add search handlers info to the WS docs, in order to see how
> > > > it works I execute ResourceDocCreatorTest and get the following error:
> > > > 
> > > > java.lang.NoClassDefFoundError: org/openmrs/TestOrder
> > > > at java.lang.Class.getDeclaredConstructors0(Native Method)
> > > > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)
> > > > at java.lang.Class.getDeclaredConstructors(Class.java:1838)
> > > > at
> > > > org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProces \
> > > > sor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:227)
> > > >                 
> > > > ...
> > > > 
> > > > There are 3 versions of TestOrder in the workspace (1.9.2, 1.10.1 and
> > > > 1.11.0) by the way. Ideas?
> > > > 
> > > > Cheers
> > > > 
> > > > --
> > > > OpenMRS Developers: http://om.rs/dev
> > > > Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> > > > Manage your OpenMRS subscriptions: http://om.rs/id
> > > > 
> > > > *** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at
> > > > 19:00 UTC. Please visit
> > > > https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> > > > for details and to make necessary changes.
> > > > 
> > > 
> > > 
> > > 
> > > --
> > > Wyclif Luyima
> > > Regenstrief Institute Inc.
> > > 
> > > Confidentiality Notice: The contents of this message and any files
> > > transmitted with it may contain confidential and/or privileged information
> > > and are intended solely for the use of the named addressee(s).
> > > Additionally, the information contained herein may have been disclosed to
> > > you from medical records with confidentiality protected by federal and
> > > state laws. Federal regulations and State laws prohibit you from making
> > > further disclosure of such information without the specific written consent
> > > of the person to whom the information pertains or as otherwise permitted by
> > > such regulations. A general authorization for the release of medical or
> > > other information is not sufficient for this purpose.
> > > 
> > > If you have received this message in error, please notify the sender by
> > > return e-mail and delete the original message. Any retention, disclosure,
> > > copying, distribution or use of this information by anyone other than the
> > > intended recipient is strictly prohibited.
> > > 
> > > --
> > > OpenMRS Developers: http://om.rs/dev
> > > Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> > > Manage your OpenMRS subscriptions: http://om.rs/id
> > > 
> > > *** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at
> > > 19:00 UTC. Please visit
> > > https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> > > for details and to make necessary changes.
> > > 
> > > To unsubscribe from this group and stop receiving emails from it, send
> > > an email to dev+unsubscribe@openmrs.org.
> > > 
> > 
> > --
> > OpenMRS Developers: http://om.rs/dev
> > Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> > Manage your OpenMRS subscriptions: http://om.rs/id
> > 
> > *** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at
> > 19:00 UTC. Please visit
> > https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> > for details and to make necessary changes.
> > 
> 
> 
> 
> --
> Wyclif Luyima
> Regenstrief Institute Inc.
> 
> Confidentiality Notice: The contents of this message and any files
> transmitted with it may contain confidential and/or privileged information
> and are intended solely for the use of the named addressee(s).
> Additionally, the information contained herein may have been disclosed to
> you from medical records with confidentiality protected by federal and
> state laws. Federal regulations and State laws prohibit you from making
> further disclosure of such information without the specific written consent
> of the person to whom the information pertains or as otherwise permitted by
> such regulations. A general authorization for the release of medical or
> other information is not sufficient for this purpose.
> 
> If you have received this message in error, please notify the sender by
> return e-mail and delete the original message. Any retention, disclosure,
> copying, distribution or use of this information by anyone other than the
> intended recipient is strictly prohibited.
> 
> --
> OpenMRS Developers: http://om.rs/dev
> Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
> Manage your OpenMRS subscriptions: http://om.rs/id
> 
> *** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at
> 19:00 UTC. Please visit
> https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508
> for details and to make necessary changes.
> 
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dev+unsubscribe@openmrs.org.
> 

-- 
OpenMRS Developers: http://om.rs/dev
Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id

*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508 \
for details and to make necessary changes.

To unsubscribe from this group and stop receiving emails from it, send an email to \
dev+unsubscribe@openmrs.org.


[Attachment #5 (text/html)]

<div dir="ltr">Hi Wyclif<div><br></div><div>Thanks for your answer. Running mvn clean \
install failed with the same error.  </div><div>Anyway, moving the class to another \
omod worked and I did export the wiki output which was my \
goal.</div><div><br></div><div>Cheers<br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 3, 2015 at 2:10 AM, \
Wyclif Luyima <span dir="ltr">&lt;<a href="mailto:wyclif@openmrs.org" \
target="_blank">wyclif@openmrs.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>My assumption is that the unit test \
should be run via maven so that the maven placeholders for the versions are replaced, \
that way the correct classes get loaded.<span class="HOEnZb"><font \
color="#888888"><br><br></font></span></div><span class="HOEnZb"><font \
color="#888888">Wyclif<br></font></span></div><div class="HOEnZb"><div \
class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 \
at 5:15 PM, Lluis Martinez <span dir="ltr">&lt;<a href="mailto:lluismf@gmail.com" \
target="_blank">lluismf@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi Wyclif,<div><br></div><div>Yes, it was \
running unit tests on  ResourceDocCreatorTest. All its methods have an Ignore \
annotation, and with good reason.</div><div>As a workaround, I copied this class to \
/webservices.rest-omod-1.10 and it worked (but don&#39;t ask me why).  \
</div><div><br></div><div>Cheers</div><div><br></div><div><br></div><div><br></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 2, 2015 at 9:33 PM, \
Wyclif Luyima <span dir="ltr">&lt;<a href="mailto:wyclif@openmrs.org" \
target="_blank">wyclif@openmrs.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Lluis,<br><br></div>Are running \
into this while running unit tests? <br><br></div>Wyclif<br></div><div \
class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Apr 1, 2015 at \
5:22 PM, Lluis Martinez <span dir="ltr">&lt;<a href="mailto:lluismf@gmail.com" \
target="_blank">lluismf@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div><div dir="ltr">I want to add search handlers info \
to the WS docs, in order to see how it works I execute  ResourceDocCreatorTest and \
get the following error:<div><br></div><div><div>java.lang.NoClassDefFoundError: \
org/openmrs/TestOrder</div><div><span style="white-space:pre-wrap">	</span>at \
java.lang.Class.getDeclaredConstructors0(Native Method)</div><div><span \
style="white-space:pre-wrap">	</span>at \
java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)</div><div><span \
style="white-space:pre-wrap">	</span>at \
java.lang.Class.getDeclaredConstructors(Class.java:1838)</div><div><span \
style="white-space:pre-wrap">	</span>at \
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.dete \
rmineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:227)</div></div><div>...</div><div><br></div><div>There \
are 3 versions of TestOrder in the workspace (1.9.2, 1.10.1 and 1.11.0) by the way. \
Ideas?</div><div><br></div><div>Cheers<span><font \
color="#888888"><br></font></span></div></div></div></div><span><font \
color="#888888">

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at 19:00 UTC. \
Please visit <a href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<span><font color="#888888"><br> \
</font></span></font></span></blockquote></div><span><font color="#888888"><br><br \
clear="all"><br>-- <br><div><span style="background-color:rgb(51,102,255)"><span \
style="color:rgb(255,102,102)"><span \
style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(51,102,255)">Wyclif \
Luyima<br>Regenstrief Institute Inc.<br><br> </span></span></span><span \
style="color:rgb(204,0,0)"><span \
style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span \
style="background-color:rgb(255,255,255)"><span \
style="color:rgb(51,102,255)">Confidentiality  Notice: The contents of this message \
and any files transmitted with it  may contain confidential and/or privileged \
information and are intended  solely for the
 use of the named addressee(s). Additionally, the information contained 
herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations
 and State laws prohibit you from making further
 disclosure of such information without the specific written consent of 
the person to whom the information pertains or as otherwise permitted by
 such regulations. A general authorization for the release of medical or
 other information is not sufficient for
 this purpose.<br>
<br>
If you have received this message in error, please notify the sender by 
return e-mail and delete the original message. Any retention, 
disclosure, copying, distribution or use of this information by anyone 
other than the intended recipient is strictly prohibited.
</span><span><font color="#888888"><span></span></font></span></span></span></span></span></span></div><span><font \
color="#888888"> </font></span></font></span></div><span><font \
color="#888888"><span><font color="#888888">

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at 19:00 UTC. \
Please visit <a href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br>

<p></p>

To unsubscribe from this group and stop receiving emails from it, send an email to <a \
href="mailto:dev+unsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a>.<br> \
</font></span></font></span></blockquote></div><span><font \
color="#888888"><br></font></span></div><span><font color="#888888">

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at 19:00 UTC. \
Please visit <a href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br> \
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div><span \
style="background-color:rgb(51,102,255)"><span style="color:rgb(255,102,102)"><span \
style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span \
style="background-color:rgb(255,255,255)"><span style="color:rgb(51,102,255)">Wyclif \
Luyima<br>Regenstrief Institute Inc.<br><br> </span></span></span><span \
style="color:rgb(204,0,0)"><span \
style="font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><span \
style="background-color:rgb(255,255,255)"><span \
style="color:rgb(51,102,255)">Confidentiality  Notice: The contents of this message \
and any files transmitted with it  may contain confidential and/or privileged \
information and are intended  solely for the
 use of the named addressee(s). Additionally, the information contained 
herein may have been disclosed to you from medical records with 
confidentiality protected by federal and state laws. Federal regulations
 and State laws prohibit you from making further
 disclosure of such information without the specific written consent of 
the person to whom the information pertains or as otherwise permitted by
 such regulations. A general authorization for the release of medical or
 other information is not sufficient for
 this purpose.<br>
<br>
If you have received this message in error, please notify the sender by 
return e-mail and delete the original message. Any retention, 
disclosure, copying, distribution or use of this information by anyone 
other than the intended recipient is strictly prohibited.
</span><span></span></span></span></span></span></span></div>
</div>

<p></p>

-- <br>
OpenMRS Developers: <a href="http://om.rs/dev" \
                target="_blank">http://om.rs/dev</a><br>
Post: <a href="mailto:dev@openmrs.org" target="_blank">dev@openmrs.org</a> | \
Unsubscribe: <a href="mailto:dev%2Bunsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a><br> Manage your OpenMRS \
subscriptions: <a href="http://om.rs/id" target="_blank">http://om.rs/id</a><br>  \
                <br>
*** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at 19:00 UTC. \
Please visit <a href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508" \
target="_blank">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br>

<p></p>

To unsubscribe from this group and stop receiving emails from it, send an email to <a \
href="mailto:dev+unsubscribe@openmrs.org" \
target="_blank">dev+unsubscribe@openmrs.org</a>.<br> \
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
OpenMRS Developers: <a href="http://om.rs/dev">http://om.rs/dev</a><br />
Post: dev@openmrs.org | Unsubscribe: dev+unsubscribe@openmrs.org<br />
Manage your OpenMRS subscriptions: <a href="http://om.rs/id">http://om.rs/id</a><br \
/> &nbsp;<br />
*** ALERT! This group will be moved to OpenMRS Talk effective 10 April 2015 at 19:00 \
UTC. Please visit <a \
href="https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508">https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508</a> \
for details and to make necessary changes.<br />

<p></p>

To unsubscribe from this group and stop receiving emails from it, send an email to <a \
href="mailto:dev+unsubscribe@openmrs.org">dev+unsubscribe@openmrs.org</a>.<br />

--089e0149431882f74105131672aa--


["2015-04-07 01_08_48-C__Windows_system32_cmd.exe.png" (image/png)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic