Why does this exception occur?

See EDIT 2

Hi, I'm shocked at why this exception occurs.


exception

javax.servlet.ServletException: Error instantiating servlet class controllers.Dashboard
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    java.lang.Thread.run(Thread.java:662)
root cause

java.lang.RuntimeException: Uncompilable source code - missing method body, or declare abstract
    DAO.OrderDAO.(OrderDAO.java:68)
    BO.OrderForm.(OrderForm.java:33)
    controllers.Dashboard.(Dashboard.java:23)
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    java.lang.Class.newInstance0(Class.java:355)
    java.lang.Class.newInstance(Class.java:308)
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    java.lang.Thread.run(Thread.java:662)

At first I got this in NetBeans 6.9.1 and continued to search and found this strange error after trying a solution that was not successful, I decided to switch the IDE, so I downloaded Intellij IDE 9 (I still love it) and still got that same exception !! I mean that ... only three classes that do not belong to shared libs are packages DAO, BOand controllers, and they

Now I am lost as the code exists and there are no typos or nothing.


EDIT 1:

DAO.OrderDAO.java, BO.OrderForm.java controllers.OrderSearch.java, , ( ). IntelliJ , Exception, ClassNotFoundException, org.apache.catalina.startup.bootstrap. , PATH, apache-tomcat-6.0. 30, , . ?


2:

NetBeans 6.9.1, ​​ , Runtime , , , !!. , - 1234

+5
4

, , , , , , IntelliJ, . , , , , ... .

0

java.lang.RuntimeException: Uncompilable source code - missing method body, or declare abstract

, , , , , Abstract, , . , , :

  • .

, , 1.

EDIT - . , - API, , . -

at DAO.OrderDAO.(OrderDAO.java:68)
    at BO.OrderForm.(OrderForm.java:33)
    at controllers.OrderSearch.(OrderSearch.java:43)
+5

. , ( ;))

1- . , , , . , IDE .

? maven, IDE? ( Netbeans ( 100 IDE))

. (.jar). .

2- IDE . ( IDEA 9)

. ? .

. , , ​​ , , . , jar - tmp . . tmp .

+1
java.io.NotSerializableException: DTO.ColorDTO

, ColorDTO Serializable

/

java.lang.RuntimeException: Uncompilable source code - missing method body, or declare abstract
at DAO.OrderDAO.<init>(OrderDAO.java:68)
at BO.OrderForm.<init>(OrderForm.java:33)

OrderDAO does not implement all the methods that he must implement, or make it abstract and ensure its implementation in a subclass, finally, everything should be concrete.

0
source

All Articles