java.lang.NoClassDefFoundError: org/jfree/chart/plot/PlotOrientation

tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0

    Could not initialize class net.sf.jasperreports.charts.type.PlotOrientationEnum

    Stack Overflow | 3 years ago | Mohammed ashraf
    java.lang.NoClassDefFoundError: org/jfree/chart/plot/PlotOrientation
  2. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  3. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Check if you didn't forget to instantiate your topic in the kafka broker.
  6. 0
    samebug tip
    NoClassDefFoundError means java has failed to find a class you're trying to instantiate, look if you've added the class you're trying to instantiate to the dependencies.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    org.jfree.chart.plot.PlotOrientation

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    6 frames
  3. net.sf.jasperreports
    PlotOrientationEnum.<clinit>
    1. net.sf.jasperreports.charts.type.PlotOrientationEnum.<clinit>(PlotOrientationEnum.java:42)
    1 frame
  4. JasperReports
    JRPieChartFactory.createObject
    1. net.sf.jasperreports.engine.base.JRBaseChartPlot.<init>(JRBaseChartPlot.java:76)
    2. net.sf.jasperreports.charts.base.JRBasePiePlot.<init>(JRBasePiePlot.java:71)
    3. net.sf.jasperreports.charts.design.JRDesignPiePlot.<init>(JRDesignPiePlot.java:52)
    4. net.sf.jasperreports.engine.design.JRDesignChart.setChartType(JRDesignChart.java:744)
    5. net.sf.jasperreports.engine.design.JRDesignChart.<init>(JRDesignChart.java:189)
    6. net.sf.jasperreports.charts.xml.JRPieChartFactory.createObject(JRPieChartFactory.java:47)
    6 frames
  5. Commons Digester
    Digester.startElement
    1. org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:397)
    2. org.apache.commons.digester.Digester.startElement(Digester.java:1583)
    2 frames
  6. Java RT
    SAXParserImpl$JAXPSAXParser.parse
    1. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)
    2. com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:749)
    3. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:376)
    4. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2768)
    5. com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
    6. com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
    7. com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
    8. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:846)
    9. com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:775)
    10. com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
    11. com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
    12. com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:628)
    12 frames
  7. Commons Digester
    Digester.parse
    1. org.apache.commons.digester.Digester.parse(Digester.java:1892)
    1 frame
  8. JasperReports
    JasperCompileManager.compileReport
    1. net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243)
    2. net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:230)
    3. net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:218)
    4. net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:172)
    5. net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:156)
    6. net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:171)
    7. net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:448)
    7 frames
  9. logic
    PDFReport.printReport
    1. logic.PDFReport.printReport(PDFReport.java:93)
    1 frame
  10. org.apache.jsp
    Reports_jsp._jspService
    1. org.apache.jsp.Reports_jsp._jspService(Reports_jsp.java:178)
    1 frame
  11. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
    1 frame
  12. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    1 frame
  13. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
    3 frames
  14. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    1 frame
  15. Glassfish Core
    StandardPipeline.invoke
    1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1682)
    2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:318)
    3. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
    4. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:734)
    5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:673)
    5 frames
  16. Glassfish
    WebPipeline.invoke
    1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
    1 frame
  17. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:174)
    2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:357)
    3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:260)
    3 frames
  18. Kernel Classes
    ContainerMapper.service
    1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:188)
    1 frame
  19. Grizzly Server
    HttpServerFilter.handleRead
    1. org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:191)
    2. org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:168)
    3. org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:189)
    3 frames
  20. Grizzly
    AbstractThreadPool$Worker.run
    1. org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
    2. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:288)
    3. org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:206)
    4. org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:136)
    5. org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:114)
    6. org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
    7. org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:838)
    8. org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:113)
    9. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:115)
    10. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:55)
    11. org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:135)
    12. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:564)
    13. org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:544)
    13 frames
  21. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:724)
    1 frame