167 questions
1
vote
1
answer
251
views
Javabridge-JDBC-PHP: throwing fatal error after upgrading PHP from 7.4 to 8.2
I am after upgrading PHP 7.4 to 8.2 due to vulnerabilities. I am having a dilemma with one of our legacy web apps that creates PDF report using jasperReport.
I'm getting the following error -
Fatal ...
1
vote
1
answer
248
views
Tomcat Run Php through Php/ Java Bridge
im working with tomcat and im tryng to run php thorugh tomcat. fot that i downloaded a sample JavaBridge.war file and pasted it into webapps folder of tomcat. but when i start the tomcat server it ...
0
votes
0
answers
44
views
How do I place files of JavaBridge for my PHP Project?
I'm here trying to deal with how to place the JavaBridge package that I downloaded, into my PHP project to start using its classes contained (for example to require into my php file the java.inc class)...
0
votes
1
answer
59
views
How to call a Jasper report (.jasper) from Phalcon
I have many PHP scripts that call compiled Jasper reports (.jasper), using the PHPJavaBridge. I would like to convert all those scripts to the Phalcon framework, which gets complied into a C ...
1
vote
1
answer
301
views
failed to open stream: HTTP request failed using phpjavabridge
i have problem when i use php java bridge i got error like this
Warning: require_once(http://localhost:8080/JavaBridge/java/Java.inc): failed to open stream: HTTP request failed! in /Library/WebServer/...
1
vote
0
answers
432
views
require_once(): Failed opening required on javabridge
I have question.
I have setup my java and my java bridge. I have run and open port at 8080 but when I run my php code I got error here:
Warning: require_once(http://localhost:8080/JavaBridge/java/Java....
0
votes
0
answers
135
views
how to fix operator + undefined for the arguments type(s) int, object
i have source code call as PhpArray Class from JavaBridge
public final class PhpArray extends AbstractMap
{
private TreeMap t;
private HashMap m;
public PhpArray() {
this.t = ...
0
votes
0
answers
45
views
how to fix evaluation of for looping
I have code of javabridge but when I want to rebuild this code, I got an error in this code:
code witch call the code error is here
private <T> SoftReference getReference(final ...
0
votes
1
answer
171
views
how to set java bridge http local as static port?
I have a question about php/java bridge. I have run it and I got prompt like this one
I want to set this for only run in http_local port 8080 and not show again the prompt choice?
I have a search in ...
1
vote
0
answers
270
views
how to call javaBridge Main from java application
i have question about this
this is my main class
this is mycode
import dxtr.mtapi.mt4.data.QuoteClient;
import php.java.bridge.JavaBridge;
public class Main {
public ...
0
votes
0
answers
560
views
How to run JAR file using php script?
I tried JAVA bridge to get output from my jar file followed this https://stackoverflow.com/a/10253798/1870048, I am using XAMP Server and from that Apache and Tomcat server is been used
...
0
votes
0
answers
385
views
How to solve javaBridge error php.java.fastcgi.ConnectionException?
I am using tomcat8.5, apache2, php7.25 on ubuntu 18.04
I installed php on my computer and did other configurations and installed required libraries. In the first day it worked fine and I could run a ...
1
vote
0
answers
573
views
Unable to run the java class from php using PHP-Java Bridge
I am calling a java class from PHP program using Php-Java Bridge and I am using the Tomcat server.
Where I have created a Jar file of my java program and put it in C:\Tomcat 8.5\webapps\JavaBridge\WEB-...
1
vote
0
answers
241
views
Unable to run java file in PHP using PHP Java Bridge
I am executing a Java class in PHP using PHP-Java Bridge following Official documentation.
I have moved NewFile.jar in lib folder in web apps/WEB-INF folder of tomcat
I am creating a file in java then ...
2
votes
0
answers
1k
views
How to show Jasper Reports in web browser using PHP/Java Bridge?
I successfully integrated PHP/Java Bridge, and am able to show a Jasper report through Jasper Viewer which is a Swing application component. I just want to show it in a web browser using PHP/Java ...
1
vote
1
answer
167
views
Pretty Permalinks not working - WordPress with Tomcat
Thanks to someone's odd requirements, I've managed to serve WordPress with Tomcat 9. Everything works fine with the help of PHP/Java Bridge.
However, I'm unable to follow any links from home page when ...
1
vote
1
answer
214
views
PHP Java Bridge syntax for creating object with static field?
I would like to implement this PDFBox example in PHP Java Bridge but I'm stuck on the PDType1Font.HELVETICA_BOLD field:
How to create this in PHP Java Bridge:
PDFont font = PDType1Font....
0
votes
1
answer
282
views
sometimes I unable to connect to connect to socket using php java bridge
we are using java bridge from PHP application to connect to java application.
But at times, connection get failed to connect. Below is the fucntion used to connect. I am not getting what the issue is. ...
0
votes
1
answer
1k
views
How to require Java.inc in laravel
I configure Java bridge with tomcat. Which is accessible in http://localhost:8080/JavaBridge/java/Java.inc.
In core php we use require_once to include file. require_once("http://localhost:8080/...
0
votes
1
answer
336
views
This code compress a SQL file to zip using Php. I need to set password for the zip file produced
This code helps to make SQL file to a zip file in Php.
Here a SQL file is compressed to a zip file.
All I need is to set password for this.
Can I use PHP-java bridge to make this happen?
function ...
-3
votes
1
answer
522
views
PHP/Java Bridge Error
I am trying to connect the PHP with Java with the PHP/Java Bridge library. But I am facing an error as given below.
Please check below screenshot.
0
votes
0
answers
208
views
Running php script in jsp page
Fatal Error: Failed to start PHP ["php-cgi", "-v"], reason:
java.io.IOException: Cannot run program ""php-cgi"" (in directory
"C:\Users\user"): CreateProcess error=2, Impossibile trovare il file
...
1
vote
1
answer
452
views
Php java bridge Error : the procedure entry point php set error handling could not be located in dynamic link library C:\xampp\php\ext\php_java.dll
Integrating PHP java bridge, facing some issue while restarting Apache server as showing error:
The procedure entry point php set error handling could not be located in dynamic link library C:\xampp\...
0
votes
1
answer
2k
views
Failed to Start ["php-cgi","-v"]
Im trying to build php-java bridge but i always get error with
"HTTP Status 500 - php.java.bridge.http.FCGIConnectException: Could not connect to server".
Fatal Error: Failed to start PHP ["php-cgi", ...
0
votes
1
answer
590
views
Issues while using jasperreports Java bridge and symfony
I'm building a web application using symfony 2 php. And I want to generate some reports using jasperreports. I used Java Bridge and I have the Java bridge war deployed in my tomcat 7 but when I try to ...
-1
votes
1
answer
48
views
why getting inside PHPdebugger?
Problem started from here.
page1.php code snippet:
<a href=page2.php?subid=1>xyz</a>
Nothing related gets logged in php error log. Tried try.. catch block and this seems page1.php works ...
0
votes
0
answers
397
views
trouble getting link to user-defined java class from php using php-javaBridge
We need to call a user defined java function within php code,so javaBridge connection is needed.
we have done the php-javabridge-configuration and it is working fine.
http://phprambabu.blogspot.in/...
0
votes
0
answers
283
views
PHP classes not found in Java Bridge
For a project i need to use JavaBridge 7.0.1 on a TomcatServer 7.
Everything worked well (test.php for example) but after i had put my project inside i have the following error :
Etat HTTP 500 - ...
1
vote
1
answer
370
views
Trouble using Javabridge with Python
I successfully installed javabridge using $pip3 install javabridge on my Mac's virtual environment. But when I tried to import javabridge in my python3 code, this is what I get:
import javabridge
...
-2
votes
1
answer
73
views
Installing JavaBridge on Windows 8 for connecting BIRT with PHP web application
i know that javabridge.war and birt.war needed for connecting java with php. but, there is a problem with my javabridge installation. can somebody help me how to install javabridge on windows 8?
0
votes
1
answer
587
views
How to get HttpServletRequest object in PHP Java Bridge?
I am trying to setup PHP Java Bridge and I am able to invoke Java Method from PHP, But I am unable to get the request object (HttpServletRequest) in my java class. How can I get that ?
My PHP source ...
0
votes
1
answer
860
views
xls download issue with jasper reports in php
I have implemented jasper reports using version 6.3.1 in my application with php integration by using This Link And everything is working fine with this code and i can able to export pdf & csv ...
2
votes
0
answers
1k
views
Error in php/java bridge "PHP not found. Please install php-cgi" on mac
I'm working on MAMP server normally for php and I have htdocs folder on Users/myusername/Documents/ folder and to now because I want to work with javabridge library to execute java code through php ...
0
votes
1
answer
2k
views
Include .jar-File in PHPJAVA Bridge
I try to load the "Tasks" from a .mpp-File.
If I get the current date by java.util.Date it works very fine, to access JAVA but if i try to access the MPPReader I get the error:
CreateInstance ...
4
votes
3
answers
3k
views
How to pass value from java to PHP?
I am trying to pass a value from java class to PHP file on the server to test this value and reply to java. The problem it returns null value.
Java Code
package phpJava;
import java.io.*;
import ...
1
vote
2
answers
687
views
How to pass java.util.Date to Java library with help of php-java bridge
Im using javabridge to connect php to jasper reports and Im trying to pass two parameters but I get warnings and errors
Warning: Unchecked exception detected: [[o:Response$...
2
votes
0
answers
1k
views
Passing parameters from php javabridge JasperReports
I'm working with javabridge and I get this warning and error:
( ! ) Warning: Unchecked exception detected: [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared java.lang.RuntimeException ...
2
votes
1
answer
1k
views
Integration Java and Php by using php-script.jar, php-servlet.jar, and JavaBridge.jar
I am using php-script.jar, php-servlet.jar, and JavaBridge.jar to transfer data from from php script to java controller.
But , now I need to send data from java view page to php view page.
I am not ...
0
votes
2
answers
311
views
JavaBridge BIRT Send Email
I need some help in my php code. My reports are done in eclipse BIRT giving them a .rptdesign file extension and I want to send it through gmail. I am successful in sending but the images are broken ...
0
votes
0
answers
842
views
JavaBridge - Probably php was not installed as "/usr/bin/php-cgi" or "c:/php/php-cgi.exe"
I am trying to setup a JavaBridge between my Java-application and Apache/PHP application. First I tried through CLI =>
MacBook-Pro:php-java-bridge_5-2 username$ java -classpath JavaBridge.war ...
0
votes
0
answers
269
views
PHP/JAVA bridge Tomcat 7 in Solaris 11.2 sparc
I have installed PHP 7.0.9 and copied JavaBridge.war file to tomcat7/webapps folder and .jar files on tomcat7/lib folder. Then I restarted the Tomcat server. I found this error:
Fatal Error: Failed ...
1
vote
1
answer
113
views
JavaBridge errno=10054 Closed by Remotehost
I am implementing a Java Application (not a dynamic web project) for a server.
This should be an UDP listener running in background calling PHP for each UDP datagram to evaluate the UDP data.
I got a ...
-2
votes
1
answer
743
views
`HOW TO FIX: Notice:` Undefined property: java_Client::$protocol in http://localhost:8080/JavaBridge/java/Java.inc on line 559
I am using famous PHP-JAVA bridge and I get this error in Java.inc file.I made a property named $protocol in class java_Client and I'm still getting this error. Anybody knows how to fix it?
1
vote
1
answer
269
views
connecting php and java via a javabridge port in openshift
On my locahost I am able to connect my php server codes to a java base code running on my netbeans via a javabridge imported class. The code for the java is below
public class Listener {
public ...
2
votes
2
answers
1k
views
Notice: Undefined property: java_Client::$cancelProxyCreationTag in http://localhost:8080/JavaBridge/java/Java.inc on line 1994
I'm trying to use Jasper report with a PHP yii application. I've already installed jasper-report-server with obviouslly tomcat and apache with php. I've already make the configuration to download the ...
0
votes
1
answer
199
views
PHP-Java-Bridge , usage of extend?
Java:
package test;
public class HelloWorld {
public HelloWorld(String args){
}
public void ppp(){
System.out.println("....");
};
public void set(HelloWorld hw){
hw.ppp();
}
public ...
1
vote
0
answers
538
views
Reporting with JavaBridge, php and Ireport
I´m using javabridge and it worked perfectly when exporting my report from php. I´m following this site instructions:
https://github.com/tsuyu/jasper-report-php-integration
This is the code for ...
0
votes
1
answer
618
views
PHP/Java Bridge, How to pass parameter to constructor method when create the instance?
package test;
public class HelloWorld {
public static final String JAVABRIDGE_PORT = "8080";
static final php.java.bridge.JavaBridgeRunner runner = php.java.bridge.JavaBridgeRunner
...
1
vote
1
answer
260
views
php/java bridge call php application through java application
I am new in PHP/Java bridge I installed it successfully and am also successful to call a Java function through PHP script, but I just want to do the exact opposite of this is that I want to call a PHP ...
2
votes
0
answers
529
views
java.io.IOException: PHP FastCGI server not running
I configured piwik php code to my apache tomcat server using java-bridge and php-servlet api,
It is working fine for the local environment with window, but while same thing done on test environment, ...