Jump to content
Changes to the Jaspersoft community edition download ×

Jasper Report - Springboot and Java 8 - PCF - java.lang.IllegalArgumentException


vigneshwaran.ganesan
Go to solution Solved by vigneshwaran.ganesan,

Recommended Posts

Hi All,

I am using Jasper Report dependencies with Spring boot to generate reports. It works without any issue in local. After I deploy to PCF getting below error. Can anyone help me and its blocking me.

Line of Exception in the Code - PCF

JasperPrint printedReport = JasperFillManager.fillReport(sourceFileName, parameters, beanColDataSource);
 

Exception

message":"java.lang.IllegalArgumentException: namentat sun.misc.URLClassPath$Loader.findResource(URLClassPath.java:693)ntat sun.misc.URLClassPath.findResource(URLClassPath.java:215)ntat java.net.URLClassLoader$2.run(URLClassLoader.java:569)ntat java.net.URLClassLoader$2.run(URLClassLoader.java:567)ntat java.security.AccessController.doPrivileged(Native Method)ntat java.net.URLClassLoader.findResource(URLClassLoader.java:566)ntat org.springframework.boot.loader.LaunchedURLClassLoader.findResource(LaunchedURLClassLoader.java:58)ntat java.lang.ClassLoader.getResource(ClassLoader.java:1096)ntat net.sf.jasperreports.engine.util.JRResourcesUtil.findClassLoaderResource(JRResourcesUtil.java:569)ntat net.sf.jasperreports.repo.DefaultRepositoryService.getInputStream(DefaultRepositoryService.java:108)ntat net.sf.jasperreports.repo.InputStreamPersistenceService.load(InputStreamPersistenceService.java:45)ntat net.sf.jasperreports.repo.DefaultRepositoryService.getResource(DefaultRepositoryService.java:149)ntat net.sf.jasperreports.repo.RepositoryUtil.findInputStream(RepositoryUtil.java:190)ntat net.sf.jasperreports.repo.RepositoryUtil.getBytesFromLocation(RepositoryUtil.java:206)ntat net.sf.jasperreports.renderers.util.RendererUtil.getNonLazyRenderable(RendererUtil.java:163)ntat net.sf.jasperreports.engine.fill.JRFillImage.evaluateImage(JRFillImage.java:553)ntat net.sf.jasperreports.engine.fill.JRFillImage.evaluate(JRFillImage.java:484)ntat net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:383)ntat net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:506)ntat net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:412)ntat net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:373)ntat net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:234)ntat net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:99)ntat net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:607)ntat net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:405)ntat net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:140)ntat net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:583)ntat net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:929)ntat com.example.util.CommonUtil.createJasperPdf(CommonUtil.java:644)ntat 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...