You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Tanvi <ta...@gmail.com> on 2013/03/08 07:08:05 UTC

Service Mix 4.4.2 :: Error while creating Jasper report

Hi,

I am facing an issue while creating a jasper report using service mix 4.4.2.
Maven is used for build and packaging.

I am using 'jasperreports-2.0.5.jar' JAR for creating this report. Thread
when calls the method to create jasper report simply dies without throwing
any error or exception. No error is shown in logs but no processing happens
further. 

After looking for a solution on google, I thought it is because 
- The JAR is legacy and not an OSGI bundle
- It does not use OSGI aware logging 

I tried substrituting JAR with Spring's bundle for jasper
(http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.net.sf.jasperreports&version=2.0.5)

It did not work. Found a solution somewhere like create a fragment of such
non-OSGI JARs and use in your application. What are the steps to create such
fragment?

If not fragment, can anybody help me to resolve this problem?

Thanks in advance,

Regards,
Tanvi



--
View this message in context: http://servicemix.396122.n5.nabble.com/Service-Mix-4-4-2-Error-while-creating-Jasper-report-tp5716066.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Service Mix 4.4.2 :: Error while creating Jasper report

Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,


It's hard to tell what happens without any stacktrace or error
message, obviously.  First of all, have you tried running the same
code from a unit test or a main class, to ensure it works fine without
having OSGi in the mix.  If that works, I would try embedding the
JasperReports JAR and its dependencies inside the bundle and then
creating the report.  That should rule quite a lot of the classloading
issues.  Once that works, just start removing dependencies from the
bundle and adding imports to use shared bundle packages instead (e.g.
for logging).


Regards,

Gert Vanthienen

On Fri, Mar 8, 2013 at 7:08 AM, Tanvi <ta...@gmail.com> wrote:
> Hi,
>
> I am facing an issue while creating a jasper report using service mix 4.4.2.
> Maven is used for build and packaging.
>
> I am using 'jasperreports-2.0.5.jar' JAR for creating this report. Thread
> when calls the method to create jasper report simply dies without throwing
> any error or exception. No error is shown in logs but no processing happens
> further.
>
> After looking for a solution on google, I thought it is because
> - The JAR is legacy and not an OSGI bundle
> - It does not use OSGI aware logging
>
> I tried substrituting JAR with Spring's bundle for jasper
> (http://ebr.springsource.com/repository/app/bundle/version/detail?name=com.springsource.net.sf.jasperreports&version=2.0.5)
>
> It did not work. Found a solution somewhere like create a fragment of such
> non-OSGI JARs and use in your application. What are the steps to create such
> fragment?
>
> If not fragment, can anybody help me to resolve this problem?
>
> Thanks in advance,
>
> Regards,
> Tanvi
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Service-Mix-4-4-2-Error-while-creating-Jasper-report-tp5716066.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.