You are not logged in.
When I try to add script parameter, it prompts me the following error
Error
Unknown entity: net.datenwerke.rs.scriptreport.service.scriptreport.parameter.ScriptParameterDefinition
display error details
java.lang.IllegalArgumentException: Unknown entity: net.datenwerke.rs.scriptreport.service.scriptreport.parameter.ScriptParameterDefinition <br> at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:878) <br> at net.datenwerke.rs.core.service.reportmanager.ReportParameterServiceImpl.persist(ReportParameterServiceImpl.java:74) <br> at net.datenwerke.security.service.eventlogger.aop.PersistEntityEventInterceptor.invoke(PersistEntityEventInterceptor.java:26) <br> at net.datenwerke.rs.core.server.parameters.ParameterRpcServiceImpl.addParameter(ParameterRpcServiceImpl.java:95) <br> at com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:66) <br> at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110) <br> at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38) <br> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <br> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) <br> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) <br> at java.lang.reflect.Method.invoke(Unknown Source) <br> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561) <br> at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) <br> at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110) <br> at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38) <br> at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) <br> at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) <br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) <br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) <br> at net.datenwerke.security.service.security.aop.SecurityCheckInterceptor.invoke(SecurityCheckInterceptor.java:110) <br> at net.datenwerke.gf.service.gwtstacktrace.CatchStacktraceInterceptor.invoke(CatchStacktraceInterceptor.java:38) <br> at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:263) <br> at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:178) <br> at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91) <br> at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62) <br> at com.google.inject.persist.PersistFilter.doFilter(PersistFilter.java:89) <br> at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) <br> at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) <br> at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) <br> at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) <br> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) <br> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) <br> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) <br> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) <br> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503) <br> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) <br> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) <br> at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) <br> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) <br> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) <br> at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070) <br> at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) <br> at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) <br> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) <br> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) <br> at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) <br> at java.lang.Thread.run(Unknown Source) <br>
Offline
Hi Philip,
can you provide me with a more detailed description of what I have to do to reproduce this?
I tried creating a new JasperReport and adding a ScriptParameter, but this seems to be fine.
Unknown entity errors usually mean that there is something wrong with the persistence.xml file.
Although I don't know how this could have happened, can you please verify, that your persistence.xml contains the line:
<class>net.datenwerke.rs.scriptreport.service.scriptreport.parameter.ScriptParameterDefinition</class>
Cheers,
Thorsten