Method not found exception
Getting exception on javax.net.ssl.SSLsession.getPeerCertificates method not found.
The exception is being thrown from sun.net.www.protocol.https.HttpsClient.b
Project built with JBuilder version 8.
Using Jakarta Tomcat 4.0.4 and J2sdk1.4.0_01
JBuilder does not show the getPeerCertificates method either.
Any idea where the incompatiblity with javax is coming from, and how I might remedy this?
Any help would be appreciated.
probably the ssl implementation from apache is old, go to their site and look for the most recent. www.apache.org
Will
Similar Messages
-
Method Not Found Exception - createinstance
Hi,
I am new to ADF. I add the Iterator to the executables and add the action "createInstance" onto the page data binding definition at the Method call in the unbounded task flow (adf-config.xml). However, everytime, when the flow is upto the method call, it will throw the exception "javax.el.MethodNotFoundException: Method not found: view_adfc_config__methodCall1PageDef.CreateInsert()". I saw the createinsert in the Page data binding definition xml.
Please help, I tried to learn the binding in ADF.Hi,
the method call activity would need to have a PageDef file with this method defined. It is not sufficient to have the method defined in the Pagedef file of a view.
Frank -
Deploying to JBoss - Method not found exception
Hi,
I'm using JDev 10.1.3.0 and trying to deploy a small test application to JBoss 4.0.4. There is a search page with a button binded to the executeWithParams method of a VO which is displayed in a read-only table.
The application runs ok on the embedded OC4J but it doesn't when deployed to the JBoss AS. The problem is that when I click the button a MethodNotFoundException occurs. Here is the stacktrace from the JBoss server log:
ERROR [com.sun.faces.lifecycle.InvokeApplicationPhase] execute: oracle.jbo.uicli.binding.JUCtrlActionBinding.execute(javax.faces.event.ActionEvent)
javax.faces.el.MethodNotFoundException: execute: oracle.jbo.uicli.binding.JUCtrlActionBinding.execute(javax.faces.event.ActionEvent)
at com.sun.faces.el.MethodBindingImpl.method(MethodBindingImpl.java:206)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:124)
at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:204)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
2006-11-22 13:20:36,124 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[IndependentVO].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
javax.faces.el.MethodNotFoundException: execute: oracle.jbo.uicli.binding.JUCtrlActionBinding.execute(javax.faces.event.ActionEvent)
at com.sun.faces.el.MethodBindingImpl.method(MethodBindingImpl.java:206)
at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:124)
at oracle.adf.view.faces.component.UIXComponentBase.__broadcast(UIXComponentBase.java:1079)
at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:204)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
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.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Any suggestions?
Thanks,
YoelDid you install the ADF Runtime libraries on the
JBoss instance?Yes. I suspected it could be that but I checked it and JDev says that the version installed on the server is the same as the one the installer is about to install.
Did you follow the ADF Developer Guide deployment
chapter:
http://download.oracle.com/docs/html/B25947_01/deploym
ent_topics007.htm#CIHFCJJCYes. I followed it to the letter. Hence, I don't know what to do.
Thanks for answering.
Yoel -
Hi Team,
Problem : we are getting below exception on vs-2012 "Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'"
Could you please help me why we are getting this Error?
Note : Im not using Exportstream method , just using only Export method (refer code sample) for exporting Crystal report.
EnvironMent Details :
Crystal Report Version : CRforVS_13_0_5.exe
(SAP Crystal Reports runtime engine for >net Framework (64-bit)
SAP crystal Reports ,version for Microsoft Visual studio)
OS -Windows 7 -64 BIT
RAM : 16 GB
code where i Got the Exception
dfdoFile.DiskFileName = Path.Combine(reportPath, reportFileName);
expOptions.ExportDestinationType = ExportDestinationType.DiskFile;
expOptions.ExportFormatType = ExportFormatType.CrystalReport;
expOptions.DestinationOptions = dfdoFile;
objReport.Export(expOptions);
below is stack trace :
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)
at Medtech.BaseObjects.Report.CreatePDF(ReportClass objReport, DataView objRptDataView, String printerName, PrinterPaperOrientation
i have attached Screenshot for your reference ,Hi Sandeep
You are using Service Pack 5 (Crystal Report Version : CRforVS_13_0_5.exe). I'd like you to update your install to SP 13:
SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
and test.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow me on Twitter -
I am getting this exception when I'm adding a Sales Order with the DI API:
Method not found: 'SAPbobsCOM.Document_SpecialLines SAPbobsCOM.IDocuments.get_SpecialLines()'
I am not using this interface in any of my code so I'm not understanding from where this error is coming, the same code works well with other companies, I have this problem only with 1 of my clients.
Any Idea??/Dear Yuval,
Please do remember to check the DI version and check if it matches the B1 version.
Also try removing the folder "SM_OBD_DLL" which stores the temporary DI files.
If it does not help, please let us know the exact B1 version and the DI version and also the code with which you are able to reproduce the issue.
Regards
ARshdeep -
Java File not Found Exceptions and other errors?
Hello experts, an issue on our Portal has caught my attention. Every time the J2EE Engine is restarted, a large amount of errors are written on our Trace files. When looking at the trace files, I see that most errors are Java IO File not Found Exceptions. For example:
[EXCEPTION]
#1#java.io.FileNotFoundException: ./log/system/database.1.log (No such file or directory (errno:2))
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
#1.5 #0012799E98F6000F0000001800003A9E00044A5F2B9CCDEC#1207672520886#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/system/server.1.log (No such file or directory (errno:2))
[EXCEPTION]
#1#java.io.FileNotFoundException: ./log/system/server.1.log (No such file or directory (errno:2))
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
#1.5 #0012799E98F6000F0000001900003A9E00044A5F2B9CE7BC#1207672520893#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/system/security.1.log (No such file or directory (errno:2))
[EXCEPTION]
#1#java.io.FileNotFoundException: ./log/system/security.1.log (No such file or directory (errno:2))
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
#1.5 #0012799E98F6000F0000001D00003A9E00044A5F2BE5C172#1207672525667#com.sap.engine.services.log_configurator.archive.ArchivingThread##com.sap.engine.services.log_configurator.archive.ArchivingThread######c3cfd920058911dd8ace0012799e98f6#SAPEngine_System_Thread[impl:5]_24##0#0#Error##Java###./log/applications.1.log (No such file or directory (errno:2))
[EXCEPTION]
#1#java.io.FileNotFoundException: ./log/applications.1.log (No such file or directory (errno:2))
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.archiveTask(ArchivingThread.java:77)
at com.sap.engine.services.log_configurator.archive.ArchivingThread.run(ArchivingThread.java:40)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
In summary, the system cannot find the files server.1.log, security.1.log, database.1.log and applications.1.log. I tried manually adding these files (I created them on my computer and left them empty) on the path written, but it did not work, for some reason they are deleted.
Another error that is happening during restart of the engine is the following:
#1.5 #0012799E98F6001B0000002000003A9E00044A5F2BCC28D7#1207672523990#com.sap.tc.logging##com.sap.tc.logging.APILogger.FileLog[setFormatter()]######c3c3f240058911dd9ed80012799e98f6#SAPEngine_System_Thread[impl:5]_10##0#0#Warning##Java###Attempting to change a formatter on active log ./log/system/httpaccess/responses.trc. reset() method must be called first.#1#java.lang.Exception: Attempting to change a formatter on active log ./log/system/httpaccess/responses.trc. reset() method must be called first.
at com.sap.tc.logging.FileLog.setFormatter(FileLog.java:448)
at com.sap.engine.services.log_configurator.admin.LogConfigurator.adjustConfiguration(LogConfigurator.java:795)
at com.sap.engine.services.log_configurator.admin.LogConfigurator.applyConfiguration(LogConfigurator.java:1535)
at com.sap.engine.services.log_configurator.LogConfiguratorContainer.prepareStart(LogConfiguratorContainer.java:545)
at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:223)
at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:176)
at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:250)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationLocalAndWait(DeployServiceImpl.java:4450)
at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationsInitially(DeployServiceImpl.java:2610)
at com.sap.engine.services.deploy.server.DeployServiceImpl.clusterElementReady(DeployServiceImpl.java:2464)
at com.sap.engine.services.deploy.server.ClusterServicesAdapter.containerStarted(ClusterServicesAdapter.java:42)
at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.processEvent(ContainerEventListenerWrapper.java:144)
at com.sap.engine.core.service630.container.AdminContainerEventListenerWrapper.processEvent(AdminContainerEventListenerWrapper.java:19)
at com.sap.engine.core.service630.container.ContainerEventListenerWrapper.run(ContainerEventListenerWrapper.java:102)
at com.sap.engine.frame.core.thread.Task.run(Task.java:64)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)
Any ideas?Nothing really seemed to work when trying to solve this problem, just suddenly it stopped appearing. It might have been our installation of SPS 15, since it was around that time that the error went away.
-
Not able to start the remote server - class not found exception
All,
I am quite new to RMI programming, although i am an experienced java programmer. I am facing a problem in starting the remote server program which i wrote for RMI. I am getting class not found exception for "stub" class eventhough the class is in the classpath.
Following is the error console:
cmd> java -classpath "D:\Eclipse_WorkSpaces\WS2\RMITests\classes" MyServerImplementation
GetNames error: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:396)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
at java.rmi.Naming.rebind(Naming.java:160)
at MyServerImplementation.main(MyServerImplementation.java:21)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: MyServerImplementation_Stub
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: MyServerImplementation_Stub
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:434)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:165)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
... 12 morePLEASE ADVISE HOW TO RESOLVE THIS...
Following are my classes:
MyRemoteInterface.java
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface MyRemoteInterface extends Remote {
public String[] getNames() throws RemoteException;
public class MyServerImplementation extends UnicastRemoteObject implements
MyRemoteInterface {
public MyServerImplementation()throws RemoteException{
super();
public String[] getNames() throws RemoteException{
return new String[]{"Name1","Name2","Name3","Name4"};
public static void main(String args[]) {
try {
// Create an object of the HelloWorldServer class.
MyRemoteInterface obj = new MyServerImplementation();
// Bind this object instance to the name "HelloServer".
Naming.rebind("rmi://localhost:1985/GetNames", obj);
System.out.println("GetNames bound in registry");
catch (Exception e) {
System.out.println("GetNames error: " + e.getMessage());
e.printStackTrace();
public class MyRMIClient {
*@param args*
public static void main(String[] args) {
try {
MyRemoteInterface remObj = (MyRemoteInterface) Naming.lookup("rmi://localhost:1985/GetNames");
System.out.println("Names are "+remObj.getNames());
catch(Exception e) {
System.out.println("Problem encountered accessing remote object "+e);
}That's a remote exception coming from the registry. You need to learn to recognize remote exceptions and their source, it's a mjaor source of confusion in RMI.
In this case it's the registry that can't find the stub class.
The stub class needs to be in the CLASSPATH of (i) the Registry and (ii) the client as well. Ditto the remote interface; ditto any application classes it refers to, and so on until closure.
The easiest way to achieve (i) is to start it in the server's JVM, with LocateRegistry.createRegistry(). -
Method not found when displaying report in viewer CR Basic for VS 2008
I searched and couldn't find anything regarding this. When I try to display a report in the CrystalReportViewer, I get the following error message:
method not found: 'Void CrystalDecisions.Shared.PageRender.set_ExceptionWindowTitle(System.String)'
If I call PrintToPrinter for the report, it prints exactly as expected with no errors. The report viewer control is on a separate generic form (since I have many different reports) and the report is passed to that form after it has been generated.
I can't find any information regarding this error either on these support forums, or anywhere else on the internet. I've tried installing the latest service pack and also removing and re-adding teh crystal reports references to my project without any change.
Thanks for any help you can provide.Ok, I tried a completely fresh install of Visual Studio 2008 on a brand new Windows XP machine, same result. I tried to do this on another developer's machine (who also has Visual Studio 2008 Professional), which resulted in this error when trying to load the ReportViewer (sorry for the long text). It mentions something about redirecting to version 12 of crystal reports in the error message, which is strange because my project references 10.5, and I don't have crystal reports 12, which as I understand is the full retail version of Crystal reports 2008. Any ideas?
A first chance exception of type 'System.IO.FileNotFoundException' occurred in ICE.exe
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>ICE.exe</AppDomain><Exception><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.</Message><StackTrace> at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs) in C:\_ICEDOTNET\ICE\Forms\frmPO.vb:line 2545
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at ICE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81</StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' ---&gt; System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
=== Pre-bind state information ===
LOG: User = SAGENET\aingraham
LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
(Fully-specified)
LOG: Appbase = file:///C:/_ICEDOTNET/ICE/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : ICE, Version=1.0.0.40, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\_ICEDOTNET\ICE\bin\Debug\ICE.exe.Config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Redirect found in application configuration file: 10.5.3700.0 redirected to 12.0.2000.0.
LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.EXE.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs) in C:\_ICEDOTNET\ICE\Forms\frmPO.vb:line 2545
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at ICE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
</ExceptionString><InnerException><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.</Message><StackTrace> at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at ICE.My.MyApplication.Main(String[] Args)
</StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
=== Pre-bind state information ===
LOG: User = SAGENET\aingraham
LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
(Fully-specified)
LOG: Appbase = file:///C:/_ICEDOTNET/ICE/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : ICE, Version=1.0.0.40, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\_ICEDOTNET\ICE\bin\Debug\ICE.exe.Config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Redirect found in application configuration file: 10.5.3700.0 redirected to 12.0.2000.0.
LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.EXE.
LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
</ExceptionString></InnerException></Exception></TraceRecord> -
After install SharePoint 2013 SP 1, I have a broken list Workflows.
The logs contants the following error:
05/13/2014 14:49:03.86 w3wp.exe (0x2FB4) 0x0774 SharePoint Foundation
DistributedCache air4g
Monitorable Token Cache: Failed to initialize SPDistributedSecurityTokenCache Exception: 'System.MissingMethodException: Method not found: 'Void Microsoft.ApplicationServer.Caching.DataCacheFactoryConfiguration.set_DataCacheServiceAccountType(Microsoft.ApplicationServer.Caching.DataCacheServiceAc
countType)'.
at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()
at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData)
at
Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow)
at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCacheInitializer.Init(Object state)'.
As I understand, I have to install some update in the system, but windows update don't show any available updates.
Any ideas?Hi,
According to your post, my understanding is that you got a broken list Workflows after install SharePoint 2013 SP1.
I recommend to check is that your cachecluster is up and running through:
Get-CacheHostConfig -ComputerName $env:computername -CachePort 22233
when your cache is up and running, run the following 2 commands:
Remove-SPDistributedCacheServiceInstance
Add-SPDistributedCacheServiceInstance
For more information, you can refer to:
Distrubited Cache in SharePoint 2013
SharePoint 2013 - Distributed Cache: ErrorCode ERRCA0017 SubStatus ES0006 e ES0001
Replacing missing named caches to a SharePoint Distributed Cache cluster
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Hi ,
I created simple app in ADF11g production version.this is working fine in Jdev IDE.
In my application two pages are there.in first page just ADF ROF is there.there youcan see the rows in a dept table thru navigation contrlos.and a submit button to navigate to next page.in second page ,i have createinsert button,delete,commit,rollback buttons.and abutton to navigate to first page.
I deployed the EAR successfully to Extervnal WLS10.3while testing it from Browser,
First i got first row in my table along with Navigation contrlos and submit button of first page in the browser.when i am clicking on next button(to move to next row) it is giving the following error in information box.
Method not found: Next.execute(javax.faces.event.ActionEvent).
And the WLS server domain error log is:
Oct 31, 2008 10:00:09 AM EDT netuix Warning BEA-423420 Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DiagnosticsViewDomainLogTablePage&DiagnosticsViewDomainLogTablePortlethandle=com.bea.console.handles.LogDispatchHandle%28%22AdminServer%3BDomainLog%22%29.
Oct 31, 2008 10:00:41 AM EDT oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl Warning ADFC-54008 ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
Oct 31, 2008 10:00:44 AM EDT HTTP Error BEA-101017 [weblogic.servlet.internal.WebAppServletContext@2767c8 - appName: 'sailu', name: 'department_Application-viewcontroller-context-root', context-path: '/department_Application-viewcontroller-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1f9449a[ GET /department_Application-viewcontroller-context-root/faces/Depvue1.jspx HTTP/1.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: ADMINCONSOLESESSION=G65pJLNKGrn9cqWKT2MYJNQThDyGwPhbTyhYv6G0JWf5GpbTyWB2!590494889 ]] Root cause of ServletException. java.lang.IllegalStateException: Cannot forward a response that is already committed at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:475) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:143) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189) at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:188) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:652) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:243) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Oct 31, 2008 10:00:46 AM EDT oracle.adf.share.security Warning BEA-000000 Unable to locate the credential for key Connection1 in F:\oracleWls\user_projects\domains\sailubase_domain\config\oracle.
Oct 31, 2008 10:00:46 AM EDT oracle.adf.share.jndi.ReferenceStoreHelper Warning BEA-000000 Incomplete connection information
Oct 31, 2008 10:00:52 AM EDT oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator Error BEA-000000 Server Exception during PPR, #1 javax.servlet.ServletException: Method not found: Next.execute(javax.faces.event.ActionEvent) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) javax.faces.el.EvaluationException: Method not found: Next.execute(javax.faces.event.ActionEvent) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1226) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:640) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:275) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Oct 31, 2008 10:01:32 AM EDT netuix Warning BEA-423420 Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DiagnosticsViewDomainLogTablePage&DiagnosticsViewDomainLogTablePortlethandle=com.bea.console.handles.LogDispatchHandle%28%22AdminServer%3BDomainLog%22%29.
And in this page when i am clicking on submit button to navigate to second page,it is not going to second page .it is in first page only.
Can you tell me about this error and any changes to do for my code to get run my app on browser.
I appreciate your help and time.Hi Frank,
now my problem solved .just i created one more application newly and deployed it on External WLS.
Now i am able to see all the rows in my DEPT table in my first page of app thru navigation contrlos.
In the same way i am able to see all rows in second page also.and also able to edit the rows thru commit,delete buttons.and able to insert the rows also in second page.
But the submit button to go from page1 to page2 is not working.and also the submit button from page 2 to page1 not working.
I am giving the following in my URL:
http://localhost:7001/Dep1wlsApplication1-ViewController-context-root/faces/view1.jspx
http://localhost:7001/Dep1wlsApplication1-ViewController-context-root/faces/view2.jspx
What i have to do in order to go from first page to second and second to first.in my IDE i am able to go.
Is anything i have to change in my URL>
Plz suggest me. -
Method not found: 'Void National Instruments.LabVIEW.Interop.LV Runtime.throw MissingDependencyException()'.
My colleague created a Labview DLL for me to use in .NET.
I have tried getting this DLL to work in 3.5 framework however it only worked on framework 2.0.
I recently tried again and now it will not work in framework 2.0 or any available frameworks.
He is using Labview 2011.
I am a little baffled as to how the application just stopped working. The National Instruments Runtime I am using is Labview 2011, version 1.1.0.0. The labview dll he gave me is using 1.1.0.0 as well. I have tried using 1.0.0.0 and I get an error saying there is a mismatch.
In addition, for some reason I was never successful in making this work in 3.5, and now I can't make it work in 2.0 either.
Any help is greatly appreciated. I have tried re-installing the runtime engine, tried different versions like labview 2013 but no luck...
Everything works except when I call the dll procedure:
LabVIEWExports.AxBClusterArrays(out ERR, out OUTDLL, INDLL);
My Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using NationalInstruments.LabVIEW.Interop;
using InteropAssembly;
namespace WindowsFormsApplication1
public partial class Form1 : Form
public Form1()
InitializeComponent();
private void Form1_Load(object sender, EventArgs e)
InteropAssembly.LVCluster_1 OUTDLL = new InteropAssembly.LVCluster_1();
InteropAssembly.LVCluster_2 INDLL = new InteropAssembly.LVCluster_2();
double[] TestA = new double[1];
double[] TestB = new double[1];
for (int runs = 0; runs < 1; runs++)
TestA[runs] = 1;
TestB[runs] = 1;
INDLL.A = TestA;
INDLL.B = TestB;
NationalInstruments.LabVIEW.Interop.ErrorCluster ERR = new NationalInstruments.LabVIEW.Interop.ErrorCluster();
MessageBox.Show(NationalInstruments.LabVIEW.Interop.FrameworkVersion.Fx35.ToString());
try
//LabVIEWExports LVE = new LabVIEWExports()
LabVIEWExports.AxBClusterArrays(out ERR, out OUTDLL, INDLL);
catch (Exception f)
MessageBox.Show(f.Message.ToString());Figured it out, I thought we where using Labview 2011, however it was Labview 2011 SP1.
Thus i had to install the runtime envioment 2011 SP1.
Regards,
ADL -
I am trying to use Coded UI record and play back for a web application. If I create a new solution and a project and record and play back, it works fine.
But when I try to add a new Coded UI project to an existing solution and try to the record and play back, the play back fails with the following error:
Test Name: Login1
Test FullName: Test.LoginNS.Login1
Test Source: c:\CodedUITestProject1\Test\Login.cs : line 29
Test Outcome: Failed
Test Duration: 0:00:06.0481823
Result Message:
Test method TestWebUI.LoginNS.Login1 threw exception:
System.MissingMethodException: Method not found: 'Int32 Microsoft.VisualStudio.TestTools.UITest.Extension.UITestUtilities.get_IEVersion()'.
I looked at the version of the dll "Microsoft.VisualStudio.TestTools.UITest.Extension" and its 11.0.
Any pointers or help would be really appreciated.Hi singhguru87,
Thanks for posting in the MSDN forum.
>>If I create a new solution and a project and record and play back, it works fine.
>>But when I try to add a new Coded UI project to an existing solution and try to the record and play back, the play back fails...
The real issue is that whether there are other projects in your existing solution, if so, how about unloading the other projects one by one? So we could know that whether other projects impact this coded UI test project.
Or you could take a backup for your solution , and then copy other projects from existing one to your new solution which works well, how about the results?
Please compare the new coded UI test code with the previous new one, do you make sure that they have the same code?
Please also compare the project property like .NET Framework version and Platform target (Any CPU/X86/X64).
If still no help, please collect the detailed coded UI test log, maybe you could get more useful information.
https://msdn.microsoft.com/en-us/library/jj159363.aspx?f=255&MSPPError=-2147217396
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
SetJPEGEncodeParam method not found in JPEGImageEncoder jdk 1.5 and jdk 1.6
Hi,
We are group of students working on college project.
We want to capture webcam and show stream on screen.
We are using JMF and class JPEGImageEncoder.
Here we are getting setJPEGEncodeParam method not found error.
Please see detail error message and source code attached below.
Thanks in advance.
Regards,
Vinayak & Surendra
// Error and Warnings
SwingCapture.java:125: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
^
SwingCapture.java:125: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
^
SwingCapture.java:126: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
^
SwingCapture.java:128: cannot find symbol
symbol : method setJPEGEncodeParam(com.sun.image.codec.jpeg.JPEGEncodeParam)
location: class com.sun.image.codec.jpeg.JPEGImageEncoder
encoder.setJPEGEncodeParam(param);
^
1 error
3 warnings
// Source code
import javax.swing.*;
import javax.swing.event.*;
import java.io.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.util.*;
import javax.media.control.*;
import javax.media.protocol.*;
import java.util.*;
import java.awt.*;
import java.awt.image.*;
import java.awt.event.*;
import com.sun.image.codec.jpeg.*;
public class SwingCapture extends Panel implements ActionListener
public static Player player = null;
public CaptureDeviceInfo di = null;
public MediaLocator ml = null;
public JButton capture = null;
public Buffer buf = null;
public Image img = null;
public VideoFormat vf = null;
public BufferToImage btoi = null;
public ImagePanel imgpanel = null;
public SwingCapture()
setLayout(new BorderLayout());
setSize(320,550);
imgpanel = new ImagePanel();
capture = new JButton("Capture");
capture.addActionListener(this);
String str1 = "vfw:Logitech USB Video Camera:0";
String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
di = CaptureDeviceManager.getDevice(str2);
ml = di.getLocator();
try
player = Manager.createRealizedPlayer(ml);
player.start();
Component comp;
if ((comp = player.getVisualComponent()) != null)
add(comp,BorderLayout.NORTH);
add(capture,BorderLayout.CENTER);
add(imgpanel,BorderLayout.SOUTH);
catch (Exception e)
e.printStackTrace();
public static void main(String[] args)
Frame f = new Frame("SwingCapture");
SwingCapture cf = new SwingCapture();
f.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
playerclose();
System.exit(0);}});
f.add("Center",cf);
f.pack();
f.setSize(new Dimension(320,550));
f.setVisible(true);
public static void playerclose()
player.close();
player.deallocate();
public void actionPerformed(ActionEvent e)
JComponent c = (JComponent) e.getSource();
if (c == capture)
// Grab a frame
FrameGrabbingControl fgc = (FrameGrabbingControl)
player.getControl("javax.media.control.FrameGrabbingControl");
buf = fgc.grabFrame();
// Convert it to an image
btoi = new BufferToImage((VideoFormat)buf.getFormat());
img = btoi.createImage(buf);
// show the image
imgpanel.setImage(img);
// save image
saveJPG(img,"c:\\test.jpg");
class ImagePanel extends Panel
public Image myimg = null;
public ImagePanel()
setLayout(null);
setSize(320,240);
public void setImage(Image img)
this.myimg = img;
repaint();
public void paint(Graphics g)
if (myimg != null)
g.drawImage(myimg, 0, 0, this);
public static void saveJPG(Image img, String s)
BufferedImage bi = new BufferedImage(img.getWidth(null),
img.getHeight(null), BufferedImage.TYPE_INT_RGB);
Graphics2D g2 = bi.createGraphics();
g2.drawImage(img, null, null);
FileOutputStream out = null;
try
out = new FileOutputStream(s);
catch (java.io.FileNotFoundException io)
System.out.println("File Not Found");
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
param.setQuality(0.5f,false);
encoder.setJPEGEncodeParam(param);
try
encoder.encode(bi);
out.close();
catch (java.io.IOException io)
System.out.println("IOException");JPEGImageEncoder isn't a JMF class...so this isn't a JMF question. You need to go to the appropriate forum, which would be Java2D, I believe.
Also, is there a specific reason you're not just capturing from your web camera directly? -
UnsatisfiedLinkError, Load Library Successfully, Native Method Not Found
I am using JNI to call a ".dll" file I made on windows.
I got the exception:
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: com.aspectgaming.core.io.JniInnocore.Dpci.waitEvent(Ljava/lang/Object;J)I
at com.aspectgaming.core.io.JniInnocore.Dpci.waitEvent(Native Method)
at com.aspectgaming.core.io.JniInnocore.IDLPThread.run(IDLPThread.java:19)
at java.lang.Thread.run(Unknown Source)
The code for loading c dll library:
URL url = Thread.currentThread().getContextClassLoader().getResource("");
String baseClassPath = url.getPath();
System.load(baseClassPath "com/aspectgaming/libjnidpcicore.dll");+
The ".dll" file is already loaded, because when I changed the dll file name to any other ones, a "library file not found" exception will be caught.
The problem is Dpci.waitEvent and all the native methods could not be found.
I used a PE viewer to view the dll exports I got:
Export table
Characteristics=0, TimeDateStamp=1237366066, MajorVersion=0, MinorVersion=0, Name=36994, Base=1, NumberOfFunctions=9, NumberOfNames=9, AddressOfFunctions=36904, AddressOfNames=36940, AddressOfNameOrdinals=36976,
TimeDateStamp:Wed Mar 18 16:47:46 GMT+08:00 2009
Java_com_aspectgaming_core_io_JniInnocore_Dpci_getEventName@12 (Ordinal: 1, Entry Point RVA: 147ah (5,242))
Java_com_aspectgaming_core_io_JniInnocore_Dpci_getNumOfEvents@8 (Ordinal: 2, Entry Point RVA: 11a5h (4,517))
Java_com_aspectgaming_core_io_JniInnocore_Dpci_getNumOfInputPorts@12 (Ordinal: 3, Entry Point RVA: 1789h (6,025))
Java_com_aspectgaming_core_io_JniInnocore_Dpci_getSramSize@8 (Ordinal: 4, Entry Point RVA: 1190h (4,496))
Java_com_aspectgaming_core_io_JniInnocore_Dpci_readEvent@12 (Ordinal: 5, Entry Point RVA: 11bah (4,538))
Java_com_aspectgaming_core_io_JniInnocore_Dpci_readPort@12 (Ordinal: 6, Entry Point RVA: 17a7h (6,055))
Java_com_aspectgaming_core_io_JniInnocore_Dpci_waitEvent@20 (Ordinal: 7, Entry Point RVA: 14b8h (5,304))
Java_com_aspectgaming_core_io_JniInnocore_Dpci_waitIOPort@24 (Ordinal: 8, Entry Point RVA: 17dbh (6,107))
Java_com_aspectgaming_core_io_JniInnocore_Dpci_writePort@16 (Ordinal: 9, Entry Point RVA: 182ch (6,188))
The java class "Dpci" is exactly in this package : com.aspectgaming.core.io.JniInnocore;
I compiled it by gcc on linux as a ".so" file and everything is working on linux.
On windows I am compiling this by Mingw gcc.
Here is the make file on Windows which is used by Mingw32-make:
dpci_core:
gcc -o ../../../java/com/aspectgaming/libjnidpcicore.dll -shared -IC:\jdk1.6.0_10\include -IC:\jdk1.6.0_10\include\win32 -I'D:\Program Files\Innocore Gaming Ltd\DirectPCI SDK & Run-time\include' dpci_core.c libdpci_static.lib
dpci_core.c is my code file and libdpci_static.lib is the library that my c dll will depend on.
Any thought to this UnsatisfiedLinkError exception problem?
Thanks!I recompile my codes under visual c++ 2008 express on Windows XP professional, and I have already got rid of this problem.
But when I move the compiled java jar application to windows xp embedded edition, an exception will be caught:
C:\AspectGamingCore>java -jar Aspect.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\AspectGamingCore\l
ib\libjnidpcicore.dll: This application has failed to start because the applicat
ion configuration is incorrect. Reinstalling the application may fix this proble
m
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.aspectgaming.core.io.JniInnocore.Dpci.loadLibraryOnWindows(Unknow
n Source)
at com.aspectgaming.core.io.JniInnocore.DpciTest.main(Unknown Source)
I don't know if there is any compatible problem bewteen xp and xpe but one possible reason is that xpe may be lack of some dll files like msvcr90.dll.
So I tried to compile the dll as static library in vc++2008, but this does not run even on my winxp professional:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\AspectGamingCore\l
ib\libjnidpcicore.dll: %1 is not a valid Win32 application
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.aspectgaming.core.io.JniInnocore.Dpci.loadLibraryOnWindows(Unknow
n Source)
at com.aspectgaming.core.io.JniInnocore.DpciTest.main(Unknown Source)
Could JNI call a c static library? Why it says "not a valid Win32 application"? -
JSF newbie question - ServletException - Method not found
I just started learning JSF (and JSP) by following the tutorial:
JSF for nonbelievers: Clearing the FUD about JSF
http://www-128.ibm.com/developerworks/library/j-jsf1/
I'm getting a ServletException and I'm not sure why. Instead of starting the tutorial over, I'd like to learn what I'm doing wrong.
The exception is:
exception
javax.servlet.ServletException: Method not found: [email protected]()
root cause
javax.el.MethodNotFoundException: Method not found: [email protected]()In the calculator.jsp page (a simple page with two form fields), I noticed that when I type CalcBean., my IDE (NetBeans) only autocompletes the class variables and neither of the methods (add and multiply). I quickly searched and someone suggested restarting the server. This did not fix my problem. I must be doing something completely wrong or I missed something in the tutorial. If you don't mind, please read the simple files below and see if you can spot anything wrong. Please keep in mind this is my first time using JSF (and JSP for that matter). If you can suggest a better newbie tutorial, please do! Thanks
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
index.jsp
</welcome-file>
</welcome-file-list>
</web-app>
faces-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- =========== FULL CONFIGURATION FILE ================================== -->
<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<description>
The "backing file" bean that backs up the calculator webapp
</description>
<managed-bean-name>CalcBean</managed-bean-name>
<managed-bean-class>secondapp.controller.CalcBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/calculator.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/results.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
secondapp.controller.CalcBean.java
package secondapp.controller;
import secondapp.model.Calculator;
* @author Jonathan
public class CalcBean {
private int firstNumber;
private int secondNumber;
private int result;
private Calculator calculator;
/** Creates a new instance of CalcBean */
public CalcBean() {
setFirstNumber(0);
setSecondNumber(0);
result = 0;
setCalculator(new Calculator());
public String add(int a, int b) {
result = calculator.add(a,b);
return "success";
public String multiply(int a, int b) {
result = calculator.multiply(a,b);
return "success";
// <editor-fold desc=" Accessors/Mutators ">
public int getFirstNumber() {
return firstNumber;
public void setFirstNumber(int firstNumber) {
this.firstNumber = firstNumber;
public int getSecondNumber() {
return secondNumber;
public void setSecondNumber(int secondNumber) {
this.secondNumber = secondNumber;
public int getResult() {
return result;
public void setCalculator(Calculator calculator) {
this.calculator = calculator;
// </editor-fold>
secondapp.model.Calculator
package secondapp.model;
* @author Jonathan
public class Calculator {
/** Creates a new instance of Calculator */
public Calculator() {
public int add(int a, int b) {
return a+b;
public int multiply(int a, int b) {
return a*b;
calculator.jsp
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
<head><title>Calculator Test</title></head>
<body bgcolor="white">
<h2>My Calculator</h2>
<f:view>
<h:form id="calcForm">
<h:panelGrid columns="3">
<h:outputLabel value="First Number" for="firstNumber" />
<h:inputText id="firstNumber" value="#{CalcBean.firstNumber}" required="true" />
<h:message for="firstNumber" />
<h:outputLabel value="Second Number" for="secondNumber" />
<h:inputText id="secondNumber" value="#{CalcBean.secondNumber}" required="true" />
<h:message for="secondNumber" />
</h:panelGrid>
<h:panelGroup>
<h:commandButton id="submitAdd" action="#{CalcBean.add}" value="Add" />
<h:commandButton id="submitMultiply" action="#{CalcBean.multiply}" value="Multiply" />
</h:panelGroup>
</h:form>
</f:view>
</body>
</html>In the future, please add some line breaks so I don't have to scroll horizontally to read your post.
The problem is that the CalcBean.add/.multiply method is requiring two parameters. This method should be parameter-less. When talking about action methods, they should return String and not take any parameters.
So, remove the parameters. You collect a firstNumber and a secondNumber from the user. These are the numbers you want to add (or multiply). Use those values (instead of the parameters) to calculate the result.
The code changes aren't too complicated. I'd write them out for you, but you seem interested in learning (which is great by the way!). Let me know if you need more help on this.
CowKing
ps - I see more problems with the code, and I haven't given you all the answers. I know, I'm mean. You'll learn better if you try to fix things on your own first. I've just given you enough info to overcome the immediate issue. =)
Maybe you are looking for
-
Hello there at my current job i currently use a mac to produce all of the Flash content for my company, when i finish the Flash projects i then send them across to a pc to create an installation package for pc users but everytime i do this i come acr
-
Steve Jobs Probably Uses A Blackberry
I have had it with Iphones! My 1st generation Iphone was great for the first year until it conveniently developed dead screen spots at month 14. The "Genious Bar" told me that because I was out of warranty I would have to pay $199 for a refurbished f
-
Click Wheel not working properly after Ipod got wet
Really need some help please as alhough my ipod is sort of working after it got wet, I can play songs and so on but I cant't use the select button in the middle. This therefore means that I can't even reset it or select options in the menu list like
-
Problems importing via Eos Capture (Canon 1ds mkII)
Am attempting to use Canon's EOS utility to shoot tethered with a 1 Ds mk II. Would like all files to be directly imported into Light room. Have specified folders etc according to instructions (Martin Evening's light room book) but for every frame I
-
HT1222 I can't upload the system update in my IPad 2.....
I can't upload the system updates in my iPad 2. An error massage appears.