Misterious NoSuchMethodException
Hi,
I'm developing for Weblogic 8.1 and I'm getting a misterious NoSuchMethodException:
Properties p;
p.setProperty(....)
IDocFactory docFac = new DocFactory(p);
IDoc manager = docFac.create(.....);
This is the error I get:
Failure=java.lang.NoSuchMethodError: DocFactory.<init>(Ljava/lang/String;Ljava/util/Properties;)V [ServiceException]>
Unhandled Page Flow exception:
java.lang.NoSuchMethodError: DocFactory.<init>(Ljava/lang/String;Ljava/util/Properties;)
The exact same code works in Eclipse.
I've tried using Sun's JVM in Weblogic and got the same error.
Any help?!
Thanks!
Pedro
@Sjukskoterska ,
Hello and thank you for posting on the HP support forums. If you have already gone so far as to do a full reinstall of the operating system and bringing it back to the original configuration. That is about all you can do, especially if you have done all the drivers.
What you will need to do now is repair the wireless card.
Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region.
http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
Thank you again for posting and have a great day.
Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
D5GR
I work on behalf of HP
Similar Messages
-
Error while opening a dwg file :java.lang.NoSuchMethodException: Method
Hello Experts,
I tried to integrate WebCenter Content with Autovue ,the integration was good untill i get this error while trying to open a dwg file checked in Content Server using View in Autovue option in Actions :
java.lang.NoSuchMethodException: Method fileOpen(com.cimmetry.core.SessionID, com.cimmetry.core.DocID, com.cimmetry.core.Authorization, <null>, java.lang.Boolean, <null>) not found in class com.cimmetry.jvueserver.VCETConnection
at com.cimmetry.jvueserver.ar.a(Unknown Source)
at com.cimmetry.jvueserver.ar.a(Unknown Source)
at com.cimmetry.jvueserver.ar.a(Unknown Source)
at com.cimmetry.jvueserver.ar.d(Unknown Source)
at com.cimmetry.jvueserver.ar.a(Unknown Source)
at com.cimmetry.jvueserver.ah.run(Unknown Source)
Any suggestions would help me,
Thanks in Advance
RajHi Raj,
The solution to this problem is posted in My Oracle Support:
Error: "java.lang.NoSuchMethodException: Method fileOpen" when Trying to View Files Using AutoVue Integrated to Oracle Universal Content Management (UCM) (Doc ID 1341644.1).
It has all the details, step by step.
Jeff -
All:
I have completed the following:
1. Downloaded the JavaMail 1.4.2 API.
2. From this downloaded API I had extracted the mail.jar file (timestamp 2009-02-26 13:28) to my C:\Program Files\Tomcat 6.0\lib directory
3. Downloaded the jaf-1_0_2-upd2 API
4. From this downloaded API I had extracted the activation.jar file (timestamped 2005-05-07 21:14) also to my C:\Program Files\Tomcat 6.0\lib directory.
In Eclipse I have created a simple JSP page that calls a POJO that is to read a particular email box using IMAP. In this POJO I have code to set up the Properties, Session and Store objects as such:
Line 1 Properties properties = System.getProperties();
Line 2 properties.put("mail.from", "[email protected]");
Line 3 properties.put("mail.debug","true");
Line 4 session = Session.getDefaultInstance(properties, null);
Line 5 session.setDebug(debug);
Line 6 printData("About to get store object...");
Line 7 store = session.getStore("imap");
In eclispe, I click "Debug on Server" and Tomcat starts, begins to display my JSP and then I am dropped on the line of code in my POJO where I set a breakpoint (Line 1). Now I single step through the code. The code throws the following execption when it executes line 7 of the above code :
(Line 6 ==>) About to get store object...
DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
java.lang.NoSuchMethodException: com.sun.mail.imap.IMAPStore.<init>(javax.mail.Session, javax.mail.URLName)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at javax.mail.Session.getService(Session.java:782)
at javax.mail.Session.getStore(Session.java:574)
at javax.mail.Session.getStore(Session.java:536)
at javax.mail.Session.getStore(Session.java:515)
at emailTest.readEmails.processMail(readEmails.java:62)
at emailTest.readEmails.<init>(readEmails.java:24)
at org.apache.jsp.emailTest_jsp._jspService(emailTest_jsp.java:94)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
There are no jar files defined in my project's classpath. The only jar file found in the project is in the WEB-INF\lib folder wherein I have a jndi.jar (timstamp 5/5/2009 8:10AM) file.
I put the activation.jar file and the mail.jar file in my Tomcat.6\lib folder according item 4 of the JavaMail Sessions section of the Apache Tomcat JNDI Resources HOW_TO found here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
Can anybody please tell me what I need to do to get around this error? Do I perhaps have the wrong versions of one or more jar files?
FYI: I have also put these same two jar files in my projects classpath and still recevied the same exception. Because I am invoking a POJO from a JSP should these jar files be in my projects classpath in addition to the tomcat\lib directory, or should they only be in the projects' classpath?
Thanks to all for your time in responding.
Garybshannon:
Thank you for your resonse. Your response got me to thinking that my instance of Ecliplse that I had had running yesterday was behaving a little strangely so this morning I closed everything I had running on my workstation and closed down the machine and rebooted. When I finally opend up Eclipse again and ran my JSP program calling my POJO, the code no longer threw the exception. Apparently Eclipse can have its tempermental moments.
Also, let it be known that while everything is working for me now, I performed a small experiment. I moved the activiation.jar and mail.jar from my project\WEB-INF\lib folder and put them in the the C:\Program Files\Tomcat 6.0\lib directory. Then, when I ran my program I once again recieved the java.lang.NoSuchMethodException error. When I moved these jar files back from the Tomcat diretory to my project\WEB-INF\lib directory, the program worked just fine.
Thanks again
Gary -
Java.lang.NoSuchMethodException
Hi,
I'm a beginner in learning CMP EJB. I've encountered the below error, when I tried to create a CMP EJB using a servlet.
I am using pointbase as my database.
INFO: CORE3276: Installing a new configuration
INFO: CORE3280: A new configuration was successfully installed
INFO: WEB4004: Closing web application environment for virtual server [server1]
INFO: LDR5010: All ejb(s) of [StorageDeviceApp] loaded successfully!
WARNING: CORE3229: Quality of service (QOS) is disabled in the HTTP service. Un
able to turn on QOS features.
INFO: CORE3276: Installing a new configuration
INFO: WEB0100: Loading web module [StorageDeviceApp:servlet.war] in virtual serv
er [server1] at [defaultContext]
INFO: WEB0116: Using alternate deployment descriptor [C:\Sun\AppServer7\domains\
domain1\server1\applications\j2ee-apps\StorageDeviceApp_1\servlet_war/../servlet
.xml] for web module [StorageDeviceApp:servlet.war]
INFO: CORE3282: stdout: looking up java:comp/env/ejb/jndiStorageDevice
INFO: CORE3282: stdout: lookup ok
INFO: CORE3282: stdout: creating stocker 88
INFO: CORE3282: stdout: setting entity context
INFO: CORE3282: stdout: finished setting context
WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName
WARNING: CORE3283: stderr: at com.sun.enterprise.util.Utility.invokeSetMeth
odCaseInsensitive(Utility.java:373)
WARNING: CORE3283: stderr: at com.sun.enterprise.repository.JdbcConnectionP
ool.createDataSource(JdbcConnectionPool.java:238)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcUrlAllocator.
createResource(JdbcUrlAllocator.java:80)
SEVERE: RAR5027:Unexpected exception in resource pooling
com.sun.enterprise.resource.PoolingException
at com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAl
locator.java:100)
at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyReso
urces(IASNonSharedResourcePool.java:856)
at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonS
haredResourcePool.java:416)
at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
rce(IASNonSharedResourcePool.java:625)
at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
onSharedResourcePool.java:520)
at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
anagerImpl.java:263)
at com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.
java:74)
at com.sun.enterprise.resource.SystemJdbc10XaAllocator.createResource(Sy
stemJdbc10XaAllocator.java:52)
at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyReso
urces(IASNonSharedResourcePool.java:856)
at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonS
haredResourcePool.java:416)
at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResou
rce(IASNonSharedResourcePool.java:625)
at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASN
onSharedResourcePool.java:520)
at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolM
anagerImpl.java:263)
at com.sun.enterprise.resource.SystemJdbcDataSource.internalGetConnectio
n(SystemJdbcDataSource.java:226)
at com.sun.enterprise.resource.SystemJdbcDataSource.getConnection(System
JdbcDataSource.java:154)
at com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImp
l.getConnection(TransactionHelperImpl.java:171)
at com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnect
ion(EJBHelper.java:169)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getDBName(SQLPersistenceManagerFactory.java:781)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
at device.StorageDeviceBean_826330090_ConcreteImpl.jdoGetPersistenceMana
ger(StorageDeviceBean_826330090_ConcreteImpl.java:539)
at device.StorageDeviceBean_826330090_ConcreteImpl.ejbCreate(StorageDevi
ceBean_826330090_ConcreteImpl.java:255)
at device.StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.create
(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.java:27)
at device._StorageDeviceHome_Stub.create(Unknown Source)
at StorageDeviceServlet.init(StorageDeviceServlet.java:40)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:921)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:81
3)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3346)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
592)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345
at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
com.sun.enterprise.repository.J2EEResourceException
java.lang.NoSuchMethodE
WARNING: Cannot get database metadata: database product name.
java.sql.SQLException: com.sun.enterprise.repository.J2EEResourceException
java.lang.NoSuchMethodException: setdataSourceName
at com.sun.enterprise.resource.SystemJdbcDataSource.internalGetConnectio
n(SystemJdbcDataSource.java:252)
at com.sun.enterprise.resource.SystemJdbcDataSource.getConnection(System
JdbcDataSource.java:154)
at com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImp
l.getConnection(TransactionHelperImpl.java:171)
at com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnect
ion(EJBHelper.java:169)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getDBName(SQLPersistenceManagerFactory.java:781)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
at device.StorageDeviceBean_826330090_ConcreteImpl.jdoGetPersistenceMana
ger(StorageDeviceBean_826330090_ConcreteImpl.java:539)
at device.StorageDeviceBean_826330090_ConcreteImpl.ejbCreate(StorageDevi
ceBean_826330090_ConcreteImpl.java:255)
at device.StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.create
(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.java:27)
at device._StorageDeviceHome_Stub.create(Unknown Source)
at StorageDeviceServlet.init(StorageDeviceServlet.java:40)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:921)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:81
3)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3346)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
592)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345
at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
INFO: Bean StorageDevice method ejbCreate: problems during ejbCreate; parameters
: Stocker88, 88
com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the
vendor type for the data store.
NestedException: java.sql.SQLException: com.sun.enterprise.repository.J2EEResour
ceException
java.lang.NoSuchMethodException: setdataSourceName
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getDBName(SQLPersistenceManagerFactory.java:802)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManag
erFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerF
actoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
at device.StorageDeviceBean_826330090_ConcreteImpl.jdoGetPersistenceMana
ger(StorageDeviceBean_826330090_ConcreteImpl.java:539)
at device.StorageDeviceBean_826330090_ConcreteImpl.ejbCreate(StorageDevi
ceBean_826330090_ConcreteImpl.java:255)
at device.StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.create
(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl.java:27)
at device._StorageDeviceHome_Stub.create(Unknown Source)
at StorageDeviceServlet.init(StorageDeviceServlet.java:40)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:921)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:81
3)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3346)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
592)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:345
at org.apache.catalina.startup.Embedded.start(Embedded.java:957)
at com.iplanet.ias.web.WebContainer.start(WebContainer.java:426)
at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:514)
at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:170)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
rcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
rcePool.initPool(IASNonSharedResourcePool.java:416)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
rcePool.internalGetResource(IASNonSharedResourcePool.java:625)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
rcePool.getResource(IASNonSharedResourcePool.java:520)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
etResourceFromPool(PoolManagerImpl.java:263)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.JdbcXAConnection.
<init>(JdbcXAConnection.java:74)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.SystemJdbc10XaAll
ocator.createResource(SystemJdbc10XaAllocator.java:52)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
rcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
rcePool.initPool(IASNonSharedResourcePool.java:416)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
rcePool.internalGetResource(IASNonSharedResourcePool.java:625)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.IASNonSharedResou
rcePool.getResource(IASNonSharedResourcePool.java:520)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.PoolManagerImpl.g
etResourceFromPool(PoolManagerImpl.java:263)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.SystemJdbcDataSou
rce.internalGetConnection(SystemJdbcDataSource.java:226)
WARNING: CORE3283: stderr: at com.sun.enterprise.resource.SystemJdbcDataSou
rce.getConnection(SystemJdbcDataSource.java:154)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
ejb.TransactionHelperImpl.getConnection(TransactionHelperImpl.java:171)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
ejb.EJBHelper.getConnection(EJBHelper.java:169)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:78
1)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:
709)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFac
tory.java:598)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFacto
ryImpl.java:770)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFacto
ryImpl.java:660)
WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
pl.jdoGetPersistenceManager(StorageDeviceBean_826330090_ConcreteImpl.java:539)
WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
pl.ejbCreate(StorageDeviceBean_826330090_ConcreteImpl.java:255)
WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
pl_RemoteHomeImpl.create(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl
.java:27)
WARNING: CORE3283: stderr: at device._StorageDeviceHome_Stub.create(Unknown
Source)
WARNING: CORE3283: stderr: at StorageDeviceServlet.init(StorageDeviceServle
t.java:40)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapper.load
Servlet(StandardWrapper.java:921)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:813)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContext.load
OnStartup(StandardContext.java:3346)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContext.star
t(StandardContext.java:3592)
WARNING: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1123)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(S
tandardHost.java:638)
WARNING: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1123)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:345)
WARNING: CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Em
bedded.java:957)
WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebCon
tainer.java:426)
WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstanc
e(WebContainer.java:514)
WARNING: CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostIni
t(J2EERunner.java:170)
WARNING: CORE3283: stderr: Caught an exception.
WARNING: CORE3283: stderr: java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
WARNING: CORE3283: stderr: java.rmi.RemoteException: nested exception is: c
om.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to get the
vendor type for the data store.
WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
prise.repository.J2EEResourceException
WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName; n
ested exception is:
WARNING: CORE3283: stderr: com.sun.jdo.api.persistence.support.JDOFatalInte
rnalException: Failed to get the vendor type for the data store.
WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
prise.repository.J2EEResourceException
WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName
WARNING: CORE3283: stderr: at com.sun.corba.ee.internal.javax.rmi.CORBA.Uti
l.wrapException(Util.java:364)
WARNING: CORE3283: stderr: at javax.rmi.CORBA.Util.wrapException(Util.java:
277)
WARNING: CORE3283: stderr: at device._StorageDeviceHome_Stub.create(Unknown
Source)
WARNING: CORE3283: stderr: at StorageDeviceServlet.init(StorageDeviceServle
t.java:40)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapper.load
Servlet(StandardWrapper.java:921)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardWrapper.load
(StandardWrapper.java:813)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContext.load
OnStartup(StandardContext.java:3346)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardContext.star
t(StandardContext.java:3592)
WARNING: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1123)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(S
tandardHost.java:638)
WARNING: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(
ContainerBase.java:1123)
WARNING: CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start
(StandardEngine.java:345)
WARNING: CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Em
bedded.java:957)
WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebCon
tainer.java:426)
WARNING: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstanc
e(WebContainer.java:514)
WARNING: CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostIni
t(J2EERunner.java:170)
WARNING: CORE3283: stderr: Caused by: java.rmi.RemoteException: nested exception
is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: Failed to ge
t the vendor type for the data store.
WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
prise.repository.J2EEResourceException
WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName; n
ested exception is:
WARNING: CORE3283: stderr: com.sun.jdo.api.persistence.support.JDOFatalInte
rnalException: Failed to get the vendor type for the data store.
WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
prise.repository.J2EEResourceException
WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName
WARNING: CORE3283: stderr: at com.sun.enterprise.iiop.POAProtocolMgr.mapExc
eption(POAProtocolMgr.java:451)
WARNING: CORE3283: stderr: at com.sun.ejb.containers.BaseContainer.postInvo
ke(BaseContainer.java:545)
INFO: CORE3280: A new configuration was successfully installed
INFO: WEB4004: Closing web application environment for virtual server [server1]
WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
pl_RemoteHomeImpl.create(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl
.java:33)
WARNING: CORE3283: stderr: at device._StorageDeviceHome_Stub.create(Unknown
Source)
WARNING: CORE3283: stderr: ... 13 more
WARNING: CORE3283: stderr: Caused by: com.sun.jdo.api.persistence.support.JDOFat
alInternalException: Failed to get the vendor type for the data store.
WARNING: CORE3283: stderr: NestedException: java.sql.SQLException: com.sun.enter
prise.repository.J2EEResourceException
WARNING: CORE3283: stderr: java.lang.NoSuchMethodException: setdataSourceName
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:80
2)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:
709)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFac
tory.java:598)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFacto
ryImpl.java:770)
WARNING: CORE3283: stderr: at com.sun.jdo.spi.persistence.support.sqlstore.
impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFacto
ryImpl.java:660)
WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
pl.jdoGetPersistenceManager(StorageDeviceBean_826330090_ConcreteImpl.java:539)
WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
pl.ejbCreate(StorageDeviceBean_826330090_ConcreteImpl.java:255)
WARNING: CORE3283: stderr: at device.StorageDeviceBean_826330090_ConcreteIm
pl_RemoteHomeImpl.create(StorageDeviceBean_826330090_ConcreteImpl_RemoteHomeImpl
.java:27)
WARNING: CORE3283: stderr: ... 14 more
INFO: CORE5022: All ejb(s) of [StorageDeviceApp] were unloaded successfully!
WARNING: CORE3229: Quality of service (QOS) is disabled in the HTTP service. Un
able to turn on QOS features.
INFO: CORE3276: Installing a new configuration
INFO: CORE3280: A new configuration was successfully installed
INFO: WEB4004: Closing web application environment for virtual server [server1]Most probably you have an error in resources setup. Please check the <resources> section of the instance server.xml
or via the admin ui.
Regards,
Marina -
Java.lang.NoSuchMethodException in RPC style WS in WL6.1
Hi,
I am facing some veered exception in the RPC style WS. The SS-EJB that I used as the web service is working fine when I directly try to access the EJB.
When I wrote a client I get the following exception on the server side.
<Jan 30, 2002 11:41:54 AM IST> <Error> <HTTP> <[WebAppServletContext(2318716,w
-services,/web-services)] Root cause of ServletException
<Jan 30, 2002 11:41:54 AM IST> <Error> <HTTP> <[WebAppServletContext(2318716,w
-services,/web-services)] Root cause of ServletException
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Class.java:888)
at weblogic.soap.server.servlet.StatelessBeanAdapter.init(StatelessBeadapter.java:78)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubpl.java:700)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStImpl.java:643)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStumpl.java:588)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpjava:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.java:242)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebApprvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestpl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Following is the code that's written on the client side.
ProjectBrokerWSClient client = new ProjectBrokerWSClient();
// Obtaining the initial context.
Context context = new InitialContext();
// Making a lookup for the required servlet.
WebServiceProxy proxy = (WebServiceProxy)context.lookup(http://localhost:7001/PB/PBBeanSL.PBHomeSL/PBBeanSL.PBHomeSL.wsdl" );
SoapMethod method = proxy.getMethod("selfTest");
Object result = method.invoke(new Object[]{"# Test message #"});
The function in the bean is as follows.
public String selfTest(String ostrMessage){
log("inside selfTest()" + ostrMessage);
return "# M e s s a g e r e c e i v e d #";
Please let me know if some thing is wrong out here or I have missed out any conf.
cheers.
n a v i n.
[att1.html]yes i have done the ContextFactory settings.
cheers,
navin.
"Per Mengshoel" <[email protected]> wrote in message
news:[email protected]...
>
Hi,
Have you tried setting the ContextFactory before
creating it :
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
//you might want to add this too
h.put("weblogic.soap.verbose", "true" );
Context context = new InitialContext(h);
-Per
"Navin Sidhaye" <[email protected]> wrote:
Hi,
I am facing some veered exception in the RPC style WS. The SS-EJB that
I =
used as the web service is working fine when I directly try to access
=
the EJB.
When I wrote a client I get the following exception on the server side.
<Jan 30, 2002 11:41:54 AM IST> <Error> <HTTP> =
<[WebAppServletContext(2318716,w
-services,/web-services)] Root cause of ServletException
<Jan 30, 2002 11:41:54 AM IST> <Error> <HTTP> =
<[WebAppServletContext(2318716,w
-services,/web-services)] Root cause of ServletException
java.lang.NoSuchMethodException
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Class.java:888)
at =weblogic.soap.server.servlet.StatelessBeanAdapter.init(StatelessBeadapter=
..java:78)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at =weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubpl.jav=
a:700)
at =weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStImpl.j=
ava:643)
at =weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStumpl.ja=
va:588)
at =weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpjava:3=
68)
at =weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.jav=
a:242)
at =weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.jav=
a:200)
at =weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebApprvletC=
ontext.java:2456)
at =weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestpl.jav=
a:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Following is the code that's written on the client side.
ProjectBrokerWSClient client =3D new ProjectBrokerWSClient();
// Obtaining the initial context.
Context context =3D new InitialContext();
// Making a lookup for the required servlet.
WebServiceProxy proxy =3D =
(WebServiceProxy)context.lookup(http://localhost:7001/PB/PBBeanSL.PBHomeS=
L/PBBeanSL.PBHomeSL.wsdl" );
SoapMethod method =3D proxy.getMethod("selfTest");
Object result =3D method.invoke(new Object[]{"# Test message =
The function in the bean is as follows.
public String selfTest(String ostrMessage){
log("inside selfTest()" + ostrMessage);
return "# M e s s a g e r e c e i v e d #";
Please let me know if some thing is wrong out here or I have missed out
=
any conf.
cheers.
n a v i n.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DTahoma size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DTahoma size=3D2>I am facing some veered exception
=
in the RPC=20
style WS. The SS-EJB that I used as the web service is working fine when
=
I=20
directly try to access the EJB.</FONT></DIV>
<DIV><FONT face=3DTahoma size=3D2>When I wrote a client I get the =
following=20
exception on the server side.</FONT></DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D1><Jan 30, 2002 11:41:54 AM IST>
=
<Error>=20
<HTTP> =
<[WebAppServletContext(2318716,w<BR>-services,/web-services)]=20
Root cause of ServletException<BR><Jan 30, 2002 11:41:54 AM IST>=20
<Error> <HTTP>=20
<[WebAppServletContext(2318716,w<BR>-services,/web-services)] Root
=
cause of=20
ServletException<BR></FONT><FONT face=3DArial size=3D2><FONT=20
size=3D1>java.lang.NoSuchMethodException<BR> =
; =20
at java.lang.Class.getMethod0(Native=20
Method)<BR> at=20
java.lang.Class.getMethod(Class.java:888)<BR> &nbs=
p; =20
at=20weblogic.soap.server.servlet.StatelessBeanAdapter.init(StatelessBeadapter=
..java:78)<BR> =20
at=20
javax.servlet.GenericServlet.init(GenericServlet.java:258)<BR> =
; =20
at=20weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubpl.jav=
a:700)<BR> =20
at=20weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStImpl.j=
ava:643)<BR> =20
at=20weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStumpl.ja=
va:588)<BR> =20
at=20weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpjava:3=
68)<BR> =20
at=20weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.jav=
a:242)<BR> =20
at=20weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubpl.jav=
a:200)<BR> =20
at=20weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebApprvletC=
ontext.java:2456)<BR> =20
at=20weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestpl.jav=
a:2039)<BR> =20
at=20
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)<BR> &n=
bsp; =20
at=20weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)<BR></FONT></FON=
T></DIV>
<DIV><FONT size=3D2><FONT size=3D1><FONT face=3DTahoma =
size=3D2>Following is the code=20
that's written on the client side.</FONT></FONT></FONT></DIV>
<DIV><FONT face=3DTahoma size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D1> =20
ProjectBrokerWSClient client =3D new =
ProjectBrokerWSClient();</FONT></DIV>
<DIV><FONT face=3DArial size=3D1></FONT> </DIV>
<DIV><FONT face=3DArial size=3D1>
=
// Obtaining=20
the initial context.<BR> Context
=
context =3D=20
new InitialContext();<BR></FONT><FONT face=3DArial =
size=3D1></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D1> =
//=20
Making a lookup for the required=20
servlet.<BR> WebServiceProxy proxy
=
=3D=20
(WebServiceProxy)context.lookup(</FONT><A =
href=3D"http://localhost:7001/PB/"><FONT=20
size=3D1><A=20
href=3D"http://localhost:7001/PB/PBBeanSL.PBHomeSL/PBBeanSL.PBHomeSL.wsdl=
">http://localhost:7001/PB/</FONT></A><FONT=20
size=3D1>PBBeanSL.PBHomeSL/PBBeanSL.PBHomeSL.wsdl</A>" =
);</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D1> =
SoapMethod=20
method =3D proxy.getMethod("selfTest");<BR></FONT><FONT face=3DArial
=
size=3D2><FONT=20
size=3D1> Object result =3D =
method.invoke(new=20
Object[]{"# Test message #"});</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><FONT =
size=3D1></FONT></FONT> </DIV>
<DIV><FONT size=3D2><FONT size=3D1><FONT face=3DTahoma size=3D2>The =
function in the bean=20
is as follows.</FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D1>
=
public String=20
selfTest(String ostrMessage){</FONT></DIV>
<DIV><FONT face=3DArial size=3D1></FONT> </DIV>
<DIV><FONT face=3DArial size=3D1> =20
log("inside selfTest()" +=20
ostrMessage);<BR> &n=
bsp; return=20
"# M e s s a g e r e c e i v e d=20
#";<BR> }<BR></FONT></DIV>=
<DIV><FONT size=3D1><FONT face=3DTahoma size=3D2>Please let me know if
=
some thing is=20
wrong out here or I have missed out any conf.</FONT></FONT></DIV>
<DIV><FONT size=3D1><FONT face=3DTahoma =
size=3D2></FONT></FONT> </DIV>
<DIV><FONT size=3D1><FONT face=3DTahoma =
size=3D2>cheers.</FONT></FONT></DIV>
<DIV><FONT size=3D1><FONT face=3DTahoma size=3D2><STRONG>n a v i=20
n.</STRONG></FONT></DIV></FONT>
<DIV><FONT face=3DArial size=3D1> </DIV></FONT>
<DIV><FONT face=3DArial size=3D2><FONT size=3D1><FONT =
size=3D2></FONT> </DIV>
<DIV><BR></DIV></FONT></FONT></BODY></HTML> -
I try to use Method.invoke() to invoke a method from a class. The method
has parameters with type JTextArea and JMyFrame, but I got the error
messages java.lang.NoSuchMethodException . Any ideas???
If I remove parameter "JFrame mainFrame" in start() method and it is working fine. Not sure why JMyFrame will throw this exception, as JMyFrame is derived from JFrame class
public class MyFrame extends JFrame
try
ClassLoader loader
= new MyClassLoader(Integer.parseInt("3"));
Class c = loader.loadClass("NewMenuPackage.NewMenu");
Class[] params = { JTextArea.class, JMyFrame.class };
Method m = c.getMethod("start", params);
Object obj = c.newInstance();
m.invoke(obj,
new Object[] {
textArea,
JMyFrame.this
catch (Throwable e)
JOptionPane.showMessageDialog(this, e);
package NewMenuPackage;
import javax.swing.*;
public class NewMenu
private static JMenuItem menuItem = new JMenuItem("New Menu");
public static JMenuItem getJMenuItem()
return menuItem;
public static void start(JTextArea textArea, JFrame mainFrame)
System.out.println("NewMenu->start()...");
}Your "params" Class array has to specify the exact classes of the method, not subclasses. The line that is causing the NoSuchObjectException to be thrown is "c.getMethod("start", params);".
You have to write your own reflection utility methods to find a method that matches on parameter subclasses. -
Java.lang.NoSuchMethodException while using LookupDispatchAction
hi,
I am just a novice java developer, developing an application which requires more than one submit button in a single form, for which i have extended LookupDispatchAction class. However i am unable to fix the error with the message java.lang.NoSuchMethodException, which appears whenever i click on the buttons in spite of having the method in the action class. Below is the code snippet. I request if anyone could help me out. Thanks.
JSP
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix = "html" %>
<%@ taglib uri = "/WEB-INF/struts-bean.tld" prefix = "bean"%>
<html><body>
<html:form action="homeSearch.do">
<table>
<tr>
<td><strong>Search by Email</strong></td>
<td><html:submit property="dowhat">
<bean:message key="ldApp.submit.button.eSearch"/>
</html:submit></td>
</tr>
<tr>
<td><strong>Search by Eid</strong></td>
<TD><html:submit property="dowhat">
<bean:message key="ldApp.submit.button.idSearch"/>
</html:submit> </TD>
</tr>
<tr>
<td><strong>Search by Phone</strong></td>
<td><html:submit property="dowhat">
<bean:message key="ldApp.submit.button.pSearch"/>
</html:submit></td>
</tr>
</table>
</html:form></body></html>
struts-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<form-beans >
<form-bean name="tmpForm" type="org.apache.struts.action.DynaActionForm" />
</form-beans>
<global-exceptions />
<global-forwards >
<forward name="email" path="/emailHome.jsp"/>
<forward name="id" path="/idHome.jsp"/>
<forward name="phone" path="/PhoneHome.jsp"/>
</global-forwards>
<action-mappings>
<action path="/homeSearch" name="tmpForm" type="com.lookup.struts.myLDAction"
parameter="dowhat" scope="request" input="/Home.jsp"
>
<forward name="email" path="/emailHome.jsp"/>
<forward name="id" path="/idHome.jsp"/>
<forward name="phone" path="/PhoneHome.jsp"/>
</action>
</action-mappings>
<message-resources parameter="com.lookup.struts.ApplicationResources" />
</struts-config>
myLDAction class
public class myLDAction extends LookupDispatchAction {
protected Map getKeyMethodMap() {
// TODO Auto-generated method stub
Map mp = new HashMap();
mp.put("ldApp.submit.button.eSearch", "EmailSearch");
mp.put("ldApp.submit.button.idSearch", "IDSearch");
mp.put("ldApp.submit.button.pSearch", "PhoneSearch");
return mp;
public ActionForward EmailSearch(ActionForm af, ActionMapping am,
HttpServletRequest req, HttpServletResponse res) throws Exception{
DynaActionForm df = (DynaActionForm)af;
// do search logic
return am.findForward("email"); // forwards to a jsp page
public ActionForward IDSearch(ActionForm af, ActionMapping am,
HttpServletRequest req, HttpServletResponse res) throws Exception{
DynaActionForm df = (DynaActionForm)af;
// do search logic
return am.findForward("id"); // forwards to a jsp page
public ActionForward PhoneSearch(ActionForm af, ActionMapping am,
HttpServletRequest req, HttpServletResponse res) throws Exception{
DynaActionForm df = (DynaActionForm)af;
// do search logic
return am.findForward("phone"); // forwards to a jsp page
{cod*e}*
*Error*Jan 13, 2009 1:58:56 PM org.apache.struts.actions.DispatchAction dispatchMethod
SEVERE: Action[homeSearch] does not contain method named 'EmailSearch'
java.lang.NoSuchMethodException: com.lookup.struts.myLDAction.EmailSearch(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
at java.lang.Class.getMethod(Class.java:978)
Edited by: Chinglai on 13 Jan, 2009 1:29 PM
Edited by: Chinglai on 13 Jan, 2009 2:01 PMFirst thing is I don't know anything about struts, you should have posted in some other forum like that for JSP or other....
From the exception, I can say that maybe method signature needs to be:
public ActionForward EmailSearch( ActionMapping am, ActionForm af, HttpServletRequest req, HttpServletResponse res)instead of:
public ActionForward EmailSearch(ActionForm af, ActionMapping am, HttpServletRequest req, HttpServletResponse res) throws ExceptionBut don't take my advice to be authentic in any way, thats just a hunch....
And yes, change other method signatures also, if I'm correct , by any chance.
Thanks! -
WebLogic 10gR3 Portal Remote EJB gives java.lang.NoSuchMethodException
We are migrating from WebLogic 11g to WebLogic 10gR3 Portal. The application we have currently works with 11g. Since migrating to 10gR3 we are now recieving the following error while calling a remote EJB.
java.lang.NoSuchMethodException: com.xyz.SomeService_um3hps_SomeServiceRemoteImpl_1030_WLStub.login(java.lang.String, java.lang.String, com.xyz.User, com.xyz.Journal)
at java.lang.Class.getMethod(Class.java:1605)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.getTargetMethod(RemoteBusinessIntfProxy.java:162)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:53)
at $Proxy161.login(Unknown Source)
at com.xyz.SomeServlet.service(PortalLoginServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
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 com.xyz.presentation.jsf.filter.AuthenticationFilter.doFilter(AuthenticationFilter.java:114)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3502)
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:2186)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2092)
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)
Version: WebLogic 10gR3 Portal
The call is being made from one cluster to another in the same domain.
There are two separate ear files that make up the application. One EAR contains the application, the other contains services. The services ear is deployed to one cluster, and the application to another cluster. Remote EJB calls are made from the application to the services. If these ears are in separate clusters, the calls fail with the error above. If the EARs are deployed within the same cluster, the calls work correctly.
Thanks
Edited by: user7719024 on Feb 17, 2010 2:40 PMHi,
As u are migrating from WebLogic 11g to WebLogic 10gR3 Portal so it will be best if you can generate the Artifacts like Stubs...etc using APPC compiler of WebLogic 10gR3 Portal.
Then deploy the EAR/WAR on WebLogic 10gR3 Portal Server. http://jaysensharma.wordpress.com/2010/02/08/weblogic-specific-appc-ant-task/
Thanks
Jay SenSharma -
NoSuchMethodException calling a session bean method from a web service
I am running on NetWeaver 6.40 SP10 on Windows.
I have a Java class (not a SessionBean) exposed as a web service where I invoke a session bean method with an argument that is another Java class (basically, just a JavaBean with some getters and setters). I am getting a strange reflection-related error when I invoke a session bean method. The exception I see is a 'java.lang.reflect.UndeclaredThrowableException', and if I unwrap it with 'ex.getCause()', I see 'java.lang.NoSuchMethodException: com.xx.ejb.PersistentObjectSBObjectImpl0.createR3Config(com.xx.common.R3Config)'
I have spent several days trying to come up with a testcase for this, but to no avail. The calling class is:
--- snip R3UpdateTest.java ---
package com.xx.server.webse;
import com.xx.ejb.*;
import com.xx.common.*;
import java.util.*;
import javax.ejb.*;
import java.rmi.*;
import javax.naming.*;
* @author william_woodward
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
public class R3UpdateTest {
public String createR3Config(String a, String b, String c,
String d, String e, String f) {
String retval = "success!";
try {
PersistentObjectSB poSB = getPersistentObjectSB();
R3Config r3cfg = new R3Config();
r3cfg.setR3HostName(a);
r3cfg.setR3SystemNumber(b);
r3cfg.setRfcUserName(c);
r3cfg.setRfcPassword(d);
r3cfg.setRfcClient(e);
r3cfg.setRfcLanguage(f);
poSB.createR3Config(r3cfg);
} catch (Exception ex) {
retval = "Exception: " + ex + ", Causing Exception : " + ex.getCause();
return retval;
* Private methods
private PersistentObjectSB getPersistentObjectSB() throws RemoteException, CreateException, NamingException {
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
props.put(Context.PROVIDER_URL, "localhost:50004");
InitialContext ctx;
ctx = new InitialContext(props);
PersistentObjectSBHome poSBHome =
(PersistentObjectSBHome) javax.rmi.PortableRemoteObject.narrow(
ctx.lookup("xx.com/CMPOBEAR/PersistentObjectSBBean"),
PersistentObjectSBHome.class);
return poSBHome.create();
--- end R3UpdateTest.java ---
If I change the createR3Config() method to take an argument of class 'Object' instead of an argument of class 'R3Config', and then cast the object back into an R3Config in the method body, it all works fine.
Any clues, anyone?
Thanks,
- Bill
Message was edited by: Bill Woodward - Fixed some funky formattingSure, I can show them to you. They are very similar to a couple of non-DC classes/projects I put together to try and duplicate the problem.
First, the interface, PersistentObjectSB.java:
package com.xx.ejb;
import javax.ejb.EJBObject;
import com.xx.common.R3Config;
import java.rmi.RemoteException;
public interface PersistentObjectSB extends EJBObject {
* Business Method.
public void updateR3Config(R3Config r3Config) throws RemoteException;
* Business Method.
public void createR3Config(R3Config r3Config) throws RemoteException;
And the implementation, PersistentObjectSBBean.java:
package com.xx.ejb;
import java.util.*;
import javax.ejb.*;
import javax.naming.*;
import com.xx.common.*;
import com.xx.interfaces.*;
* @ejbHome <{com.xx.ejb.PersistentObjectSBHome}>
* @ejbLocal <{com.xx.ejb.PersistentObjectSBLocal}>
* @ejbLocalHome <{com.xx.ejb.PersistentObjectSBLocalHome}>
* @ejbRemote <{com.xx.ejb.PersistentObjectSB}>
* @stateless
public class PersistentObjectSBBean implements SessionBean {
private R3ConfigEJBLocalHome _r3ConfigEJBLocalHomeIf = null;
public void ejbRemove() {
public void ejbActivate() {
try {
setEJBLocalHome();
} catch (NamingException e) {
throw new EJBException(e);
public void ejbPassivate() {
public void setSessionContext(SessionContext context) {
myContext = context;
private SessionContext myContext;
* Create Method.
public void ejbCreate() throws CreateException {
try {
setEJBLocalHome();
} catch (NamingException e) {
throw new CreateException();
* Business Method.
public void updateR3Config(R3Config r3Config) {
try {
R3ConfigPrimaryKey primKey = new R3ConfigPrimaryKey();
primKey.r3HostName = r3Config.getR3HostName();
primKey.r3SystemNumber = r3Config.getR3SystemNumber();
R3ConfigEJBLocal r3ConfigEJBLocal =
_r3ConfigEJBLocalHomeIf.findByPrimaryKey(primKey);
if (r3ConfigEJBLocal != null) {
r3ConfigEJBLocal.updateR3Config(r3Config);
} catch (Exception e) {
// What to do here?
* Business Method.
public void createR3Config(R3Config r3Config) {
try {
R3ConfigEJBLocal r3ConfigEJBLocal =
_r3ConfigEJBLocalHomeIf.create(r3Config);
} catch (Exception e) {
// What to do here?
private void setEJBLocalHome() throws NamingException {
Properties props = new Properties();
props.put(
Context.INITIAL_CONTEXT_FACTORY,
"com.sap.engine.services.jndi.InitialContextFactoryImpl");
InitialContext ctx = new InitialContext(props);
Object obj = ctx.lookup("localejbs/R3ConfigEJB");
_r3ConfigEJBLocalHomeIf = (R3ConfigEJBLocalHome) (obj);
Thanks,
- Bill -
Hi!
I constantly receive a NoSuchMethodException in my simple JSF application. Found one similar post in the forum, but there were no solution to the problem there...
Basically I have a JSP with this code:
<h:commandLink id="reload" action="update" actionListener="#{mainBean.changeID}">
<h:outputText id="history" value="#{history.endTask}"/>
</h:commandLink>And my backing bean:
import javax.faces.event.ActionEvent;
import javax.faces.event.ActionListener;
public class MainBackingBean implements ActionListener {
public void changeID(ActionEvent actionEvent) {
System.out.println("this time maybe?");
}faces-config.xml:
<managed-bean>
<managed-bean-name>mainBean</managed-bean-name>
<managed-bean-class>
com.util.ejb.backing.MainBackingBean
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>The stacktrace looks like this when clicking the link:
15:44:58,244 ERROR [[FacesServlet]] Servlet.service() for servlet FacesServlet threw exception
javax.faces.el.EvaluationException: Exception while invoking expression #{mainBean.changeID}
Caused by: java.lang.NoSuchMethodException: com.util.ejb.backing.MainBackingBean.changeID(javax.faces.event.ActionEvent)
I'm all out of ideas what can be causing this. I have tried to access the method from within the class which works fine, and the JSF seem to render fine otherwise. I am thankful for all suggestions!
Best regards,
PeterThanks for looking for a solution before posting. I'd be glad to help you out.
First off, you don't actually need to implement ActionListener on your bean when you access it this way. There's two ways to add an action listener to a component, the first is with the actionListener attribute (as you've done), the other is by using the f:actionListener tag.
When you use the actionListener attribute, you just have to have a method that is executed when an action happens (the method needs to have a specific signature though). You are very close to having the right method signature. Here's the signature your method should match (in fact, it's so close that I'm not sure this is necessary):
public void changeID(ActionEvent actionEvent) throws AbortProcessingException {
//perform actions
}Anyways, the biggest thing here is to remove the implements ActionListener. This puts some method requirements onto your MainBackingBean that you have not fulfilled.
Doing the above ought to solve your NoSuchMethodException errors. The next bit is for informational purposes.
The second way to add an ActionListener to a component is with the f:actionListener tag. The f:actionListener tag is added as a child to your commandLink or commandButton. It would look something like this:
<h:commandLink id="reload" action="update" actionListener="#{mainBean.changeID}">
<h:outputText id="history" value="#{history.endTask}"/>
<f:actionListener type="your.package.name.ActionListenerClassName" />
</h:commandLink>This will register an action listener, of class your.package.name.ActionListenerClassName, on the commandLink.
When you create the ActionListenerClassName, this is when you need to implement ActionListener. By implementing ActionListener this forces you to write the processAction method. The ActionListenerClassName class will look like this:
public class MyActionListener implements ActionListener {
/* (non-Javadoc)
* @see javax.faces.event.ActionListener#processAction(javax.faces.event.ActionEvent)
public void processAction(ActionEvent event)
throws AbortProcessingException {
//Perform action here
}And that's all there is to it.
Hope this helps!
CowKing -
NoSuchMethodException when using the J2SE JMS adapter
Hi.
I'm trying to set up a JMS connection and want to use the J2SE stand alone adapter first, so I can experiment without having to restart the central adapter over and over again.
I get an Null Pointer Exception:
16:19:40 (3010): Error initializing jms receiver adapter: java.lang.NoSuchMethodException: com.sun.messaging.QueueConnectionFactory.<init>(java.lang.String)
I'm a bit (much ... well completely) lost now. Can anyone please help me out? Im not much of a Java programmer, but I though that wouldn't be necessary...
Thanks in advance,
MichelIts up and running now, both on local J2SE as on central J2EE adapters.
We set up JNDI, which turned out to make life much easier.
To get it to work on J2SE, we added the Sun provided jars (jmq.jar and jndi.jar) to the aii_af_jmsproviderlib.sda archive (using the drivertool is the easiest).
Then we configured the local adapter (<i>adapter</i>.properties) and created a simple scenario to just send a "hello world" message to the JMS broker, where it was picked up by a listener.
Once that worked we deployed the aii_af_jmsproviderlib.sda on the central J2EE engine (using SDM) and created a receiver CC to replace the local adapter. That worked fine, without much problems.
The other way around didn't give any more problems after that...
Now we can focus on the content and format of the messages... -
My JNI codes get NoSuchMethodException when release to user
My JNI codes run well in my development environment(JBuilder7), but when they release to user, they get java.lang.NoSuchMethodException. The error generates when the C++ code try to call the java side method.
The release package was built by my colleague. And I found that they obfuscate my codes after the normal build work.
So I wonder is this the reason I got NoSuchMethodException ?
Thanks in advance!Yes. I have figured out that it is the obfuscator causes the problem.
I have spent too much time and energy in sloving the problem, so I think it might be worthwhile to write down what I have learned and let others avoid the same pitfall.
A common trick played by obfuscate is to change the method and variable, so that a line of code that once said:
draw(imageList.get(i));
may change to
a(b.a(c));
When my c++ code try to call the java-side code using GetMethodID(..."draw"...) or GetStaticMethodID(..."draw"...), it will, of course, cause the NoSuchMethodException
After I skipping obfuscating the Java classes called by the c++ codes, the problem solves.
Thank you very much -
Dosen't generate Client stubs; java.lang.NoSuchMethodException
I'm trying to do the sameple web services at http://www.eclipse.org/webtools/community/tutorials/BottomUpAxis2WebService/bu_tutorial.html
I got error in Client Configuration Page (step 25) , when I clicked Finish,
It show following error. Please help me to resolve. Thanks.
Exception occurred while code generation for WSDL org.apache.axis2.description.WSDL11ToAxisServiceBuilder.setCodegen(boolean)
Exception occurred while code generation for WSDL org.apache.axis2.description.WSDL11ToAxisServiceBuilder.setCodegen(boolean)
java.lang.NoSuchMethodException: org.apache.axis2.description.WSDL11ToAxisServiceBuilder.setCodegen(boolean)
at java.lang.Class.getMethod(Unknown Source)
at org.eclipse.jst.ws.axis2.consumption.core.utils.WSDL2JavaGenerator.getAxisService(WSDL2JavaGenerator.java:369)
at org.eclipse.jst.ws.axis2.consumption.core.command.Axis2ClientCodegenCommand.execute(Axis2ClientCodegenCommand.java:89)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:418)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:358)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:253)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$5.run(SimpleCommandEngineManager.java:252)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:222)
at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:96)
at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.performFinish(WizardPageManager.java:255)
at org.eclipse.wst.command.internal.env.ui.widgets.DynamicWizard.performFinish(DynamicWizard.java:380)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:742)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:373)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:182)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)Edited by: Nidh on Dec 21, 2007 5:34 AMNorbert,
Bill has mentioned in the past that the JARs present in the SDK have to
match those JARs that live on the SLM server - there are some new
methods and whatnot that have been added.
So copy any JARs from SLM that match anything in
//content/dev/sdk/build over, and try again.
DCorlette
DCorlette's Profile: http://forums.novell.com/member.php?userid=4437
View this thread: http://forums.novell.com/showthread.php?t=441144 -
Problems with DirectPrinterDemo: java.lang.NoSuchMethodException
Hello,
our environment is oracle forms10g Version 9.0.4.0.19. i have tried to run the directprinterbean from casey bowden, but i had no luck. i forced forms to use the jre 1.5.06. instead of the jinitiator but i get error messages like these..
java.lang.NoSuchMethodException: sun.java2d.SunGraphicsEnvironment.setFallbackFont(java.lang.String)
at java.lang.Class.getMethod(Unknown Source)
at oracle.forms.engine.Main.initDesktop(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NoSuchMethodException: sun.java2d.SunGraphicsEnvironment.preferLocaleSpecificFonts()
at java.lang.Class.getMethod(Unknown Source)
at oracle.forms.engine.Main.initDesktop(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Version von Forms-Applet: 9.0.4.0
java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
what should i do to fix the problem? what are meaning the error messages in detail? where is my fault?
is there a way to run the directprinterbean with jinitator?
thank you
Gunnar
Message was edited by:
[email protected]Hi
Did you ever find out what caused this. We are having a similar problem where we forced the use of jre 1.6 -
Hi everybody:
I created a Mobile service component and a Data Structure with 3 attributes. I created and instantiated the collection and showed all objects in a table but I´m getting the following error:java.lang.NoSuchMethodException: java.util.Vector.isX() where X is the name of the each attribute I defined. so I´m getting this error twice for each attribute.
Complete stack:
java.lang.NoSuchMethodException: java.util.Vector.isX()
at java.lang.Class.getMethod(Class.java:1581)
at com.sap.tc.mobile.wdlite.progmodel.core.context.JavaBeanCMIModel.invokeMethod(JavaBeanCMIModel.java:366)
at com.sap.tc.mobile.wdlite.progmodel.core.context.JavaBeanCMIModel.invokeGetMethod(JavaBeanCMIModel.java:279)
at com.sap.tc.mobile.wdlite.progmodel.core.context.JavaBeanCMIModel.getAttributeValue(JavaBeanCMIModel.java:81)
at com.sap.tc.mobile.wdlite.progmodel.core.context.NodeElement.getAttributeValue(NodeElement.java:104)
at com.sap.tc.mobile.wdlite.progmodel.core.context.NodeElement.getAttributeValue(NodeElement.java:85)
at com.sap.tc.mobile.wdlite.progmodel.core.context.NodeElementWrapper.getAttributeValue(NodeElementWrapper.java:26)
at com.sap.tc.mobile.wdlite.progmodel.core.context.ContextNode.getAttributeValue(ContextNode.java:578)
at com.sap.tc.mobile.wdlite.progmodel.core.context.ContextNode.getAttributeValue(ContextNode.java:569)
at com.sap.tc.mobile.wdlite.progmodel.core.context.ContextNodeMapped.getAttributeValue(ContextNodeMapped.java:134)
at com.sap.tc.mobile.wdlite.progmodel.core.viewelement.Property.listenContextNodeCursorChanged(Property.java:173)
at com.sap.tc.mobile.wdlite.progmodel.core.context.ContextNode.addContextNodeElementListener(ContextNode.java:616)
at com.sap.tc.mobile.wdlite.progmodel.core.viewelement.Property.setBinding(Property.java:73)
at com.sap.tc.mobile.wdlite.progmodel.core.viewelement.Property.setBinding(Property.java:57)
at com.xioma.demo.testeui0001.comp1.Comp1ViewView.(Comp1ViewView.java:615)
at com.xioma.demo.testeui0001.comp1.Comp1ViewView.getInstance0(Comp1ViewView.java:31)
at com.xioma.demo.testeui0001.comp1.Comp1ViewView.getInstance(Comp1ViewView.java:45)
at com.xioma.demo.testeui0001.comp1.Comp1WindowWindow.getDefaultView(Comp1WindowWindow.java:38)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:477)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:243)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrent(Application.java:119)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:143)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:175)
at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:387)
at com.sap.tc.mobile.wdlite.container.ContainerApp.startApp(ContainerApp.java:155)
at com.sap.tc.mobile.wdlite.container.AppMenuView.onActionLaunchApp(AppMenuView.java:327)
at com.sap.tc.mobile.wdlite.container.AppMenuView.invokeEventHandler(AppMenuView.java:370)
at com.sap.tc.mobile.wdlite.progmodel.core.AbstractViewElement.doHandleEvent(AbstractViewElement.java:207)
at com.sap.tc.mobile.wdlite.renderer.api.UIElement.doHandleEvent(UIElement.java:399)
at com.sap.tc.mobile.wdlite.renderer.api.UIImageButton.mouseReleased(UIImageButton.java:148)
at com.sap.tc.mobile.wdlite.renderer.api.UIElement.dispatchMouseReleasedWidgetEvent(UIElement.java:442)
at com.sap.tc.mobile.wdlite.renderer.api.UIElement$1.mouseReleased(UIElement.java:485)
at com.sap.tc.mobile.wdlite.renderer.swt.MouseEventDispatcher.mouseUp(SWTControl.java:362)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:137)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at com.sap.tc.mobile.wdlite.renderer.swt.container.WorkingArea.refresh(WorkingArea.java:175)
at com.sap.tc.mobile.wdlite.renderer.api.RenderingManager.refresh(RenderingManager.java:233)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.refresh(Application.java:250)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.navigate(Application.java:503)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.enter(Application.java:243)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.setCurrent(Application.java:119)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:143)
at com.sap.tc.mobile.wdlite.progmodel.core.Application.launch(Application.java:175)
at com.sap.tc.mobile.wdlite.progmodel.core.WDLite.launchApplication(WDLite.java:387)
at com.sap.tc.mobile.wdlite.framework.Start.runOnContext(Start.java:585)
at com.sap.tc.mobile.wdlite.framework.Start.startApplication(Start.java:609)
at com.sap.tc.mobile.wdlite.framework.Start.startContainer(Start.java:646)
at com.sap.tc.mobile.cfs.framework.spi.FrameworkManager.startContainer(FrameworkManager.java:259)
at com.sap.tc.mobile.cfs.init.FrameworkInitializer.init(FrameworkInitializer.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sap.tc.mobile.cfs.startup.pda.Startup.main(Unknown Source)
The errors are throw when the application starts, the custom code works ok.
Any idea?
Thanks a lot for your time on this thread.
Rocío.Ho Rocio,
The creme JVM is compatible with JDK 1.3.Please make sure that the API you are using is available in 1.3 API set.
Best Regards,
Amit
Maybe you are looking for
-
Sender mail adapter Error - UnknownHostException: hostname
Dear All Gurus, PI Version : 7.31 Scenario : Mail to File Below is the sender communication channel configured. But in the Communication Channel Monitoring ( Runtime Workbench) I'm getting below error exception caught during processing mail message;
-
The below code is removing the comma character from the expression. public static String formatString() { String s="��������abcdefghijklmnopqrstuv,,,,,,,,,!``~!@#$%^&*()--+={}[]|\'':;?/><.,wxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()----+=:;?.,1234567890
-
I've embedded the YouTube code in my site. It works in FireFox but not in IE. It is a short video on my index page. Any ideas why would be appreciated. My Site
-
Skizzen und Unterschriften in PDF
Hallo, hab mir mit Adobe Acrobat XI Pro ein Formular erstellt, und möchte in Textfeldern oder wo auch immer Skizzen und Unterschriften per Maus bzw. touchscreen erstellen! mfg Jürgen
-
HELP! iMac is FROZEN for past two hours.
imac is frozen for past two hours. I was doing a reinstall of the OS because mail searches were not working. I'm afraid of shutting off and restarting for fears of losing my hard drive which I understood would be ok except for a fresh install of syst