Opened 18 years ago

Closed 18 years ago

#183 closed defect (wontfix)

cannot add annotation and new Items

Reported by: lyu@… Owned by: Nicklas Nordborg
Priority: critical Milestone:
Component: core Version:
Keywords: Cc:

Description

Dear all,

After I downloaded the latest source code “2106 Mar 23, 2006”, and compiled on my own machine, then copy all of the classes to the tomcat, I got one compile error, and another thing is still about the annotation.

The compile error is about the net.sf.basedb.util.jep.RawFunction, the default compiler is missed.

The annotation error is, I cannot add the annotation to the sample, I do not know why, since this bug has been fixed up from version 2089, and the 2106 is the latest one, supposed it will be available on 2106. The error message is still about the permission…. At this point, I can add new items, such as sample.

But, the weird thing is: after copying the three classes (DbControl.java, Annotation.java, AnnotationSet.java) from http://lev.thep.lu.se/trac/base/changeset/2098, then compiled them, and replaced such three classes I got from version 2106, I can add the annotations for those items, however, I found that I cannot add new items, such as Samples anymore. Here is the exception:

java.lang.NoSuchMethodError on page /base2/biomaterials/samples/index.jsp

net.sf.basedb.core.DbControl.newItem(Ljava/lang/Class;)Lnet/sf/basedb/core/BasicItem;

...at Sample.getNew(Sample.java:68) ...at org.apache.jsp.biomaterials.samples.index_jsp._jspService(index_jsp.java:155) ...at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) ...at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) ...at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) ...at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) ...at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) ...at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) ...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) ...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) ...at net.sf.basedb.clients.web.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:72) ...at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) ...at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) ...at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) ...at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) ...at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) ...at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) ...at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) ...at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) ...at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) ...at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) ...at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) ...at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) ...at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) ...at java.lang.Thread.run(Thread.java:595)

21 more...

Anyone know what happed?

Thanks a lot!

Longfei

Change History (2)

comment:1 by Nicklas Nordborg, 18 years ago

Please supply the original exceptions. Not the one you got after mixing files from different revisions. We will not look into this error otherwise.

comment:2 by Jari Häkkinen, 18 years ago

Resolution: wontfix
Status: newclosed

This problem is due to mixing of classes from different subversion revisions.

Note: See TracTickets for help on using tickets.