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
(1) |
3
(1) |
|
4
(4) |
5
(3) |
6
(5) |
7
(2) |
8
(1) |
9
(3) |
10
(2) |
|
11
(1) |
12
(5) |
13
(2) |
14
(1) |
15
|
16
|
17
|
|
18
|
19
|
20
(1) |
21
|
22
|
23
|
24
|
|
25
|
26
|
27
(4) |
28
(1) |
29
(1) |
30
(2) |
|
|
From: <php...@li...> - 2006-06-12 18:41:59
|
Hi,
> package jl;
> public class phptest{ ...
> public String test(String str) { ...
> if i write "java_require("c:/phptest.jar"); $tf =new
> Java("jl/phptest");",,,it shows error.
>
> how can i write it?
In PHP/Java Bridge version 3.0.8:
jar tvf c:/phptest.jar should display:
jl/phptest
META-INF/MANIFEST.MF
The PHP code may look like:
java_require("c:/phptest.jar");
$tf = new Java("jl.phptest");
$tf->test("hello");
In PHP/Java Bridge 3.1.0 you can convert the java
library into a PHP class and require it:
convert your java library /libraries to PHP code:
java -jar JavaBridge.jar --convert c:/php5/pear
c:/phptest.jar
The above command creates the PHP class jl_phptest in
c:/php5/pear/phptest/:
<?php
/* ini_set("include_path", "c:/php5/pear"); */
require_once("phptest/jl_phptest.php");
$tf = new jl_phptest();
$result = $tf->test("hello");
echo "$result";
?>
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com
|
|
From: <php...@li...> - 2006-06-12 18:23:07
|
Hi [please excuse the delay] > Added 1504821 to Issue Tracker. great, thank you very much for these bug reports! > > X_javabridge_redirect, referer: Interesting. They probably have a hash function which doesn't allow upper case and probably use this function to also hash up headers from applications. I have attached a patch called php-java-bridge-3.0.8.3_to_3.0.8.4.patch, it should fix this and the "ar" issue. I will apply it to 3.0.8 and 3.1.0, when I have some time. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
|
From: <php...@li...> - 2006-06-12 14:59:13
|
Added 1504821 to Issue Tracker.
Cheers,
Pat
php...@li... wrote:
> I added some debug output to begin_header in client.c:
>
> case 'X':// Redirect
> {
> php_log_err("Got X");
> php_log_err(str);
> char *key;
> static const char context[] = "X_JAVABRIDGE_CONTEXT";
> static const char redirect[]= "X_JAVABRIDGE_REDIRECT";
> if(!(*ctx)->peer_redirected && !strcmp(str, redirect)) {
> php_log_err("redirect");
>
> And this is what I get:
>
> [Sat Jun 10 21:50:47 2006] [error] [client 127.0.0.1] Got X, referer:
> http://localhost:81/JavaBridge/index.php
> [Sat Jun 10 21:50:47 2006] [error] [client 127.0.0.1]
> X_javabridge_redirect, referer: http://localhost:81/JavaBridge/index.php
>
> But no 'redirect'; the header has been munged to Mixed case, so the
> strcmp against redirect fails. I suspect this is happening in the Web
> Server implementation of HttpServletResponse.
>
> HTTP spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2)
> states that header field names are case-insensitive, so the comparison
> should use strcasecmp. Changing strcmp to strcasecmp in lines 398, 414,
> 424 and 444 fixes the problem.
>
> Hope this is useful, and thanks again for a really useful tool :-)
>
> Cheers,
>
> Pat
>
> php...@li... wrote:
>
>> I successfully built php-java-bridge_3.0.8.3 on Solaris 10 U1 x86. I'm
>> now trying to deploy it. I have Apache 2.2 + PHP5 on the 'client' end,
>> Sun Java System Web Server 6.1 SP5 on the server end.
>>
>> In my php.ini, I have:
>>
>> extension = java.so
>> [java]
>> java.hosts = "127.0.0.1:80"
>> java.servlet = "/JavaBridge/JavaBridge.phpjavabridge"
>> java.log_level="4"
>>
>>
>> After some tweaks to fix some SJSWS specific issues (ensuring that all
>> directories in the pat to the shared docs directory are 755, changing
>> the ACL to allow PUT), I'm stuck. test.php hangs before it shows the
>> bottom of the page.
>>
>> The WS error log shows an NPE in GlobalRef.get. Here is the whole
>> interaction as logged at WS:
>>
>> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT
>> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798:
>> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <C
>> v="java.lang.System" p="C" i="136880520" >
>> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT
>> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798:
>> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> </C>
>> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT
>> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798:
>> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 <-- <O
>> v="1" p="O" i="136880520"/>
>> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT
>> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798:
>> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30
>> re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ
>> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT
>> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798:
>> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <I
>> v="1" m="getProperties" p="I" i="136886208" >
>> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT
>> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798:
>> [/JavaBridge] ServletContext.log(): JavaBridge ERROR: An exception occured
>> [09/Jun/2006:23:10:33] failure (21795): for host 127.0.0.1 trying to PUT
>> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798:
>> [/JavaBridge] ServletContext.log():
>> java.lang.NullPointerException
>> at php.java.bridge.GlobalRef.get(GlobalRef.java:30)
>> at php.java.bridge.Request.getGlobalRef(Request.java:88)
>> at php.java.bridge.Request.begin(Request.java:352)
>> at php.java.bridge.Parser.CALL_BEGIN(Parser.java:95)
>> at php.java.bridge.Parser.parse(Parser.java:156)
>> at php.java.bridge.Request.handleRequest(Request.java:460)
>> at php.java.bridge.Request.handleRequests(Request.java:493)
>> at
>> php.java.servlet.PhpJavaServlet.handleSocketConnection(PhpJavaServlet.java:213)
>> at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:260)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
>> at
>> com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
>> at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580)
>>
>> 30 seconds later, Apache reports:
>>
>> [Fri Jun 09 23:11:03 2006] [notice] child pid 21735 exit signal
>> Segmentation fault (11)
>>
>> Any idea what could be happening here?
>>
>> I'm trying to interpret the trace from the WS error file - extracting
>> the relevant stuff, it says:
>>
>> # $v = new JavaClass("java.lang.System");
>> <C v="java.lang.System" p="C" i="136880520" >
>> </C>
>> <O v="1" p="O" i="136880520"/>
>>
>> re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ
>>
>> # $v->getProperties()
>> <I v="1" m="getProperties" p="I" i="136886208" >
>>
>> So the first method invocation returns an object reference '1', which is
>> then used in the second invocation, but, by then, this object doesn't
>> seem to exist. I can see the redirection to the named pipe in between
>> the two calls, but, from the stack trace, the client doesn't seem to be
>> following the redirect - it's just doing another PUT.
>>
>> It looks like the client should be setting the
>> X_JAVABRIDGE_OVERRIDE_HOSTS header to override the redirect, but, for
>> some reason, it doesn't, so the server doesn't know to preserve the
>> context in the second PUT.
>>
>> Does this all make sense? Any suggestions on tracking this down further?
>>
>> Cheers,
>>
>> Pat
>>
--
------------------------------------------------------------------------
Pat Patterson <mailto:pat...@su...>
Federation Architect
Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet
Identity <http://planetidentity.org>
Identity Management Products <http://www.sun.com/identity>
/Sun Microsystems, Inc. <http://www.sun.com/>/
------------------------------------------------------------------------
|
|
From: <php...@li...> - 2006-06-12 14:44:53
|
Hi,
php...@li... wrote:
> ...
> if i write "java_require("c:/phptest.jar"); $tf =new
> Java("jl/phptest");",,,it shows error.
>
> how can i write it?
I think the syntax is $tf =new Java("jl.phptest"); - dot instead of slash.
Cheers,
Pat
--
------------------------------------------------------------------------
Pat Patterson <mailto:pat...@su...>
Federation Architect
Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet
Identity <http://planetidentity.org>
Identity Management Products <http://www.sun.com/identity>
/Sun Microsystems, Inc. <http://www.sun.com/>/
------------------------------------------------------------------------
|
|
From: <php...@li...> - 2006-06-12 10:25:47
|
for example
[code]
package jl;
public class phptest{
/**
* A sample of a class that can work with PHP
* NB: The whole class must be public to work,
* and of course the methods you wish to call
* directly.
*
* Also note that from PHP the main method
* will not be called
*/
public String foo;
/**
* Takes a string and returns the result
* or a msg saying your string was empty
*/
public String test(String str) {
if(str.equals("")) {
str = "Your string was empty. ";
}
return str;
}
/**
* whatisfoo() simply returns the value of the variable foo.
*/
public String whatisfoo() {
return "foo is " + foo;
}
/**
* This is called if phptest is run from the command line with
* something like
* java phptest
* or
* java phptest hello there
*/
public static void main(String args[]) {
phptest p = new phptest();
if(args.length == 0) {
String arg = "";
System.out.println(p.test(arg));
}else{
for (int i=0; i < args.length; i++) {
String arg = args[i];
System.out.println(p.test(arg));
}
}
}
}
[/code]
if i write "java_require("c:/phptest.jar"); $tf =new
Java("jl/phptest");",,,it shows error.
how can i write it?
|