PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Oct 28, 2020 6:14 am

All times are UTC - 5 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Mon Jul 19, 2010 10:27 am 
Offline
Forum Newbie

Joined: Mon Jul 19, 2010 10:23 am
Posts: 2
I am using php-java bridge to access the methods of a java file from the comand prompt every thing works fine but when i try to run this script in an yweb browser I get
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet PhpJavaServ in /java/Java.inc on line 520



The code---->

Syntax: [ Download ] [ Hide ]
<?php

$amount=10;
$trackid='111111111';
require_once("/java/Java.inc");
java_require('/home/zyx/public_html/Test/');
$pipe = new Java("Payment");
//$amount = 100;
$pipe->setCurrency("37756");
$pipe->setLanguage("USA");
$pipe->setAction("1");
$pipe->setResponseURL("https://www.xyz.in/intermediate.php");
$pipe->setErrorURL("https://www.xyz.in/failure.php");
$pipe->setResourcePath('/home/zyx/public_html/Test/');
$pipe->setAlias("26788");
$pipe->setAmt($amount);
$pipe->setTrackId($trackid);
echo $status = $pipe->performPaymentInitialization();


$payID = $pipe->getPaymentId();
$payURL = $pipe->getPaymentPage();
$urlToRedirect = $payURL . '?PaymentID=' . $payID;
echo $urlToRedirect;
//header('Location: '. $urlToRedirect);
$urlToRedirect="http://www.google.com/";
header('Location: '. $urlToRedirect);
?>



I dont know why I am getting this error plz help


Last edited by Benjamin on Mon Jul 19, 2010 10:30 am, edited 1 time in total.
Added [syntax=php] tags.


Top
 Profile  
 
PostPosted: Mon Jul 19, 2010 10:30 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6887
:arrow: Double post = Locked

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group