Hello,
I am calling successfully several java functions from php, but I have one
function which produces the following error message:
Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed:
[o(PHP2JavaBridge5)]->getEcDatenForOnlineEc2((Ekunden)o(Ekunden)). Cause:
java.lang.NoSuchMethodError:
DAL.rmi.SecureTransporter.getEcDatenForOnlineEc(LDAL/PersistentObjects/Ekunden;)DAL/PersistentObjects/EcDaten;
Responsible VM: 1.5.0_06@http://java.sun.com/" at: #-10
DAL.rmi.PHP2JavaBridge5.getEcDatenForOnlineEc2(PHP2JavaBridge5.java:338) #-9
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
The strange thing is that the method is existing and If I comment out the
internals of the JAVA-function no error appears and the function can be
called.
It seems that the Java function getEcDatenForOnlineEc2(..) can only be
called from PHP, when
the JAVA function doesn't contain a specific line or if it's empty. (see
below)
My PHP call looks like this and is working (or not working) in dependency of
the JAVA code:
$this->EcDatenObject =
$this->jbridge->getEcDatenForOnlineEc2($this->ekunde);
The not working JAVA function looks like:
public EcDaten getEcDatenForOnlineEc2(Ekunden ekunde) {
EcDaten ec=null;
try {
ec=m_obj.getEcDatenForOnlineEc(ekunde);
} catch (RemoteException e) {
}
return ec;
}
the working one looks like:
public EcDaten getEcDatenForOnlineEc2(Ekunden ekunde) {
EcDaten ec=null;
/*try {
ec=m_obj.getEcDatenForOnlineEc(ekunde);
} catch (RemoteException e) {
}*/
return ec;
}
The function call "m_obj.getEcDatenForOnlineEc(..);" which is called inside
the JAVA function
makes an RMI Call to a server. This is working well for other RMI functions,
don't know if that matters it's only for completeness.
Of course I tried also the JAVA function alone without calling it from PHP
and it works perfect.
I can not imagine why the function call from PHP works only when I comment
out my Java code.
I am already working for days to solve this problem...
Any help is appreciated.
scara
_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit
Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu!
http://desktop.msn.de/ Jetzt gratis downloaden!
|