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
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
1
|
2
|
3
(9) |
4
(1) |
5
(6) |
6
|
7
(1) |
8
(2) |
9
(2) |
10
(7) |
11
(12) |
12
(8) |
13
|
14
(4) |
15
(3) |
16
(1) |
17
(5) |
18
(4) |
19
|
20
(2) |
21
(4) |
22
|
23
(2) |
24
(2) |
25
(2) |
26
(1) |
27
|
28
(1) |
29
(3) |
30
(9) |
31
(2) |
|
|
|
From: <php...@li...> - 2008-12-31 10:03:18
|
Hi, The bridge can and should only be used to connect a http front-end with a j2ee back-end within the local intranet. If there's a firewall between them, channel redirects will not work. Please see the README "security" section for details. To access a remote service via the internet, use SOAP or RMI/IIOP instead. The source download contains an example which shows how to use Java SOAP bindings to access a remote service and how to access EJB session beans. Regards, Jost Boekemeier |
From: <php...@li...> - 2008-12-31 02:06:40
|
As a follow up to my earlier message php error logs contain the following: Stack trace: #0 http://12.254.254.53:8080/JavaBridge/java/Java.inc(1181): java_HttpHandler->getChannel('9267') #1 http://12.254.254.53:8080/JavaBridge/java/Java.inc(1308): java_HttpHandler->redirect() #2 http://12.254.254.53:8080/JavaBridge/java/Java.inc(1338): java_Protocol->redirect() #3 http://12.254.254.53:8080/JavaBridge/java/Java.inc(1371): java_Protocol->finish() #4 http://12.254.254.53:8080/JavaBridge/java/Java.inc(679): java_Protocol->createObjectEnd() #5 http://12.254.254.53:8080/JavaBridge/java/Java.inc(2097): java_Client->createObject('java.lang.Strin...', Array) #6 /var/www/html/java/test.php(6): Java->Java('java.lang.Strin...', 'HelloWorld') #7 {main} thrown in http://12.254.254.53:8080/JavaBridge/java/Java.inc <http://12.108.64.53:8080/JavaBridge/java/Java.inc%20on%20line%201164> on line 1164 Does anyone have any suggestions based on these entries? Jeff |
From: <php...@li...> - 2008-12-30 23:02:08
|
It seems that trying $string = new Java("java.lang.String", "HelloWorld"); Causes the max script execution time to timeout before it get a response from tomcat. Jeff On Tue, 2008-12-30 at 15:37 -0700, php...@li... wrote: > Thanks Peter. I found that information in the /JavaBridge/settings.php > and was just trying to figure out where to turn it on. That was a big > help. The PHP side is fine I was missing that on the tomcat side. > > Jeff > > > > On Tue, 2008-12-30 at 14:30 -0800, > php...@li... wrote: > > IBM has had a good introduction: http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/index.html#resources > > > > > > >From their article: > > > > Listing 6. Uncommenting the block to allow remote access to Java classes > > <init-param> > > <param-name>promiscuous</param-name> > > <param-value>On</param-value> > > </init-param>... > > > > Your PHP Java Bridge installation works by importing a PHP include file directly > > from the remote Java application server. Unfortunately, just as the PHP Java > > Bridge wouldn't allow remote access, default PHP installations ban the remote > > inclusion of files, as it is a potential security risk. > > > > You need to enable two PHP configuration parameters, > > allow_url_fopen, which allows you to open a remote file > > as if it were a local one, and allow_url_include, which > > enables you to include remote PHP files to import code. > > ;;;;;;;;;;;;;;;;;; > > ; Fopen wrappers ; > > ;;;;;;;;;;;;;;;;;; > > > > ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. > > allow_url_fopen = On > > allow_url_include = On > > ... > > > > Listing 9. Creating a file on your Web server > > > > <? > > require_once("http://sulaco.mcslp.pri:8080/JavaBridge/java/Java.inc"); > > $System = new Java("java.lang.System"); > > print_r($System->getProperties()); > > ?> > > > > > > Peter > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2008-12-30 22:37:17
|
Thanks Peter. I found that information in the /JavaBridge/settings.php and was just trying to figure out where to turn it on. That was a big help. The PHP side is fine I was missing that on the tomcat side. Jeff On Tue, 2008-12-30 at 14:30 -0800, php...@li... wrote: > IBM has had a good introduction: http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/index.html#resources > > > >From their article: > > Listing 6. Uncommenting the block to allow remote access to Java classes > <init-param> > <param-name>promiscuous</param-name> > <param-value>On</param-value> > </init-param>... > > Your PHP Java Bridge installation works by importing a PHP include file directly > from the remote Java application server. Unfortunately, just as the PHP Java > Bridge wouldn't allow remote access, default PHP installations ban the remote > inclusion of files, as it is a potential security risk. > > You need to enable two PHP configuration parameters, > allow_url_fopen, which allows you to open a remote file > as if it were a local one, and allow_url_include, which > enables you to include remote PHP files to import code. > ;;;;;;;;;;;;;;;;;; > ; Fopen wrappers ; > ;;;;;;;;;;;;;;;;;; > > ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. > allow_url_fopen = On > allow_url_include = On > ... > > Listing 9. Creating a file on your Web server > > <? > require_once("http://sulaco.mcslp.pri:8080/JavaBridge/java/Java.inc"); > $System = new Java("java.lang.System"); > print_r($System->getProperties()); > ?> > > > Peter > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2008-12-30 22:30:45
|
IBM has had a good introduction: http://www.ibm.com/developerworks/aix/library/au-javaphpaix5/index.html#resources >From their article: Listing 6. Uncommenting the block to allow remote access to Java classes <init-param> <param-name>promiscuous</param-name> <param-value>On</param-value> </init-param>... Your PHP Java Bridge installation works by importing a PHP include file directly from the remote Java application server. Unfortunately, just as the PHP Java Bridge wouldn't allow remote access, default PHP installations ban the remote inclusion of files, as it is a potential security risk. You need to enable two PHP configuration parameters, allow_url_fopen, which allows you to open a remote file as if it were a local one, and allow_url_include, which enables you to include remote PHP files to import code. ;;;;;;;;;;;;;;;;;; ; Fopen wrappers ; ;;;;;;;;;;;;;;;;;; ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. allow_url_fopen = On allow_url_include = On ... Listing 9. Creating a file on your Web server <? require_once("http://sulaco.mcslp.pri:8080/JavaBridge/java/Java.inc"); $System = new Java("java.lang.System"); print_r($System->getProperties()); ?> Peter |
From: <php...@li...> - 2008-12-30 22:10:51
|
I have the PHP-Java bridge working fine on a single server with the JAVA Standalone config. I am trying to get the communication working between my PHP server and my remote Tomcat. I have copied the war file into the webapps and when starting tomcat it created it's folder. In the Java.inc on the tomcat box I have an echo"got to tomcat" so I know that I am getting to the include. I can't get any of the demos or the code provided in the readme working. <?php ini_set("allow_url_include", 1); require_once("http://my_remote_tomcat:8080/JavaBridge/java/Java.inc"); $string = new Java("java.lang.String", "HelloWorld"); echo $string; ?> The only entries in the tomcat logs are: 67.244.244.204 - - [30/Dec/2008:16:19:44 -0500] "GET /JavaBridge/java/Java.inc HTTP/1.0" 200 66991 67.244.244.204 - - [30/Dec/2008:16:20:00 -0500] "PUT /JavaBridge/JavaBridge.phpjavabridge HTTP/1.0" 200 43 When I startup the JavaBridge.jar I get the same results as when I'm using Tomcat. TIA, Jeff |
From: <php...@li...> - 2008-12-30 16:13:25
|
Thnks a lot. It Works! /*CORRECT CODE*/ $exportManager = new Java("net.sf.jasperreports.engine.export.JRRtfExporter"); $file = new Java("java.io.File",realpath(".")."/"."informe.rtf"); $pr = new JavaClass("net.sf.jasperreports.engine.JRExporterParameter"); $exportManager->setParameter($pr->JASPER_PRINT,$jasperPrint); $exportManager->setParameter($pr->OUTPUT_FILE,$file); $exportManager->exportReport(); 2008/12/30 <php...@li...> > Try this > > $exportManager = new > Java ("net.sf.jasperreports.engine.export.JRRtfExporter"); > > // note that it is not JavaClass but Java > > The following code that you have in PHP > $exportManager = new > JavaClass("net.sf.jasperreports.engine.export.JRRtfExporter"); > > is equivalent to the following Java Code > exportManager = JRRtfExporter.class; > > Use new JavaClass("classname) to access static methods and variables and > new > Java("classname") to use instance method and variables. > > -Ajit > > -----Original Message----- > From: php...@li... > [mailto:php...@li...] > Sent: Monday, December 29, 2008 5:29 PM > To: php...@li... > Subject: [Php-java-bridge-users] Urgent: Jasper report problem > > Im trying to get that in php: > > /*JAVA CODE*/ > > JRRtfExporter exporter = new JRRtfExporter(); > exporter.setParameter(JRExporterParameter.JASPER_PRINT, masterPrint); > exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sPathRTF); > exporter.exportReport(); > > /*MY PHP JAVA BRIDGE IMPLEMENTATION*/ > > $exportManager = new > JavaClass("net.sf.jasperreports.engine.export.JRRtfExporter"); > $exportManagerParam = new > JavaClass("net.sf.jasperreports.engine.JRExporterParameter"); > $outputPath = realpath(".")."/"."informe.rtf"; > > $exportManager->setParameter($exportManagerParam->JASPER_PRINT,$jasperPrint) > ; > > $exportManager->setParameter($exportManagerParam->OUPUT_FILE_NAME,$outputPat > h); > $exportManager->exportReport(); > > /*output*/ > *Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: > [[c:JRRtfExporter]]->setParameter([o:JRExporterParameter], > [o:JasperPrint]). > Cause: java.lang.NoSuchMethodException: > setParameter([o:JRExporterParameter], [o:JasperPrint]). Candidates: [] VM: > 1.6.0_07@http://java.sun.com/" at: #-5 > php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1059) #-4 > php.java.bridge.Request.handleRequest(Request.java:405) #-3 > php.java.bridge.Request.handleRequests(Request.java:481) #0 > C:\wamp\www\pruebas\jasper\java\Java.inc(337): > java_ThrowExceptionProxyFactory->getProxy(24, 'net.sf.jasperre...', > 'setParameter([o...', true) #1 > C:\wamp\www\pruebas\jasper\java\Java.inc(494): java_Arg->getResult(true) #2 > C:\wamp\www\pruebas\jasper\java\Java.inc(500): > java_Client->getWrappedResult(true) #3 > C:\wamp\www\pruebas\jasper\java\Java.inc(704): java_Client->getResult() #4 > C:\wamp\www\pruebas\jasper\java\Java.inc(1889): > java_Client->invokeMethod(21, 'setParameter', Array) #5 > C:\wamp\www\pruebas\jasper\java\Java.inc(2007): java_JavaProxy->_ in > C:\wamp\www\pruebas\jasper\java\Java.inc on line 300* > > *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT STATIC ATTRIBUTE IN > PHP > JAVA BRIDGE???* > > Thanks for your guide and help > > ---------------------------------------------------------------------------- > -- > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Saludos afectuosos, Israel González S --------------- Gerente General Better Choice Ltda - Software Estratégico a Medida Ingenieria Civil Industrial en Tecnologias de Información UC. ------------------------ Office: (56-2) 551 59 04 Cel: (56- 099) 381 40 58 skype: igonzals http://www.betterchoice.cl |
From: <php...@li...> - 2008-12-30 16:09:52
|
Hi, > Sorry but Class has method. I am sorry, but I don't understand this sentence. According to the link you have posted there is no such procedure, it's a method, not a procedure. So you must call it as accordingly. > The method is inherited from another class Methods can be inherited, procedures can't. > I found some people with this error in Google and with no > success in solution. Too bad. They should have looked at the PHP/Java Bridge documentation first. Please use the official API, the constructors you've used are helper routines and are not even documented, so I wonder how you figured out they exist. Regards, Jost Boekemeier |
From: <php...@li...> - 2008-12-30 04:13:00
|
Try this $exportManager = new Java ("net.sf.jasperreports.engine.export.JRRtfExporter"); // note that it is not JavaClass but Java The following code that you have in PHP $exportManager = new JavaClass("net.sf.jasperreports.engine.export.JRRtfExporter"); is equivalent to the following Java Code exportManager = JRRtfExporter.class; Use new JavaClass("classname) to access static methods and variables and new Java("classname") to use instance method and variables. -Ajit -----Original Message----- From: php...@li... [mailto:php...@li...] Sent: Monday, December 29, 2008 5:29 PM To: php...@li... Subject: [Php-java-bridge-users] Urgent: Jasper report problem Im trying to get that in php: /*JAVA CODE*/ JRRtfExporter exporter = new JRRtfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, masterPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sPathRTF); exporter.exportReport(); /*MY PHP JAVA BRIDGE IMPLEMENTATION*/ $exportManager = new JavaClass("net.sf.jasperreports.engine.export.JRRtfExporter"); $exportManagerParam = new JavaClass("net.sf.jasperreports.engine.JRExporterParameter"); $outputPath = realpath(".")."/"."informe.rtf"; $exportManager->setParameter($exportManagerParam->JASPER_PRINT,$jasperPrint) ; $exportManager->setParameter($exportManagerParam->OUPUT_FILE_NAME,$outputPat h); $exportManager->exportReport(); /*output*/ *Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JRRtfExporter]]->setParameter([o:JRExporterParameter], [o:JasperPrint]). Cause: java.lang.NoSuchMethodException: setParameter([o:JRExporterParameter], [o:JasperPrint]). Candidates: [] VM: 1.6.0_07@http://java.sun.com/" at: #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1059) #-4 php.java.bridge.Request.handleRequest(Request.java:405) #-3 php.java.bridge.Request.handleRequests(Request.java:481) #0 C:\wamp\www\pruebas\jasper\java\Java.inc(337): java_ThrowExceptionProxyFactory->getProxy(24, 'net.sf.jasperre...', 'setParameter([o...', true) #1 C:\wamp\www\pruebas\jasper\java\Java.inc(494): java_Arg->getResult(true) #2 C:\wamp\www\pruebas\jasper\java\Java.inc(500): java_Client->getWrappedResult(true) #3 C:\wamp\www\pruebas\jasper\java\Java.inc(704): java_Client->getResult() #4 C:\wamp\www\pruebas\jasper\java\Java.inc(1889): java_Client->invokeMethod(21, 'setParameter', Array) #5 C:\wamp\www\pruebas\jasper\java\Java.inc(2007): java_JavaProxy->_ in C:\wamp\www\pruebas\jasper\java\Java.inc on line 300* *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT STATIC ATTRIBUTE IN PHP JAVA BRIDGE???* Thanks for your guide and help ---------------------------------------------------------------------------- -- _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2008-12-30 02:03:43
|
Try with new JavaClass and not new Java -Ajit Sent via BlackBerry by AT&T -----Original Message----- From: php...@li... Date: Mon, 29 Dec 2008 22:41:52 To: <php...@li...> Subject: Re: [Php-java-bridge-users] Urgent: Jasper report problem Sorry but Class has method. See in http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/export/JRRtfExporter.html The method is inherited from another class I try with to java("your.class.com")->ATTRIBUTE And it still error persist and it's the same :( I found some people with this error in Google and with no success in solution. 2008/12/29 <php...@li...> > > > *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT > > STATIC ATTRIBUTE IN PHP > > JAVA BRIDGE???* > > With: > > java("your.class.com")->ATTRIBUTE > > > Please see the PHP/Java Bridge documentation for details. > > > > > > > ------------------------------------------------------------------------------ >_______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Saludos afectuosos, Israel González S --------------- Gerente General Better Choice Ltda - Software Estratégico a Medida Ingenieria Civil Industrial en Tecnologias de Información UC. ------------------------ Office: (56-2) 551 59 04 Cel: (56- 099) 381 40 58 skype: igonzals http://www.betterchoice.cl ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2008-12-30 01:53:54
|
Sorry but Class has method. See in http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/export/JRRtfExporter.html The method is inherited from another class I try with to java("your.class.com")->ATTRIBUTE And it still error persist and it's the same :( I found some people with this error in Google and with no success in solution. 2008/12/29 <php...@li...> > > > *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT > > STATIC ATTRIBUTE IN PHP > > JAVA BRIDGE???* > > With: > > java("your.class.com")->ATTRIBUTE > > > Please see the PHP/Java Bridge documentation for details. > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Saludos afectuosos, Israel González S --------------- Gerente General Better Choice Ltda - Software Estratégico a Medida Ingenieria Civil Industrial en Tecnologias de Información UC. ------------------------ Office: (56-2) 551 59 04 Cel: (56- 099) 381 40 58 skype: igonzals http://www.betterchoice.cl |
From: <php...@li...> - 2008-12-29 22:46:29
|
> *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT > STATIC ATTRIBUTE IN PHP > JAVA BRIDGE???* With: java("your.class.com")->ATTRIBUTE Please see the PHP/Java Bridge documentation for details. |
From: <php...@li...> - 2008-12-29 22:38:16
|
> [[c:JRRtfExporter]]->setParameter([o:JRExporterParameter], [o:JasperPrint]). > Cause: java.lang.NoSuchMethodException: The class JRRtfExporter (note the "c:...") doesn't contain a procedure with the name "setParameter". You probably want to invoke a setParameter method on a JRRtfExporter instance. |
From: <php...@li...> - 2008-12-29 22:29:27
|
Im trying to get that in php: /*JAVA CODE*/ JRRtfExporter exporter = new JRRtfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, masterPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sPathRTF); exporter.exportReport(); /*MY PHP JAVA BRIDGE IMPLEMENTATION*/ $exportManager = new JavaClass("net.sf.jasperreports.engine.export.JRRtfExporter"); $exportManagerParam = new JavaClass("net.sf.jasperreports.engine.JRExporterParameter"); $outputPath = realpath(".")."/"."informe.rtf"; $exportManager->setParameter($exportManagerParam->JASPER_PRINT,$jasperPrint); $exportManager->setParameter($exportManagerParam->OUPUT_FILE_NAME,$outputPath); $exportManager->exportReport(); /*output*/ *Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:JRRtfExporter]]->setParameter([o:JRExporterParameter], [o:JasperPrint]). Cause: java.lang.NoSuchMethodException: setParameter([o:JRExporterParameter], [o:JasperPrint]). Candidates: [] VM: 1.6.0_07@http://java.sun.com/" at: #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1059) #-4 php.java.bridge.Request.handleRequest(Request.java:405) #-3 php.java.bridge.Request.handleRequests(Request.java:481) #0 C:\wamp\www\pruebas\jasper\java\Java.inc(337): java_ThrowExceptionProxyFactory->getProxy(24, 'net.sf.jasperre...', 'setParameter([o...', true) #1 C:\wamp\www\pruebas\jasper\java\Java.inc(494): java_Arg->getResult(true) #2 C:\wamp\www\pruebas\jasper\java\Java.inc(500): java_Client->getWrappedResult(true) #3 C:\wamp\www\pruebas\jasper\java\Java.inc(704): java_Client->getResult() #4 C:\wamp\www\pruebas\jasper\java\Java.inc(1889): java_Client->invokeMethod(21, 'setParameter', Array) #5 C:\wamp\www\pruebas\jasper\java\Java.inc(2007): java_JavaProxy->_ in C:\wamp\www\pruebas\jasper\java\Java.inc on line 300* *¿¿HOW TO IMPLEMENT JRExporterParameter.JASPER_PRINT STATIC ATTRIBUTE IN PHP JAVA BRIDGE???* Thanks for your guide and help |
From: <php...@li...> - 2008-12-28 13:06:52
|
Sounds like a bug/problem in gcc/gcj ("GNU Java"). Here's the relevant part from Sam Ruby's coerce/select: else if (c == Integer.TYPE) result[i]=new Integer(s); When methods are invoked through reflection, Java automatically coerces an Integer to a primitive int. The code is more than 6 years old, so that I am pretty sure that it worked with Java 1.4. Since 1.5 Java this behaviour is documented (autoboxing/-unboxing). Please either use a real Java VM or compile your Java classes with GNU gcc >= 4.2, which implements the Java 1.5 spec. I will add this requirement (gcc >= 4.2) to the README.GCJ. Regards, Jost Bökemeier |
From: <php...@li...> - 2008-12-26 17:45:09
|
Hi, > look please on this page what I found to compile the > javabridge: > [link to personal web site deleted] the PHP/Java Bridge install instructions are here: http://php-java-bridge.sourceforge.net/pjb/installation.php Regards, Jost Bökemeier |
From: <php...@li...> - 2008-12-25 18:03:28
|
I'm trying to resolve this for 3 days, and I found solution just after I have submitted an email. The problem was I have used 192.168.1.5 (that is my pc address) instead of localhost. Zoran --- On Thu, 12/25/08, php...@li... <php...@li...> wrote: From: php...@li... <php...@li...> Subject: Re: [Php-java-bridge-users] problem with java_session() method To: php...@li... Date: Thursday, December 25, 2008, 9:52 AM Hi, I found that this test.php <?php require_once('http://192.168.1.5/JavaBridge/java/Java.inc'); $session=java_session(); ?> works fine if I call it from JavaBridge application in tomcat only if I change to: <?php require_once('java/Java.inc'); $session=java_session(); ?> but I need to use it from my application. Could somebody help me what did I miss to do here? Thanks, Zoran --- On Wed, 12/24/08, php...@li... <php...@li...> wrote: From: php...@li... <php...@li...> Subject: [Php-java-bridge-users] problem with java_session() method To: php...@li... Date: Wednesday, December 24, 2008, 1:28 PM Hi, I have the problem to execute this simple php file: <?php require_once('http://192.168.1.5/JavaBridge/java/Java.inc'); $session=java_session(); ?> The problem have started when I have preinstalled my OS. Everything used to work fine before. The error log is shown bellow. Could you indicate what is the problem here. Thanks, Zoran Dec 24, 2008 10:15:56 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet PhpCGIServlet threw exception java.lang.RuntimeException: PHP Warning: pfsockopen(): unable to connect to 192.168.1.5:9267 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in http://192.168.1.5/JavaBridge/java/Java.inc on line 1045 PHP Fatal error: Uncaught exception 'java_RuntimeException' with message 'Could not connect to the context server 192.168.1.5:9267. Error message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) ' in http://192.168.1.5/JavaBridge/java/Java.inc:1046 Stack trace: #0 http://192.168.1.5/JavaBridge/java/Java.inc(1063): java_HttpHandler->getChannel('9267') #1 http://192.168.1.5/JavaBridge/java/Java.inc(1174): java_HttpHandler->redirect() #2 http://192.168.1.5/JavaBridge/java/Java.inc(1201): java_Protocol->redirect() #3 http://192.168.1.5/JavaBridge/java/Java.inc(1264): java_Protocol->finish() #4 http://192.168.1.5/JavaBridge/java/Java.inc(620): java_Protocol->invokeEnd() #5 http://192.168.1.5/JavaBridge/java/Java.inc(677): java_Client->invokeMethod(0, 'getSession', Array) #6 http://192.168.1.5/JavaBridge/java/Java.inc(1644): java_Client->getSession(Array) #7 http://192.168.1.5/JavaBridge/ in http://192.168.1.5/JavaBridge/java/Java.inc on line 1046 at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:473) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:368) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:376) at php.java.servlet.CGIServlet.handle(CGIServlet.java:400) at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:356) at php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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.Http11AprProcessor.process(Http11AprProcessor.java:857) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509) at java.lang.Thread.run(Unknown Source) ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2008-12-25 17:52:51
|
Hi, I found that this test.php <?php require_once('http://192.168.1.5/JavaBridge/java/Java.inc'); $session=java_session(); ?> works fine if I call it from JavaBridge application in tomcat only if I change to: <?php require_once('java/Java.inc'); $session=java_session(); ?> but I need to use it from my application. Could somebody help me what did I miss to do here? Thanks, Zoran --- On Wed, 12/24/08, php...@li... <php...@li...> wrote: From: php...@li... <php...@li...> Subject: [Php-java-bridge-users] problem with java_session() method To: php...@li... Date: Wednesday, December 24, 2008, 1:28 PM Hi, I have the problem to execute this simple php file: <?php require_once('http://192.168.1.5/JavaBridge/java/Java.inc'); $session=java_session(); ?> The problem have started when I have preinstalled my OS. Everything used to work fine before. The error log is shown bellow. Could you indicate what is the problem here. Thanks, Zoran Dec 24, 2008 10:15:56 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet PhpCGIServlet threw exception java.lang.RuntimeException: PHP Warning: pfsockopen(): unable to connect to 192.168.1.5:9267 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in http://192.168.1.5/JavaBridge/java/Java.inc on line 1045 PHP Fatal error: Uncaught exception 'java_RuntimeException' with message 'Could not connect to the context server 192.168.1.5:9267. Error message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) ' in http://192.168.1.5/JavaBridge/java/Java.inc:1046 Stack trace: #0 http://192.168.1.5/JavaBridge/java/Java.inc(1063): java_HttpHandler->getChannel('9267') #1 http://192.168.1.5/JavaBridge/java/Java.inc(1174): java_HttpHandler->redirect() #2 http://192.168.1.5/JavaBridge/java/Java.inc(1201): java_Protocol->redirect() #3 http://192.168.1.5/JavaBridge/java/Java.inc(1264): java_Protocol->finish() #4 http://192.168.1.5/JavaBridge/java/Java.inc(620): java_Protocol->invokeEnd() #5 http://192.168.1.5/JavaBridge/java/Java.inc(677): java_Client->invokeMethod(0, 'getSession', Array) #6 http://192.168.1.5/JavaBridge/java/Java.inc(1644): java_Client->getSession(Array) #7 http://192.168.1.5/JavaBridge/ in http://192.168.1.5/JavaBridge/java/Java.inc on line 1046 at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:473) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:368) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:376) at php.java.servlet.CGIServlet.handle(CGIServlet.java:400) at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:356) at php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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.Http11AprProcessor.process(Http11AprProcessor.java:857) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509) at java.lang.Thread.run(Unknown Source) ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2008-12-24 21:28:51
|
Hi, I have the problem to execute this simple php file: <?php require_once('http://192.168.1.5/JavaBridge/java/Java.inc'); $session=java_session(); ?> The problem have started when I have preinstalled my OS. Everything used to work fine before. The error log is shown bellow. Could you indicate what is the problem here. Thanks, Zoran Dec 24, 2008 10:15:56 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet PhpCGIServlet threw exception java.lang.RuntimeException: PHP Warning: pfsockopen(): unable to connect to 192.168.1.5:9267 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in http://192.168.1.5/JavaBridge/java/Java.inc on line 1045 PHP Fatal error: Uncaught exception 'java_RuntimeException' with message 'Could not connect to the context server 192.168.1.5:9267. Error message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) ' in http://192.168.1.5/JavaBridge/java/Java.inc:1046 Stack trace: #0 http://192.168.1.5/JavaBridge/java/Java.inc(1063): java_HttpHandler->getChannel('9267') #1 http://192.168.1.5/JavaBridge/java/Java.inc(1174): java_HttpHandler->redirect() #2 http://192.168.1.5/JavaBridge/java/Java.inc(1201): java_Protocol->redirect() #3 http://192.168.1.5/JavaBridge/java/Java.inc(1264): java_Protocol->finish() #4 http://192.168.1.5/JavaBridge/java/Java.inc(620): java_Protocol->invokeEnd() #5 http://192.168.1.5/JavaBridge/java/Java.inc(677): java_Client->invokeMethod(0, 'getSession', Array) #6 http://192.168.1.5/JavaBridge/java/Java.inc(1644): java_Client->getSession(Array) #7 http://192.168.1.5/JavaBridge/ in http://192.168.1.5/JavaBridge/java/Java.inc on line 1046 at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:473) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:368) at php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:376) at php.java.servlet.CGIServlet.handle(CGIServlet.java:400) at php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:356) at php.java.servlet.CGIServlet.doGet(CGIServlet.java:469) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 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.Http11AprProcessor.process(Http11AprProcessor.java:857) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509) at java.lang.Thread.run(Unknown Source) |
From: <php...@li...> - 2008-12-24 09:57:52
|
Hello, first of all thank you for your response ... but I wanted to compile the javabridge to have the library "java.so" I will use as a module in PHP , look please on this page what I found to compile the javabridge: http://www.micromegastudio.com/index.php?id=10, 30,0,0,1,0 . Otherwise compile the source code? thank you in advance |
From: <php...@li...> - 2008-12-23 18:56:01
|
Hi, > Linux, but when execute phpize to compile javaBridge I got Too bad, but this will stay that way. -- Please report this problem to your OS vendor, not to us. If rpmbuild -tb php-java-bridge*.tar.gz or the debian build instructions fail, you can report this problem on this mailing list. Please note that the PHP/Java Bridge is pure Java, it doesn't need to be compiled against your OS or your PHP version. Regards, Jost Boekemeier |
From: <php...@li...> - 2008-12-23 10:30:28
|
Hello; I tried to install the javaBridge (version: php-java-bridge_5.2.2.tar.gz) on Linux, but when execute phpize to compile javaBridge I got an error message: root@localhost.localdomain: / usr/src/php-java-bridge-5.2.2 phpize # Configuring for: PHP API Version: 20041225 Zend Module Api No: 20050922 Zend Extension Api No: 220051025 Can not find autoconf. Please check your autoconf facility and the $ PHP_AUTOCONF environment variable is set correctly and then rerun this script. But yet I exported $ PHP_AUTOCONF: # Export PHP_AUTOCONF = / usr/src/autoconf-2.57 # Echo $ PHP_AUTOCONF # / Usr/src/autoconf-2.57 In the directory / usr / local / bin /, I checked the file exists autoconf. root@localhost.localdomain: / usr / local / bin # ll Total 17,016 -rwxrwxrwx 1 root root 7681 Dec 23 10:01 autoconf * -rwxrwxrwx 1 root root 7953 Dec 23 10:01 autoheader * -rwxr-xr-x 1 root root 33544 Dec 23 10:01 autom4te * -rwxr-xr-x 1 root root 17603 Dec 23 10:01 autoreconf * -rwxr-xr-x 1 root root 16051 Dec 23 10:01 autoscan * -rwxr-xr-x 1 root root 32872 Dec 23 10:01 autoupdate * -rwxr-xr-x 1 root root 3604 Dec 23 10:01 ifname * -rwxr-xr-x 1 root root 700 Feb 28 2007 pear * -rwxr-xr-x 1 root root 721 Feb 28 2007 peardev * -rwxr-xr-x 1 root root 684 Feb 28 2007 * pecl -rwxr-xr-x 1 root root 17243659 Feb 28 2007 php * -rwxr-xr-x 1 root root 1519 Feb 28 2007 php-config * -rwxr-xr-x 1 root root 4165 Dec 23 09:57 phpize * help please. Thank you |
From: <php...@li...> - 2008-12-21 21:04:16
|
> $session = java_session(); > $session->put("param1", someJavaObject); So you add a new object to the session store in each request and(!) keep the old objects referenced from a thread outside of the scope of the bridge? > So, on the first page I am doing > $sessionid=session_id(); > $myBackendHodler.storeParam1($sessionid, someJavaObject); > > On the second page I am doing > $sessionid=session_id(); > $someJavaObject = $myBackendHodler.getParam1($sessionid); someJavaObject should have been garbage collected, i.e. getParam1() should have returned null. If not, you have found the reason for the OOM. Regards, Jost Bökemeier |
From: <php...@li...> - 2008-12-21 18:08:31
|
>>then you've written a bug, I think. Maybe! But the only code I have is $session = java_session(); $session->put("param1", someJavaObject); On the other page I am doing $someJavaObject = $session->get("param1"); That is all I have. 2 lines of code for the session in php and one line in the second php. BTW, $someJavaObject would be temporarily referenced by many threads on the backend in the subsequent calls. Could that be the source of the problem? >>It is not possible to keep the state w/o using java_session(), at least not reliably. As I mentioned earlier, I have apache http server and tomcat. Instead of using java_session, I am using the session_id() within the apache server and against that id I am storing a data structure in the backend. So, on the first page I am doing $sessionid=session_id(); $myBackendHodler.storeParam1($sessionid, someJavaObject); On the second page I am doing $sessionid=session_id(); $someJavaObject = $myBackendHodler.getParam1($sessionid); Let me know if you think that is reliable. >> Please see our FAQ entry "How does the bridge handle OutOfMemoryErrors?" for details. I have gone through it but will go over it one more time. Thanks -Ajit ---------------------------------------------------------------------------- -- _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2008-12-21 16:20:10
|
Hi Ajit, > java_session(). In that case > the memory on the Tomcat server kept increasing with every > hit on the page. then you've written a bug, I think. > go up that much. I have found a way to get my work done > without using java_session. It is not possible to keep the state w/o using java_session(), at least not reliably. > Do you know why using a java_session() could create such > problem? Please see our FAQ entry "How does the bridge handle OutOfMemoryErrors?" for details. Regards, Jost Bökemeier |