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
|
4
|
5
|
6
|
7
|
|
8
|
9
|
10
|
11
|
12
|
13
|
14
|
|
15
|
16
|
17
|
18
|
19
|
20
|
21
|
|
22
|
23
|
24
(6) |
25
|
26
|
27
(2) |
28
(1) |
|
29
|
30
|
|
|
|
|
|
|
From: <php...@li...> - 2012-04-28 12:53:12
|
i am trying to listen some listener from java(asterisk api to listen
events) in php. i run the php program its working and catches some events
but after few minute it will exit abnormally.
*my source code<?php
ini_set("dallow_url_include","On");
require_once("http://localhost:8087/JavaBridge/java/Java.inc");
class Listener
{
function onManagerEvent($managerEvent)
{
try{
$str="HangupEvent";
$str2="DialEvent";
$str1=trim($managerEvent->getClass()->getSimpleName());
if(java_cast($str1,"string")==$str)
{
$hang_up_event= new
java("org.enjaysynapse.manager.event.HangupEvent");
$hang_up_event=$managerEvent;
$number=java_cast($hang_up_event->getCallerIdNum(),"string");
$received_date=java_cast($hang_up_event->getDateReceived(),"string");
$unique_id=java_cast($hang_up_event->getUniqueId(),"string");
echo "HangupEvent Number=".$number."\tCallReceived
Date=".$received_date."\tUniqueId=".$unique_id."\n";
}
if(java_cast($str1,"string")==$str2)
{
$Dail_event= new java("org.enjaysynapse.manager.event.DialEvent");
$Dail_event=$managerEvent;
$number=java_cast($Dail_event->getCallerIdNum(),"string");
$received_date=java_cast($Dail_event->getDateReceived(),"string");
$unique_id=java_cast($Dail_event->getUniqueId(),"string");
$scr_channel=java_cast($Dail_event->getChannel(),"string");
$destination=java_cast($Dail_event->getDestination(),"string");
echo "DialEvent
Number=".$number."\tDestination=".$destination."\tCallReceived
Date=".$received_date."\tUniqueId=".$unique_id."\tSRC=".$scr_channel."\n";
}
}
catch(JavaException $e){
echo "list.php onManagerEvent---error---->".$e;
}
}
}
function getListener()
{
try{
return java_closure(new Listener(), null, array(new
Java("org.enjaysynapse.manager.ManagerEventListener")));
}
catch(JavaException $e){
echo "list.php getListener---error---->".$e;
}
}
?>*
*Error :-*
*Fatal error:* Call to a member function getSimpleName() on a non-object in
/var/www/list.php on line 14
Notice: Uninitialized string offset: 6 in
http://localhost:8087/JavaBridge/java/Java.inc on line 786
Fatal error: An unchecked exception occured during script execution. Please
check the server log files for details. in
http://localhost:8087/JavaBridge/java/Java.inc on line 776
|
|
From: <php...@li...> - 2012-04-27 11:04:58
|
Hi
I am using the bridge to communicate with Spring beans on the server side :
public static function loadSpringBean($name)
{
$session = java_session();
$ctx= java("org.springframework.web.context.support.WebApplicationContextUtils")->getWebApplicationContext($session->getServletContext());
return $ctx->getBean($name);
}
and then I call methods on the bean - All works ok
Now I want to pass on the name of the current user, so I added : $session->put("username", $username);
Now how do I get at this on the server side - I have tried
ServletRequestAttributes attr = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes();
HttpSession session=attr.getRequest().getSession(false);
String username= session.getAttribute("username"));
but this only leads to an Exception: No thread-bound request found: Are you referring to request attributes outside of an actual web request
Is there any utility method in the bridge, where I can get at the current session/request
Hermod
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DNB Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email.
This email message has been virus checked by the anti virus programs used in the DNB Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
From: <php...@li...> - 2012-04-27 10:46:01
|
Hello ,
We are using the bridge however we are facing difficulty to implement it
with event listeners.
Any help will be appreciated.
Thanks,
--
*Sanjay Gund*
H.O :-0260-6612977
|
|
From: <php...@li...> - 2012-04-24 21:04:55
|
> com.zend.javamw.a You seem to use a product called Zend Java Bridge. But this is the support forum of the PHP/JavaBridge. :) |
|
From: <php...@li...> - 2012-04-24 15:53:03
|
I've been building an app using the iText library for PDFs. So far so
good. Except now I'm getting this error with the following code:
public function sigAction()
{
$outfile = '/home/beau/pdf/public/pdfs/OUT.pdf';
$output = new java('java.io.FileOutputStream', $outfile);
$pdffile = '/home/beau/pdf/public/pdfs/IN.pdf';
try {
java_require('/home/beau/pdf/iText/itextpdf-5.2.1.jar');
$PdfReader = new java('com.itextpdf.text.pdf.PdfReader', $pdffile);
$PdfStamper = new java('com.itextpdf.text.pdf.PdfStamper');
$version = new Java("java.lang.Character", '0');
$stamper = $PdfStamper->createSignature($PdfReader, $output, $version); //<-- error here $stamper->close();
}
catch(Exception $e){
$e->getMessage();
}
}
The error that's getting thrown is when I call the
$PdfStamper->createSignature( ... ) method. The $version (I guess) needs
to be a char type, and I'm pretty sure it is, but it still throws the
conversion exception:
Java Exception com.zend.javamw.a: Cannot convert 0 of type [class java.lang.Character] to char
com.zend.javamw.a: Cannot convert 0 of type [class java.lang.Character] to char
at com.zend.javamw.n.b(Unknown Source)
Any help would be appreciated. :D
-Beau
|
|
From: <php...@li...> - 2012-04-24 09:02:32
|
I am out of the office until 04/26/2012. Note: This is an automated response to your message "[Php-java-bridge-users] about Chinese parameter encode" sent on 04/23/2012 10:47:36 PM. This is the only notification you will receive while this person is away. |
|
From: <php...@li...> - 2012-04-24 06:33:31
|
Thanks.
I use iconv function to the parameter and it works well.
iconv('GBK','UTF-8',$parameter)
------------------ 原始邮件 ------------------
发件人: "php-java-bridge-users"<php...@li...>;
发送时间: 2012年4月24日(星期二) 下午2:28
收件人: "php-java-bridge-users"<php...@li...>;
主题: Re: [Php-java-bridge-users] about Chinese parameter encode
Hi.
Please set the java back end to utf 8 (or 16) and save the php file in the
same format. Use the java_set_file_encoding() function, if necessary.
I think earlier versions contained a bug when getbytes(<enc>) was called.
Please check the changelog and NEWS file of your version (part of the
source download).
However, using the same encoding at both ends should fix it.
Regards,
Jost B?kemeier
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2012-04-24 06:28:11
|
Hi. Please set the java back end to utf 8 (or 16) and save the php file in the same format. Use the java_set_file_encoding() function, if necessary. I think earlier versions contained a bug when getbytes(<enc>) was called. Please check the changelog and NEWS file of your version (part of the source download). However, using the same encoding at both ends should fix it. Regards, Jost Bökemeier |
|
From: <php...@li...> - 2012-04-24 03:47:56
|
I use php-java-bridge-4.0.7 to invoke java function in php program at linux system.
but the parameter of Chinese string in php program is changed in java function.
The code is at the below.
$myj = new Java("PdfConvertor");
$myj->generatePDFWithWatermark('/tmp/08.pdf','/tmp/a.pdf','中国通信标准化协会','center');
The 3th parameter of the function generatePDFWithWatermark is Chinese.
But the java class runs normally in terminal.
I set parameters about encode to GBK in the file /etc/profile and php.ini.But it doesn't work.
what's my problem? |