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
(3) |
7
|
8
|
9
|
|
10
(3) |
11
(2) |
12
|
13
|
14
|
15
(2) |
16
|
|
17
(3) |
18
(4) |
19
(10) |
20
(8) |
21
(1) |
22
(2) |
23
|
|
24
|
25
(1) |
26
(7) |
27
|
28
(6) |
29
(5) |
30
(2) |
|
31
|
|
|
|
|
|
|
|
From: <php...@li...> - 2008-08-30 11:17:29
|
Hi, The Java.inc is programmed so that if no context is available to Apache/PHP, the default web context "JavaBridge" is used. If you remove it, you will get the said error message. If you want to use your own context, you'll need to hard-code the context, for example via a define(...) directive before the Java.inc is loaded, or store your application into a custom context and set the JAVA_SERVLET definition to User. The "User" setting extracts the context and forwards to the appropriate web context of the back-end. Please see our FAQ for details. 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...> - 2008-08-30 11:06:21
|
Hi, Please see the FAQ topic "I want to use Apache/IIS as a front-end and tomcat as a back end. How do I enable PHP and JSP for all my applications?" for details. 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...> - 2008-08-29 23:03:30
|
Hi Jost, I think that more informations about the scenario that I'm using is also important. I saw in a lot of discussion in the mailing list talking about mod_jk and the applications being in the same container. In my machine (Ubuntu 8.04) I just installed apache2 and mod_php 5.2.4 and copied sessionSharing.php and java/Java.inc from JavaBridge.war to /var/www. I also modified the /etc/php5/java.ini to contain the following: [java] java.hosts = 127.0.0.1:8080 java.servlet = On ;; Off, On or User Then I exploded the JavaBridge.war to a JavaBridge.war/ folder and modified the link in sessionSharing.jsp to point to http://localhost/sessionSharing.php (the file in apache root dir, /var/www) and deployed it to JBoss. The session sharing worked fine in this scenario. After this, I undeployed the JavaBridge.war and modified my Seam application to have the following servlet: <servlet-name>PhpJavaServlet</servlet-name> <servlet-class>php.java.servlet.PhpJavaServlet</servlet-class> I also copied the libraries to my application libs folder, since without this I get ClassNotFound errors. After this I tried to do the same what I described in the first scenario, but what I get is: protocol error: HTTP Status 403 - ------------------------------ *type* Status report *message* ** *description* *Access to the specified resource () has been forbidden.* ------------------------------ JBossWeb/2.0.1.GA. Check the back end log for details. If I put the sessionSharing.php in my Seam application the session is shared without problems, but I really need something like in the first scenario. I'm a bit lost about the discussion of mod_jk and don't know how I must proceed. Can you give me some light? Thanks and best regards, Carlos. 2008/8/29 Carlos Eduardo Rodrigues Diógenes <cer...@gm...> > Hi, > > Thanks for the reply Jost, but I can't find anything related with forward > requests to a custom context in FAQ, can you point me to where is this > information? > > Thanks, > Carlos. > > 2008/8/29 <php...@li...> > > Hi, >> >> > Using the JavaBridge.war I can share the PHP session (running in a >> apache >> > server) with the "war" in the JBoss server. >> >> in its default configuration, the bridge connects to the J2EE "JavaBridge" >> application context. >> >> If you remove it, you'll probably get a "document not found, or a >> permission error from tomcat. >> >> Please see our FAQ for details how to forward requests to a >> custom context. >> >> >> > It works... can it be a problem in my php.ini? >> >> This is probably a misunderstanding. The PHP/Java Bridge is written in >> pure Java and doesn't know anything about a php.ini, unless you enable the >> backward compatibility flag in the Config.inc. >> >> >> >> Regards, >> Jost Boekemeier >> >> >> __________________________________________________ >> Do You Yahoo!? >> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz >> gegen Massenmails. >> http://mail.yahoo.com >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> > > |
|
From: <php...@li...> - 2008-08-29 18:40:44
|
Hi, Thanks for the reply Jost, but I can't find anything related with forward requests to a custom context in FAQ, can you point me to where is this information? Thanks, Carlos. 2008/8/29 <php...@li...> > Hi, > > > Using the JavaBridge.war I can share the PHP session (running in a apache > > server) with the "war" in the JBoss server. > > in its default configuration, the bridge connects to the J2EE "JavaBridge" > application context. > > If you remove it, you'll probably get a "document not found, or a > permission error from tomcat. > > Please see our FAQ for details how to forward requests to a > custom context. > > > > It works... can it be a problem in my php.ini? > > This is probably a misunderstanding. The PHP/Java Bridge is written in pure > Java and doesn't know anything about a php.ini, unless you enable the > backward compatibility flag in the Config.inc. > > > > Regards, > Jost Boekemeier > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2008-08-29 17:41:04
|
Jost, Thanks, we'll pass that info along (or upgrade). We got another few isolated exceptions tonight that seem to be related to printStackTrace(): Exception in thread "main" java.lang.NullPointerException at gnu.gcj.runtime.NameFinder.lookup(libgcj.so.7rh) at java.lang.Throwable.getStackTrace(libgcj.so.7rh) at java.lang.Throwable.stackTraceString(libgcj.so.7rh) at java.lang.Throwable.printStackTrace(libgcj.so.7rh) at java.lang.Throwable.printStackTrace(libgcj.so.7rh) at php.java.bridge.Standalone.main(Standalone.java:281) Do you think this might also be the result of GCJ? Thanks again, Justin php...@li... wrote: > Hi, > >>>> gij (GNU libgcj) version 4.1.2 20071124 (Red Hat > > please report this problem to the GNU Java people. > > > We know that GCJ/GIJ has problems due to its conservative garbage collector. But this isn't an issue if the built-in thread pool is used within a web environment (i.e. not from the console). > > As a workaround please use a real Java VM instead. For example Sun's JDK 1.6 or the free Open JDK (Java 7). > > > Regards, > Jost Boekemeier > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. > http://mail.yahoo.com > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2008-08-29 17:33:19
|
Hi, > Using the JavaBridge.war I can share the PHP session (running in a apache > server) with the "war" in the JBoss server. in its default configuration, the bridge connects to the J2EE "JavaBridge" application context. If you remove it, you'll probably get a "document not found, or a permission error from tomcat. Please see our FAQ for details how to forward requests to a custom context. > It works... can it be a problem in my php.ini? This is probably a misunderstanding. The PHP/Java Bridge is written in pure Java and doesn't know anything about a php.ini, unless you enable the backward compatibility flag in the Config.inc. 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...> - 2008-08-29 13:37:11
|
Hi, > >> gij (GNU libgcj) version 4.1.2 20071124 (Red Hat please report this problem to the GNU Java people. We know that GCJ/GIJ has problems due to its conservative garbage collector. But this isn't an issue if the built-in thread pool is used within a web environment (i.e. not from the console). As a workaround please use a real Java VM instead. For example Sun's JDK 1.6 or the free Open JDK (Java 7). 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...> - 2008-08-28 23:08:02
|
I just forge to say, if I run:
echo '<?php require_once("http://localhost:8080/JavaBridge/java/Java.inc");
echo java("java.lang.System")->getProperties();?>' | php -n -d
allow_url_include=On
It works... can it be a problem in my php.ini? I don't mind, since with the
JavaBridge.war deployed everything works fine.
2008/8/28 Carlos Eduardo Rodrigues Diógenes <cer...@gm...>
> Hi,
>
> I installed php java bridge successful.
>
> Using the JavaBridge.war I can share the PHP session (running in a apache
> server) with the "war" in the JBoss server.
>
> I removed the JavaBridge.war and tried to mimic it's configuration in a
> seam application that I'm developing, but I'm getting the 403 error when I
> try to run the php file apache. I can't understand what is wrong. I already
> look the logs, googled a lot, but can't find an aswear to this error.
>
> If someone can give me some hint to bypass this error I will be very
> grateful.
>
> Thanks,
> Carlos.
>
|
|
From: <php...@li...> - 2008-08-28 22:54:08
|
Just to follow up, it seems that the problem was related to including java/Java.inc on every page view, which appeared to quickly overwhelm the number of available threads (20). Instead it turns out that by moving the Java.inc require to a separate script that only runs periodically (when there are java bridge related actions to take), we fixed the problem. Justin php...@li... wrote: > Given that the exception starts with: > > php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) > > I'm wondering if this isn't some sort of thread pool error (or maxed out > resource issue). Or if we've otherwise misconfigured things for our > standalone setup (docs are pretty threadbare in this area). > > Anyone have any ideas? > > Justin > > > php...@li... wrote: >> More information, found the "back end log" for us it's >> /var/log/https/error_log >> >> And we seem to be getting tons of NullPointerExceptions: >> >> Aug 28 12:22:47 VMBridge ERROR: An exception occured: >> java.lang.NullPointerException >> java.lang.NullPointerException >> at php.java.bridge.StringCache.put(StringCache.java:122) >> at php.java.bridge.StringCache.getString(StringCache.java:155) >> at php.java.bridge.JavaBridge.getCachedString(JavaBridge.java:2023) >> at >> php.java.bridge.ParserString.getCachedStringValue(ParserString.java:89) >> at php.java.bridge.Request.begin(Request.java:232) >> at php.java.bridge.Parser.CALL_BEGIN(Parser.java:134) >> at php.java.bridge.Parser.parse(Parser.java:195) >> at php.java.bridge.Request.handleRequest(Request.java:377) >> at php.java.bridge.Request.handleRequests(Request.java:485) >> at php.java.bridge.JavaBridge.run(JavaBridge.java:213) >> at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) >> >> Any ideas? >> >> Our version of Java (from RHEL5): >> >> $ java -version >> java version "1.4.2" >> gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42) >> >> Much appreciated. >> Justin Watt >> >> >> php...@li... wrote: >>> We're running the PHP/Java Bridge as a standalone Java service (not as a >>> servlet engine or J2EE service), and seem to be sporadically getting the >>> following error (from line 768 of Java.inc): >>> >>> "protocol error: , Invalid document end at col 1. Check the back end log >>> for details." >>> >>> This happens even when we're not accessing the Java Bridge code---it >>> seems to crop simply by virtue of java/Java.inc being included (at first >>> glance). We're running the latest version of the bridge 5.2.2. Obviously >>> the xml doc to parse is blank, which is why this error is happening. I >>> just don't know why. >>> >>> Additionally it seems strange for lib code like this to contain "die()" >>> statements since Java.inc gets included in larger codebases. In our case >>> it brings our platform to a screeching halt. Would be nice if it failed >>> a little more gracefully. >>> >>> But that aside, any clue as to why this would be happening so frequently >>> given our set up? Assuming a standalone setup's errors get logged to >>> Apache's error log, we're seeing not related messages in the "back end >>> log". I'm wondering if I could/should just comment out that die() >>> statement starting on line 768...? >>> >>> Thanks in advance, >>> Justin Watt >>> Federated Media >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >>> Build the coolest Linux based applications with Moblin SDK & win great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> _______________________________________________ >>> php-java-bridge-users mailing list >>> php...@li... >>> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2008-08-28 22:47:58
|
Hi, I installed php java bridge successful. Using the JavaBridge.war I can share the PHP session (running in a apache server) with the "war" in the JBoss server. I removed the JavaBridge.war and tried to mimic it's configuration in a seam application that I'm developing, but I'm getting the 403 error when I try to run the php file apache. I can't understand what is wrong. I already look the logs, googled a lot, but can't find an aswear to this error. If someone can give me some hint to bypass this error I will be very grateful. Thanks, Carlos. |
|
From: <php...@li...> - 2008-08-28 21:53:39
|
Given that the exception starts with: php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) I'm wondering if this isn't some sort of thread pool error (or maxed out resource issue). Or if we've otherwise misconfigured things for our standalone setup (docs are pretty threadbare in this area). Anyone have any ideas? Justin php...@li... wrote: > More information, found the "back end log" for us it's > /var/log/https/error_log > > And we seem to be getting tons of NullPointerExceptions: > > Aug 28 12:22:47 VMBridge ERROR: An exception occured: > java.lang.NullPointerException > java.lang.NullPointerException > at php.java.bridge.StringCache.put(StringCache.java:122) > at php.java.bridge.StringCache.getString(StringCache.java:155) > at php.java.bridge.JavaBridge.getCachedString(JavaBridge.java:2023) > at > php.java.bridge.ParserString.getCachedStringValue(ParserString.java:89) > at php.java.bridge.Request.begin(Request.java:232) > at php.java.bridge.Parser.CALL_BEGIN(Parser.java:134) > at php.java.bridge.Parser.parse(Parser.java:195) > at php.java.bridge.Request.handleRequest(Request.java:377) > at php.java.bridge.Request.handleRequests(Request.java:485) > at php.java.bridge.JavaBridge.run(JavaBridge.java:213) > at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) > > Any ideas? > > Our version of Java (from RHEL5): > > $ java -version > java version "1.4.2" > gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42) > > Much appreciated. > Justin Watt > > > php...@li... wrote: >> We're running the PHP/Java Bridge as a standalone Java service (not as a >> servlet engine or J2EE service), and seem to be sporadically getting the >> following error (from line 768 of Java.inc): >> >> "protocol error: , Invalid document end at col 1. Check the back end log >> for details." >> >> This happens even when we're not accessing the Java Bridge code---it >> seems to crop simply by virtue of java/Java.inc being included (at first >> glance). We're running the latest version of the bridge 5.2.2. Obviously >> the xml doc to parse is blank, which is why this error is happening. I >> just don't know why. >> >> Additionally it seems strange for lib code like this to contain "die()" >> statements since Java.inc gets included in larger codebases. In our case >> it brings our platform to a screeching halt. Would be nice if it failed >> a little more gracefully. >> >> But that aside, any clue as to why this would be happening so frequently >> given our set up? Assuming a standalone setup's errors get logged to >> Apache's error log, we're seeing not related messages in the "back end >> log". I'm wondering if I could/should just comment out that die() >> statement starting on line 768...? >> >> Thanks in advance, >> Justin Watt >> Federated Media >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2008-08-28 19:52:00
|
More information, found the "back end log" for us it's /var/log/https/error_log And we seem to be getting tons of NullPointerExceptions: Aug 28 12:22:47 VMBridge ERROR: An exception occured: java.lang.NullPointerException java.lang.NullPointerException at php.java.bridge.StringCache.put(StringCache.java:122) at php.java.bridge.StringCache.getString(StringCache.java:155) at php.java.bridge.JavaBridge.getCachedString(JavaBridge.java:2023) at php.java.bridge.ParserString.getCachedStringValue(ParserString.java:89) at php.java.bridge.Request.begin(Request.java:232) at php.java.bridge.Parser.CALL_BEGIN(Parser.java:134) at php.java.bridge.Parser.parse(Parser.java:195) at php.java.bridge.Request.handleRequest(Request.java:377) at php.java.bridge.Request.handleRequests(Request.java:485) at php.java.bridge.JavaBridge.run(JavaBridge.java:213) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) Any ideas? Our version of Java (from RHEL5): $ java -version java version "1.4.2" gij (GNU libgcj) version 4.1.2 20071124 (Red Hat 4.1.2-42) Much appreciated. Justin Watt php...@li... wrote: > We're running the PHP/Java Bridge as a standalone Java service (not as a > servlet engine or J2EE service), and seem to be sporadically getting the > following error (from line 768 of Java.inc): > > "protocol error: , Invalid document end at col 1. Check the back end log > for details." > > This happens even when we're not accessing the Java Bridge code---it > seems to crop simply by virtue of java/Java.inc being included (at first > glance). We're running the latest version of the bridge 5.2.2. Obviously > the xml doc to parse is blank, which is why this error is happening. I > just don't know why. > > Additionally it seems strange for lib code like this to contain "die()" > statements since Java.inc gets included in larger codebases. In our case > it brings our platform to a screeching halt. Would be nice if it failed > a little more gracefully. > > But that aside, any clue as to why this would be happening so frequently > given our set up? Assuming a standalone setup's errors get logged to > Apache's error log, we're seeing not related messages in the "back end > log". I'm wondering if I could/should just comment out that die() > statement starting on line 768...? > > Thanks in advance, > Justin Watt > Federated Media > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2008-08-28 19:27:02
|
We're running the PHP/Java Bridge as a standalone Java service (not as a servlet engine or J2EE service), and seem to be sporadically getting the following error (from line 768 of Java.inc): "protocol error: , Invalid document end at col 1. Check the back end log for details." This happens even when we're not accessing the Java Bridge code---it seems to crop simply by virtue of java/Java.inc being included (at first glance). We're running the latest version of the bridge 5.2.2. Obviously the xml doc to parse is blank, which is why this error is happening. I just don't know why. Additionally it seems strange for lib code like this to contain "die()" statements since Java.inc gets included in larger codebases. In our case it brings our platform to a screeching halt. Would be nice if it failed a little more gracefully. But that aside, any clue as to why this would be happening so frequently given our set up? Assuming a standalone setup's errors get logged to Apache's error log, we're seeing not related messages in the "back end log". I'm wondering if I could/should just comment out that die() statement starting on line 768...? Thanks in advance, Justin Watt Federated Media |
|
From: <php...@li...> - 2008-08-26 18:21:41
|
Hello Jost,
I believe I am loading the custom libraries statically now. I don't use a
java_require or reload statement in my PHP code. From the sounds of the
email below, that is probably the best approach. However, I think I just
discovered an implication of doing that.
I made a minor change to one method in the U2 class. Before the change it
had 4 input parameters. After the change it had 3 input parameters. I
moved it to the ext directory, but no matter what I tried I kept getting a
method not found error. I assumed it was because I was sending it 3
parameters, but it still "thought" it had 4. Finally I rebooted the web
server and it worked fine.
This makes me suspect that static libraries load once on startup, and that
simply moving the jar to the ext directory does not reload them. So here
is my question. If that is the case, is there anyway short of a reboot to
force the static libraries to reload?
Thanks.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
Sent by: php...@li...
08/26/2008 12:06 PM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] (no subject)
Hi,
well, the NoClassDefFound error means that an external reference is
missing (an entity which has been available during the compilation of the
class).
The bridge has two different class loading mechanisms, one is the static
loader, the other one is the dynamic loader which can load *some* java
archives at run-time (via java_require(...) or java_autoload(...)).
I said "some" because dynamic class loading doesn't really work in Java,
neither in Tomcat nor in J2EE; once the dynamically loaded classes are
referenced by system libraries, you can't unload them anymore.
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
gegen Massenmails.
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-08-26 17:09:44
|
Hi, your class Hello is not public and it has no public constructor. 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...> - 2008-08-26 17:06:07
|
Hi, well, the NoClassDefFound error means that an external reference is missing (an entity which has been available during the compilation of the class). The bridge has two different class loading mechanisms, one is the static loader, the other one is the dynamic loader which can load *some* java archives at run-time (via java_require(...) or java_autoload(...)). I said "some" because dynamic class loading doesn't really work in Java, neither in Tomcat nor in J2EE; once the dynamically loaded classes are referenced by system libraries, you can't unload them anymore. 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...> - 2008-08-26 14:27:49
|
Hi,
The method *announce(String)* not exists but *announce()* yes ;-)
So try something like:
$hello = new Java('mani.Hello');
$hello->announce("test");
Java Program:
package mani;
class Hello {
public void announce(*String message*) {
System.out.println("Works! Receiving message: "+message);
}
}
On Tue, Aug 26, 2008 at 9:14 AM, <
php...@li...> wrote:
> Hi,
>
> I am trying out PHP Java bridge with small example - A program to print the
> string on the screen.
>
> PHP Script:
>
> java_require("/disk2/v/apache/htdocs/VIRTUAL/
> mytoday.greynium.com/public_html/ftp/classes/");
>
> $hello = new Java('mani.Hello');
> $hello->announce("test");
>
> Java Program:
>
> package mani;
> class Hello {
> public void announce() {
> System.out.println("Works! ");
> }
> }
>
> When I am trying to execute this PHP script, getting this error:
>
> PHP Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke
> failed: [c(Hello)]->announce(o(Request$PhpParserString)). Cause:
> java.lang.NoSuchMethodException: announce(o(Request$PhpParserString)).
> Candidates: [] Responsible VM: 1.5.0_04@http://java.sun.com/" at:
> #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1117)
> #-4 php.java.bridge.Request.handleRequest(Request.java:536)
> #-3 php.java.bridge.Request.handleRequests(Request.java:582)
> #0 [internal function]: Java->__call('announce', Array)
> #1 /disk2/v/apache/htdocs/VIRTUAL/
> mytoday.greynium.com/public_html/ftp/TransferFiles.php(27)<http://mytoday.greynium.com/public_html/ftp/TransferFiles.php%2827%29>
> :
> Java->announce('Mani')
> #2 {main}]
>
>
> Can anyone please help me on this?
>
> Thanks
> Mani
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
--
Roger José Padilla Camacho
|
|
From: <php...@li...> - 2008-08-26 14:13:59
|
Hi,
I am trying out PHP Java bridge with small example - A program to print the
string on the screen.
PHP Script:
java_require("/disk2/v/apache/htdocs/VIRTUAL/
mytoday.greynium.com/public_html/ftp/classes/");
$hello = new Java('mani.Hello');
$hello->announce("test");
Java Program:
package mani;
class Hello {
public void announce() {
System.out.println("Works! ");
}
}
When I am trying to execute this PHP script, getting this error:
PHP Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke
failed: [c(Hello)]->announce(o(Request$PhpParserString)). Cause:
java.lang.NoSuchMethodException: announce(o(Request$PhpParserString)).
Candidates: [] Responsible VM: 1.5.0_04@http://java.sun.com/" at:
#-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1117)
#-4 php.java.bridge.Request.handleRequest(Request.java:536)
#-3 php.java.bridge.Request.handleRequests(Request.java:582)
#0 [internal function]: Java->__call('announce', Array)
#1 /disk2/v/apache/htdocs/VIRTUAL/
mytoday.greynium.com/public_html/ftp/TransferFiles.php(27):
Java->announce('Mani')
#2 {main}]
Can anyone please help me on this?
Thanks
Mani
|
|
From: <php...@li...> - 2008-08-26 13:33:45
|
>> Why do you want to load your java libraries from both loaders?
Just guessing.
>> Please see the "loading libraries" section fom the README for details.
I found the section and have read it. I am using an Ubuntu (Debian)
install and the readme is discussing a redhat install, but from what I
gather I believe my problem is related to
Note that classes loaded from two different class loader instances
cannot access each other.
I am finding that when I load a custom object that has an import in it,
that I have to add a reference in the php code to the imported library in
the custom object. I have to admit that I am thoroughly confused at this
point. I am not sure why the PHP needs to be aware of the library that is
used in the custom object. Clearly I need to do some more reading about
class loading.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
Sent by: php...@li...
08/26/2008 04:59 AM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] (no subject)
Hi,
[using the static loader and the dynamic loader]
> I have moved all required jar and zip files to: [...]
> java_require("asjava.zip;msbase.jar;msutil.jar;bowerweb.jar;");
Why do you want to load your java libraries from both loaders?
> Fatal error: Uncaught
> Cause: java.io.IOException: Could not open jar file
> asjava.zip, reason:
> error in opening zip file
> Responsible VM: 1.6.0_03@http://java.sun.com/" at:
Please see the "loading libraries" section fom the README for details.
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
gegen Massenmails.
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-08-26 09:59:46
|
Hi,
[using the static loader and the dynamic loader]
> I have moved all required jar and zip files to: [...]
> java_require("asjava.zip;msbase.jar;msutil.jar;bowerweb.jar;");
Why do you want to load your java libraries from both loaders?
> Fatal error: Uncaught
> Cause: java.io.IOException: Could not open jar file
> asjava.zip, reason:
> error in opening zip file
> Responsible VM: 1.6.0_03@http://java.sun.com/" at:
Please see the "loading libraries" section fom the README for details.
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...> - 2008-08-25 19:24:24
|
Hello,
I have moved all required jar and zip files to:
/usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/ext
In the php code I add:
java_require("asjava.zip;msbase.jar;msutil.jar;bowerweb.jar;");
But I still get:
Fatal error: Uncaught [[o:Exception]:"java.lang.Exception:
Invoke failed:
[[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String],
(o:String)[o:String], (o:String)[o:String], (o:String)[o:String]).
Cause: java.io.IOException: Could not open jar file asjava.zip, reason:
error in opening zip file
Responsible VM: 1.6.0_03@http://java.sun.com/" at:
#-17
php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108)
#-16 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:193)
#-15 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:118)
#0 java.inc(257): java_ThrowExceptionProxyFactory->getProxy(1, NULL, true)
#1 java.inc(473): java_Arg->getResult(true)
#2 java.inc(479): java_Client->getWrappedResult(true)
#3 java.inc(672): java_Client->getResult()
#4 java.inc(1664): java_Client->invokeMethod(0, 'updateJarLibrar...',
Array)
#5 /var/www/pbr/pbr_acct_summary.php(6):
java_require('asjava.zip;msba...')
#6 {main}] thrown in java.inc on line 220
Do I need to give a fully qualified path in the java_require statement?
There is also a /usr/lib/jvm/java-6-sun-1.6.0.03/ext
directory. Is that the repository I am looking for?
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
Sent by: php...@li...
08/22/2008 05:43 AM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] (no subject)
Hi,
a *global* CLASSPATH variable (i.e. which is set directly by the kernel or
the init process) doesn't exist. So you can't use it. (the whole classpath
concept is insane anyway).
Please store your libraries in the jre/lib/ext repository instead.
Depending on your version this is /usr/lib/jvm/java-6-sun/jre/lib/ext or
java-6-sun-1.6.0.03/jre/lib/ext or wherever.
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
gegen Massenmails.
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-08-22 17:25:54
|
Thank you.
I was able to sort of get it going, but the work-around was lame. What I
found was that if I included every jar file accessed in every object
called in the PHP code, that it could resolve the references. I'll start
using the /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/ext directory to hold
my jars in the future. This is what I was looking for.
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
php...@li...
Sent by: php...@li...
08/22/2008 05:43 AM
Please respond to php-java-bridge-users
To: php...@li...
cc:
Subject: Re: [Php-java-bridge-users] (no subject)
Hi,
a *global* CLASSPATH variable (i.e. which is set directly by the kernel or
the init process) doesn't exist. So you can't use it. (the whole classpath
concept is insane anyway).
Please store your libraries in the jre/lib/ext repository instead.
Depending on your version this is /usr/lib/jvm/java-6-sun/jre/lib/ext or
java-6-sun-1.6.0.03/jre/lib/ext or wherever.
Regards,
Jost Boekemeier
__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz
gegen Massenmails.
http://mail.yahoo.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2008-08-22 10:43:39
|
Hi, a *global* CLASSPATH variable (i.e. which is set directly by the kernel or the init process) doesn't exist. So you can't use it. (the whole classpath concept is insane anyway). Please store your libraries in the jre/lib/ext repository instead. Depending on your version this is /usr/lib/jvm/java-6-sun/jre/lib/ext or java-6-sun-1.6.0.03/jre/lib/ext or wherever. 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...> - 2008-08-21 16:38:43
|
Hello. This may be a little off topic, but I am hoping someone on the list has run into this same problem and can enlighten me. I apologize in advance as I am fairly new to Java. On an Ubuntu 7.1 LAMP server. I have created a Java object for accessing an MS Sql Server server from Java. When I run it from the command line, it runs fine. When I run it from PHP through the JavaBridge, it cannot find the SQLServerDriver Unresolved external reference: java.lang.NoClassDefFoundError: com/microsoft/jdbc/sqlserver/SQLServerDriver. -- Unable to call constructor, see the README section "Java platform issues" for details. The resolution I am finding on the Internet indicates that this is because the package is not in the CLASSPATH. The driver is in mssqlserver.jar 731 Thu Nov 21 16:35:04 CST 2002 com/microsoft/jdbc/sqlserver/SQLServerDriver.class which is in my CLASSPATH as cshaffer. But when it is run from PHP through the Bridge, it is apparently not in the CLASSPATH. So who is running it in that case and how do I effect the CLASSPATH? Or can I use an import to force it? Is there a trick to this? Charles Shaffer Senior Analyst NTN-Bower Corporation |
|
From: <php...@li...> - 2008-08-20 19:53:57
|
I read that a long time ago too...doh! thanks |