You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
| 2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
| 2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
| 2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
| 2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
| 2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
| 2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
| 2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
| 2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
| 2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
| 2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
| 2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
| 2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <php...@li...> - 2009-09-13 21:45:28
|
Hi, Yes, if your back end rejects the local fifo (in promiscuous mode), Java.inc creates a new pair and tries again in the next request. The fifos are only used on security enhanced linux, please disable them by setting JAVA_PIPE_DIR to null. Thank you very much for reporting this bug. -- It has been there since 5 years. I guess you are the first person who enabled promiscuous mode in the back end w/o setting the host value in the front end. Regards, Jost Boekemeier On Sep 13, 2009 11:07 PM, <php...@li...> wrote: Oops the image got stripped. Here's a link to it: http://idisk.me.com/apinstein/Public/Pictures/Skitch/php-java-bridge_tmp_files_problem-20090913-170627.jpg Alan On Sep 13, 2009, at 5:01 PM, php-java-bridge- us...@li... wrote: > My /tmp directory ran out of space (or inodes or something) to... > You can see that the bridge exhausted all inodes on /dev/shm then as > soon as that was full it "failed-over" (by accident, based on a look > at the code) to /tmp. > > Please advise. > > Regards, > Alan > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-09-13 21:07:19
|
Oops the image got stripped. Here's a link to it: http://idisk.me.com/apinstein/Public/Pictures/Skitch/php-java-bridge_tmp_files_problem-20090913-170627.jpg Alan On Sep 13, 2009, at 5:01 PM, php-java-bridge- us...@li... wrote: > My /tmp directory ran out of space (or inodes or something) today. > > When I went and looked, there were 350,000+ tmp files left over from > the bridge, like: > > -rw------- 1 apache apache 0 Sep 11 > 20:34 .php_java_bridge7ZE0oM > prw-rw-rw- 1 apache apache 0 Sep 11 > 20:34 .php_java_bridge7ZE0oM.i > prw-rw-rw- 1 apache apache 0 Sep 11 > 20:34 .php_java_bridge7ZE0oM.o > > It actually ended up using all space on /tmp and killed my server! > > I see that it's the php Java.inc file that's doing this. I see that > the files are created, but never where they're cleaned up. > > Not knowing much about how the bridge's life cycle works, I am a bit > anxious to just start ramming code in there to clean up, but clearly > there is a problem. Here's a graph of inode usage on my server since > upgrading to the latest php-java-bridge: > > > > > You can see that the bridge exhausted all inodes on /dev/shm then as > soon as that was full it "failed-over" (by accident, based on a look > at the code) to /tmp. > > Please advise. > > Regards, > Alan > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and > focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-09-13 21:01:36
|
My /tmp directory ran out of space (or inodes or something) today. When I went and looked, there were 350,000+ tmp files left over from the bridge, like: -rw------- 1 apache apache 0 Sep 11 20:34 .php_java_bridge7ZE0oM prw-rw-rw- 1 apache apache 0 Sep 11 20:34 .php_java_bridge7ZE0oM.i prw-rw-rw- 1 apache apache 0 Sep 11 20:34 .php_java_bridge7ZE0oM.o It actually ended up using all space on /tmp and killed my server! I see that it's the php Java.inc file that's doing this. I see that the files are created, but never where they're cleaned up. Not knowing much about how the bridge's life cycle works, I am a bit anxious to just start ramming code in there to clean up, but clearly there is a problem. Here's a graph of inode usage on my server since upgrading to the latest php-java-bridge: |
|
From: <php...@li...> - 2009-09-12 16:36:45
|
Hi, Version 5.5.2 now contains a try/catch (see http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/php/java/servlet/ContextLoaderListener.java?r1=1.8&r2=1.9) so that NoClassDefFoundErrors in Java 1.4 or below do not stop the shutdown process. Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-09-12 16:32:34
|
Hi, * PHP/Java Bridge version 5.5.2 binary package is available for download: http://sourceforge.net/projects/php-java-bridge/files/Binary%20package/php-java-bridge_5.5.2 Please see the NEWS for a list of user-visible changes: http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/NEWS?revision=1.75&view=markup&pathrev=Release-5-5-2 Based on the above code a RedHat/Fedora RPM release candidate is also available at: http://sourceforge.net/projects/php-java-bridge/files/RHEL_FC%20SecurityEnhancedLinux/php-java-bridge_5.5.2/php-java-bridge-5.5.2-1.i386.FC11-RC1.rpm/download Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-09-09 08:26:15
|
Hi again, I just saw that the cvs head contains a workaround for this problem. To avoid this problem in version 5.4.4.2 please either upgrade to Java 1.6 or higher or never touch a running JavaBridge web application so that tomcat doesn't have to restart it while running or remove the ContextLoaderListener declaration from your WEB-INF/web.xml. Regards, Jost Boekemeier 8. Sep 2009 8:38 nachm. schrieb am < php...@li...>: > > We have been running the JavaBridge on Tomcat for a few months now. > Just had an issue where o... |
|
From: <php...@li...> - 2009-09-08 19:45:02
|
Hi, > java.lang. NoClassDefFoundError A simple file system copy operation may trigger this Java bug. If cleaning catalina_home/Work and temp doesn't solve the problem, you need to remove all .jar and .class files on this computer (yes, all of them) and install java and tomcat again. After that tomcat will work again, until someone copies .jar files or class files around again. There are several attempts which try to solve java's "dll hell", the best proposal is the one from rice.edu, the most practical is the osgi package system, while sun seems to favor its own breed for java 7. Please do not copy jar or class files around after you have compiled a java "program", until it is possible to link java modules to java programs. At the moment Java has to search the computer file system at run-time to find a class. If you modify the computer file system after the compilation phase, Java may mix up class versions, causing strange error messages at run-time. Regards, Jost Boekemeier 8. Sep 2009 8:38 nachm. schrieb am < php...@li...>: We have been running the JavaBridge on Tomcat for a few months now. Just had an issue where our PHP application stopped recognizing the JavaBridge. When we checked Tomcat, it showed JavaBridge as not running. When we tried to restart it, we got: Message: FAIL - Application at context path /JavaBridge could not be started Any ideas? - Chris ERROR LOGS: admin: [nothing] catalina: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/JavaBridge] startup failed due to previous errors host: [nothing] localhost: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: java/io/Closeable at php.java.servlet.ContextLoaderListener.destroyScriptEngines(ContextLoaderListener.java:86) at php.java.servlet.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:102) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3804) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4352) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4241) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:527) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:568) manager: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: start: Starting web application at '/JavaBridge' ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-09-08 18:38:21
|
We have been running the JavaBridge on Tomcat for a few months now. Just had an issue where our PHP application stopped recognizing the JavaBridge. When we checked Tomcat, it showed JavaBridge as not running. When we tried to restart it, we got: Message: FAIL - Application at context path /JavaBridge could not be started Any ideas? - Chris ERROR LOGS: admin: [nothing] catalina: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.StandardContext start SEVERE: Context [/JavaBridge] startup failed due to previous errors host: [nothing] localhost: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.StandardContext listenerStop SEVERE: Exception sending context destroyed event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: java/io/Closeable at php.java.servlet.ContextLoaderListener.destroyScriptEngines(ContextLoaderListener.java:86) at php.java.servlet.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:102) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3804) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4352) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4241) at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1175) at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:527) at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:568) manager: Sep 8, 2009 10:44:38 AM org.apache.catalina.core.ApplicationContext log INFO: HTMLManager: start: Starting web application at '/JavaBridge' |
|
From: <php...@li...> - 2009-09-07 11:59:15
|
> caught exceptionjava.io.IOException: Cannot run > program "php-cgi" > CreateProcess error=2, The system cannot find the file specified This error message means that php is not installed or php-cgi not in the path. Please install PHP. You can set the php.java.bridge.php_exec System.property to specify a custom php executable path, for example: java -Dphp.java.bridge.php_exec=/opt/PHP/bin/php-cgi If you have Apache/php or IIS/php running elsewhere, you can copy you php scripts there and use an urlConnection to execute them remotely, as shown in the example you have given. Otherwise please see the PhpScriptEngine documentation, it contains an example. Regards, Jost Boekemeier Regards, Jost Boekemeier 7. Sep 2009 12:02 nachm. schrieb am < php...@li...>: > > hi, Aplogies if you receive the same mail more than once! > > > I tried calling php fucntion from java file but I am getting below > exception. > > caught exceptionjava.io.IOException: Cannot run program "php-cgi": > CreateProcess error=2, The system cannot find the file specified. > > I tried running the java file by having JavaBridge.jar and php-script.jar > files in classpath.Though in my javafile I am calling the remote php script > actually my requirement is to call php functions from standalone java file(I > tried doing the sam but got the same error).Can any body give step by step > way of creating a standalone java file and calling the php script from it.I > also need what are the jar files you place in classpath and other supporting > files require to execute them properly. > > Please find java file and php files below. > > I am need to do this asap.Any help is highly appreciated. > > > java file > > ===================================================================================== > import javax.script.*; > import java.net.*; > import java.io.*; > class SampleTest { > public static void test(Integer month) throws Exception { > try{ > ScriptEngine e = new > ScriptEngineManager().getEngineByName("php-invocable"); > ByteArrayOutputStream out; > OutputStreamWriter writer; > e.getContext().setWriter(writer=new OutputStreamWriter(out=new > ByteArrayOutputStream())); > Object res=e.eval(new php.java.script.URLReader(new URL(" > http://localhost:8080/JavaBridge/eg.php"))); > System.out.println("Got here"); > ((Invocable)e).invokeFunction("writeName", new Object()); > //System.err.println(((Invocable)e).invokeFunction("writeName", > new Object())); > ((Closeable)e).close(); > System.err.println("PHP exit() code:" + String.valueOf(res)); > System.err.println("PHP output:" + String.valueOf(out)); > }catch(Exception e){ > System.out.println("caught > exception"+e.getLocalizedMessage()); > } > } > public static void main(String s[]) throws Exception { > test(new Integer(12)); > } > } > > ========================================================================================================= > Php File: > > ========================================================================================================= > <?php require_once("java/Java.inc"); > function writeName() > { > echo "Kai Jim Refsnes"; > } > ?> > > ========================================================================================================== > > Thanks, > Pavan. > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-09-07 10:01:59
|
> > hi, Aplogies if you receive the same mail more than once! > > > I tried calling php fucntion from java file but I am getting below > exception. > > caught exceptionjava.io.IOException: Cannot run program "php-cgi": > CreateProcess error=2, The system cannot find the file specified. > > I tried running the java file by having JavaBridge.jar and php-script.jar > files in classpath.Though in my javafile I am calling the remote php script > actually my requirement is to call php functions from standalone java file(I > tried doing the sam but got the same error).Can any body give step by step > way of creating a standalone java file and calling the php script from it.I > also need what are the jar files you place in classpath and other supporting > files require to execute them properly. > > Please find java file and php files below. > > I am need to do this asap.Any help is highly appreciated. > > > java file > > ===================================================================================== > import javax.script.*; > import java.net.*; > import java.io.*; > class SampleTest { > public static void test(Integer month) throws Exception { > try{ > ScriptEngine e = new > ScriptEngineManager().getEngineByName("php-invocable"); > ByteArrayOutputStream out; > OutputStreamWriter writer; > e.getContext().setWriter(writer=new OutputStreamWriter(out=new > ByteArrayOutputStream())); > Object res=e.eval(new php.java.script.URLReader(new URL(" > http://localhost:8080/JavaBridge/eg.php"))); > System.out.println("Got here"); > ((Invocable)e).invokeFunction("writeName", new Object()); > //System.err.println(((Invocable)e).invokeFunction("writeName", > new Object())); > ((Closeable)e).close(); > System.err.println("PHP exit() code:" + String.valueOf(res)); > System.err.println("PHP output:" + String.valueOf(out)); > }catch(Exception e){ > System.out.println("caught > exception"+e.getLocalizedMessage()); > } > } > public static void main(String s[]) throws Exception { > test(new Integer(12)); > } > } > > ========================================================================================================= > Php File: > > ========================================================================================================= > <?php require_once("java/Java.inc"); > function writeName() > { > echo "Kai Jim Refsnes"; > } > ?> > > ========================================================================================================== > > Thanks, > Pavan. > |
|
From: <php...@li...> - 2009-09-06 23:10:40
|
You are calling a static method on an object, which you should not do,
as the method/procedure belongs to the class and not the object.
have you tried $PA = new Java("Pa.runme"); or something like this?
On Fri, Sep 4, 2009 at 5:59 PM,
<php...@li...> wrote:
> Hi Jost,
>
> i did as you said and changed the java_require call to:
> require_once ("http://localhost:8080/JavaBridgeTemplate551/java/Java.inc");
>
> I then copied my library into the WEB-INF/lib folder of the JavaBridgeTemplate
> file and then add my index.php to the folder.
> However, the exact same thing happens. I can declare the instance of the
> object, but when i try to call the method/procedure/feature it is a no-can-do.
>
> It tells me:
> javax.servlet.ServletException: java.lang.RuntimeException:
> [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:PA]]->runme. Cause:
> java.lang.NoSuchMethodException: runme(). Candidates: []
>
> So the same thing is going on.
>
> What am i doing wrong? This time i am using tomcat straight (as opposed to
> using it through apache2).
>
>
> thanks
> matt
>
>
>
> On Friday 04 September 2009, you wrote:
>> Hi Matt,
>>
>> Did you report the missing function yesterday?
>>
>> If so, you're likely communicating with the wrong back end; it defaults to
>> /JavaBridge/.phpjavabridge.
>>
>> Please either fetch Java.inc through
>> http://localhost:8080/JavaBridgeTemplateXXX/java/Java.inc or adjust
>> JAVA_SERVLET accordingly.
>>
>> Regards,
>> Jost Boekemeier
>>
>> 4. Sep 2009 1:39 vorm. schrieb am <
>> php...@li...>:
>>
>> Hi,
>>
>> my setup is such that i declare an object in a class called PA which is
>> stored
>> in a .jar file in the WEB-INF/lib folder. The PA class has a method called
>> runme declared as such:
>> public static void runme() {
>> }
>>
>> I am creating a instance of the PA object in my index.php file as:
>> $PA = new java("PA");
>>
>> No problems so far.
>>
>> Now, when i try to call the method/feature runme as:
>> $PA->runme();
>>
>> i get the folowing error:
>> Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed:
>> [[o:PA]]->runme. Cause: java.lang.NoSuchMethodException: runme().
>> Candidates:
>> [] VM: 1.6.0_14@http://java.sun.com/" at: #-6
>> php.java.bridge.JavaBridge.checkM(JavaBridge.java:1119) #-5
>> php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1057) #-4
>> php.java.bridge.Request.handleRequest(Request.java:414) #-3
>> php.java.bridge.Request.handleRequests(Request.java:490) #-2
>> php.java.bridge.http.ContextRunner.run(ContextRunner.java:146) #-1
>> php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0
>> /usr/local/tomcat/webapps/sandbox/java/Java.inc(248):
>> java_ThrowExceptionProxyFactory->getProxy(3, 'PA', 'runme(). Candid...',
>> true)
>> #1 /usr/local/tomcat/webapps/sandbox/java/Java.inc(388): java_Arg-
>>
>> >getResult(true) #2 /usr/local/tomcat/webapps/sandbox/java/Java.inc(394):
>>
>> java_Client->getWrappedResult(true) #3
>> /usr/local/tomcat/webapps/sandbox/java/Java.inc(594):
>> java_Client->getResult()
>> #4 /usr/local/tomcat/webapps/sandbox/java/Java.inc(1731):
>> java_Client->invoke
>> in /usr/local/tomcat/webapps/sandbox/java/Java.inc on line 215
>>
>> I can't really see what i am doing wrong especially since i swear this call
>> used to work. Can anyone shed light on this?
>>
>> thanks
>> matt
>> ---------------------------------------------------------------------------
>>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day trial. Simplify your report design, integration and deployment - and
>> focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> php-java-bridge-users mailing list
>> php...@li...
>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>> ---------------------------------------------------------------------------
>>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day trial. Simplify your report design, integration and deployment - and
>> focus on what you do best, core application coding. Discover what's new
>> with Crystal Reports now. http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> php-java-bridge-users mailing list
>> php...@li...
>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
|
|
From: <php...@li...> - 2009-09-04 16:56:32
|
Hi,
Please use echo java_inspect($jobject) to see the contents of jobject. It
will list your method. If not, your class doesn't contain it.
> What does java_require do?
>>From what i understand it imports java archieves so that can use them
Not really. It may import classes, provided that these classes aren't
cached.
4. Sep 2009 6:24 nachm. schrieb am <
php...@li...>:
Hi,
> Hi, > What does java_require do?
>From what i understand it imports java archieves so that i can use them in
my
php script.
> > Or did you mean require_once?
Yes, i mistyped. I meant to say i changed my require_once call(...) to:
require_once ("http://localhost:8080/JavaBridgeTemplate551/java/Java.inc");
Again, i am still stuck with the same issue of not being able to call the
feature.
matt
> > 4. Sep 2009 6:00 nachm. schrieb am < >
php...@li...>: > > Hi Jos...
> focus on what you do best, core application coding. Discover what's new
> with Crystal Reports now. http://p.sf.net/sfu/bobj-july >
_______________________________________...
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users-----------------------------...
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your re...
what you do best, core application coding. Discover what's new with Crystal
Reports now. http://p....
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-09-04 16:17:59
|
Hi,
What does java_require do?
Or did you mean require_once?
4. Sep 2009 6:00 nachm. schrieb am <
php...@li...>:
Hi Jost,
i did as you said and changed the java_require call to:
require_once ("http://localhost:8080/JavaBridgeTemplate551/java/Java.inc");
I then copied my library into the WEB-INF/lib folder of the
JavaBridgeTemplate
file and then add my index.php to the folder.
However, the exact same thing happens. I can declare the instance of the
object, but when i try to call the method/procedure/feature it is a
no-can-do.
It tells me:
javax.servlet.ServletException: java.lang.RuntimeException:
[[o:Exception]:"java.lang.Exception: Invoke failed: [[o:PA]]->runme. Cause:
java.lang.NoSuchMethodE...
So the same thing is going on.
What am i doing wrong? This time i am using tomcat straight (as opposed to
using it through apache2).
thanks
matt
On Friday 04 September 2009, you wrote: > Hi Matt, > > Did you report the
missing function yester...
>
---------------------------------------------------------------------------
>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day trial. Simplify your report design, integration and deployment -
and > focus on what you do...
|
|
From: <php...@li...> - 2009-09-04 15:29:34
|
Hi Matt,
Did you report the missing function yesterday?
If so, you're likely communicating with the wrong back end; it defaults to
/JavaBridge/.phpjavabridge.
Please either fetch Java.inc through
http://localhost:8080/JavaBridgeTemplateXXX/java/Java.inc or adjust
JAVA_SERVLET accordingly.
Regards,
Jost Boekemeier
4. Sep 2009 1:39 vorm. schrieb am <
php...@li...>:
Hi,
my setup is such that i declare an object in a class called PA which is
stored
in a .jar file in the WEB-INF/lib folder. The PA class has a method called
runme declared as such:
public static void runme() {
}
I am creating a instance of the PA object in my index.php file as:
$PA = new java("PA");
No problems so far.
Now, when i try to call the method/feature runme as:
$PA->runme();
i get the folowing error:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed:
[[o:PA]]->runme. Cause: java.lang.NoSuchMethodException: runme().
Candidates:
[] VM: 1.6.0_14@http://java.sun.com/" at: #-6
php.java.bridge.JavaBridge.checkM(JavaBridge.java:1119) #-5
php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1057) #-4
php.java.bridge.Request.handleRequest(Request.java:414) #-3
php.java.bridge.Request.handleRequests(Request.java:490) #-2
php.java.bridge.http.ContextRunner.run(ContextRunner.java:146) #-1
php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0
/usr/local/tomcat/webapps/sandbox/java/Java.inc(248):
java_ThrowExceptionProxyFactory->getProxy(3, 'PA', 'runme(). Candid...',
true)
#1 /usr/local/tomcat/webapps/sandbox/java/Java.inc(388): java_Arg-
>getResult(true) #2 /usr/local/tomcat/webapps/sandbox/java/Java.inc(394):
java_Client->getWrappedResult(true) #3
/usr/local/tomcat/webapps/sandbox/java/Java.inc(594):
java_Client->getResult()
#4 /usr/local/tomcat/webapps/sandbox/java/Java.inc(1731):
java_Client->invoke
in /usr/local/tomcat/webapps/sandbox/java/Java.inc on line 215
I can't really see what i am doing wrong especially since i swear this call
used to work. Can anyone shed light on this?
thanks
matt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-09-04 06:58:09
|
Runme is not a method, it's a procedure.
In Java procedures can be called using the same syntax as methods, but
that's bad style and eclipse will warn you about it.
4. Sep 2009 1:39 vorm. schrieb am <
php...@li...>:
Hi,
my setup is such that i declare an object in a class called PA which is
stored
in a .jar file in the WEB-INF/lib folder. The PA class has a method called
runme declared as such:
public static void runme() {
}
I am creating a instance of the PA object in my index.php file as:
$PA = new java("PA");
No problems so far.
Now, when i try to call the method/feature runme as:
$PA->runme();
i get the folowing error:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed:
[[o:PA]]->runme. Cause: java.lang.NoSuchMethodException: runme().
Candidates:
[] VM: 1.6.0_14@http://java.sun.com/" at: #-6
php.java.bridge.JavaBridge.checkM(JavaBridge.java:1119) #-5
php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1057) #-4
php.java.bridge.Request.handleRequest(Request.java:414) #-3
php.java.bridge.Request.handleRequests(Request.java:490) #-2
php.java.bridge.http.ContextRunner.run(ContextRunner.java:146) #-1
php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0
/usr/local/tomcat/webapps/sandbox/java/Java.inc(248):
java_ThrowExceptionProxyFactory->getProxy(3, 'PA', 'runme(). Candid...',
true)
#1 /usr/local/tomcat/webapps/sandbox/java/Java.inc(388): java_Arg-
>getResult(true) #2 /usr/local/tomcat/webapps/sandbox/java/Java.inc(394):
java_Client->getWrappedResult(true) #3
/usr/local/tomcat/webapps/sandbox/java/Java.inc(594):
java_Client->getResult()
#4 /usr/local/tomcat/webapps/sandbox/java/Java.inc(1731):
java_Client->invoke
in /usr/local/tomcat/webapps/sandbox/java/Java.inc on line 215
I can't really see what i am doing wrong especially since i swear this call
used to work. Can anyone shed light on this?
thanks
matt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-09-03 19:44:44
|
Hi,
[Just a quick reply while waiting for the bus]
- java_xxx functions are exported from Java.inc, you can find it in the
template folder: http://,,,/java/Java.inc
- java_require is obsolete in new programs
- ajp is obsolete, unless you want to run JSP from apache
- ajp (through mod_proxy or mod_jk) must be configured correctly, see our
FAQ for details
Regards,
Jost Boekemeier
3. Sep 2009 8:34 nachm. schrieb am <
php...@li...>:
Hi,
First of all i need to apologize since this email might be slightly
off-topic.
The only reason i am posting here is that it is a javabridge related.
Really i think though it is an apache2/tomcat integration issue.
So if this is unacceptable please let me know and (if possible) direct me
where i should go.
Here is the problem. I have a web application using the JavaBridgeTemplate.
The index.php is like so:
<?php echo "<br><hr><br>"; echo java("java.lang.System")->getProperties();
?>
It is deployed and i can execute in my browser at port 8080 (tomcat) and it
works.
The problem comes in when i try to go through apache2 via mod_jk.
The following is my setup (jk_mod is installed and loaded):
- /etc/apache2/conf.d/jk.conf:
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/
worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1
- /etc/libapache2-mod-jk/workers.properties:
workers.tomcat_home=/usr/local/tomcat
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/
worker.list=ajp13_worker
worker.ajp13_worker.port=8009
worker.ajp13_worker.host=localhost
worker.ajp13_worker.type=ajp13
worker.ajp13_worker.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=ajp13_worker
- last line in apache2:
JkMount /* ajp13_worker
So, again, from what i can tell it is not directly related to the javabridge
code but i am hoping from some words of wisdom from more experienced people
than i am.
thanks
matt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-09-01 17:42:00
|
Hi, the regression in version 5.5.1 has been fixed in CVS. It has been tagged as Release-5-5-2: http://php-java-bridge.cvs.sourceforge.net/viewvc/php-java-bridge/php-java-bridge/server/META-INF/java/Client.inc?r1=1.27&r2=1.28&view=patch I am sorry for the inconvenience. Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-09-01 07:23:47
|
Hi Andre, the $version variable in common.inc.php (in web.sf.net/.../pjb/include/) now points to the most recent version, which is 5.4.4.2. > Also, a suggestion could be to announce the "RC" > releases at user list only from cvs checkouts and > building from source for some say, 2 weeks. Then > upload any binaries Is this the best approach? Yes, I think so. Until sf.net gives us more control what is or is not visible, we really have no other choice. I have deleted the binary/5.5.2 and redhat/5.5.2 directories. Regards, Jost Boekemeier 1. Sep 2009 5:50 vorm. schrieb am < php...@li...>: Hello, I am still trying the new interface. It does not show correct downloads anymore, also. I guess the only workaround about hidden releases is to delete the files... But the upload using rsync is being surprisingly fast. Anyway, the heavy interface is using ftp as backend and detecting file types. I liked it more than the old form. Also, a suggestion could be to announce the "RC" releases at user list only from cvs checkouts and building from source for some, say, 2 weeks. Then upload any binaries. Is this the best approach? I will delete the 5.5.1-1 debian files. Regards. Andre Felipe ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-09-01 03:49:29
|
Hello, I am still trying the new interface. It does not show correct downloads anymore, also. I guess the only workaround about hidden releases is to delete the files... But the upload using rsync is being surprisingly fast. Anyway, the heavy interface is using ftp as backend and detecting file types. I liked it more than the old form. Also, a suggestion could be to announce the "RC" releases at user list only from cvs checkouts and building from source for some, say, 2 weeks. Then upload any binaries. Is this the best approach? I will delete the 5.5.1-1 debian files. Regards. Andre Felipe |
|
From: <php...@li...> - 2009-08-31 20:08:32
|
Hi Andre and others, the new SF upload interface doesn`t support hidden releases anymore, does it? I have made a stupid mistake in the version 5.5.1 protocol parser. This has been corrected in 5.5.2, I will check in the changed line tomorrow evening. However, I think the 5.5.x branch needs some more time for internal tests. Especially the RedHat and Debian versions, as both depend on a stable upstream release. Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-08-29 17:17:56
|
Hi,
I think the xdebug C code is more a problem than anything else.
There's a pure PHP debugger ("gubed") which uses the official PHP-level API
(*token_get_all, ...) to attach the debugger to your PHP script.
The advantage of this method is that it is pure PHP code and therefore
cannot crash your PHP installation. And it will work with future versions of
PHP.
Regards,
Jost Bökemeier
*
|
|
From: <php...@li...> - 2009-08-27 16:56:45
|
> Or, if you want to create a web application, create it using the > JavaBridgeTemplate.war add the necessary libraries to it, test it and then > call your tested application using a php front end? > Tutorial is here: => http://php-java-bridge.sourceforge.net/pjb/webapp.php Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-08-27 08:03:56
|
Well, you already have a working desktop application. Why don't you add a standalone listener to call it from php? Or, if you want to create a web application, create it using the JavaBridgeTemplate.war add the necessary libraries to it, test it and then call your tested application using a php front end? , > > What does java_require do? > Not sure what you mean Why do you use it and what does it do? 27. Aug 2009 1:40 vorm. schrieb am < php...@li...>: Hi Jost, On Wednesday 26 August 2009, you wrote: > Hi, > > What does java_require do? Not sure what you mean. It doesn't give me an error if that is what you are asking. > Are you sure the library that java uses contains > this method? Pretty sure since the code works when invoked from the command line. But i just thought that i do import java.awt.geom.* which the itext call is based on i believe. So do i need to java_require this library? If so, how can i do that? Do i need to go look through the sun-java installation to find the needed .jar file? thanks matt > > Regards, > Jost Boekemeier > > 26. Aug 2009 7:36 nachm. schrieb am < > php-java-bridge-users@l... > --------------------------------------------------------------------------- >--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - and > focus on what you do... |
|
From: <php...@li...> - 2009-08-26 18:08:36
|
Hi,
What does java_require do? Are you sure the library that java uses contains
this method?
Regards,
Jost Boekemeier
26. Aug 2009 7:36 nachm. schrieb am <
php...@li...>:
Hi,
i am trying to access a java library (itext.jar) from my java code (also in
a
.jar in the same directory as itext.jar).
The specific offending testcase-call to itext is:
PaperHeight = (int)(com.lowagie.text.PageSize.LETTER.getHeight());
In my java code i import from itext what i need and it works on the command
line (compile and execute). However, from the browser it does not.
In my index.php (which i use as a sandbox) i make the call:
java_require("../java/PatchAntenna_20090826/lib/PA.jar");
java_require("../java/PatchAntenna_20090826/lib/iText-2.1.7.jar");
before i create a new instance of my class which in turn calls the itext
method.
When i execute the php script in the browser i get:
Cause: java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.getHeight()
which indicates to me that i cannot find the library.
What am i missing here? Did i forget something?
thanks for the help
matt
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-08-25 09:15:14
|
Hi, recent PHP versions still contain a bug in pfsockopen, which will cause a short read when the tomcat back end is restarted or when tomcat closes an open connection. The problem is an uninitialized variable in the php socket layer. If you receive the message "protocol error, length must be > 0 ..." when using the Linux RPM, please add the following constant to the PHP script: 1.0E512 This illegal number will cause the PHP parser to reset, initializing the socket layer as a side effect(!). On all operating system except RedHat Enterprise and Fedora Linux the config var JAVA_PERSISTENT_SERVLET_CONNECTIONS is off, so this php bug will not cause problems there. I will add the constant to the RedHat/Fedora RPM and work with the php maintainers to fix this bug. Regards, Jost Boekemeier |