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
(2) |
18
|
19
|
20
|
21
(1) |
22
(3) |
23
|
|
24
|
25
(1) |
26
|
27
|
28
|
29
|
30
|
|
31
(1) |
|
|
|
|
|
|
|
From: <php...@li...> - 2010-01-22 15:17:18
|
Thank you very much Jost, I solved the problem just last night and you were right. I could catch the two Runtime Exceptions before the execSelect() call using the java_values() function. The problem was in the arguments format I was using. You are right about the while loop. Here, the java_values function saved me again. It's probable that it is not the right way to solve it, so I will follow your advices. Either way I just starting and I think PHP / Java Bridge is a magnificent tool. I hope not to bother too often. Thanks again. > Date: Fri, 22 Jan 2010 11:59:09 +0100 > To: php...@li... > From: php...@li... > Subject: Re: [Php-java-bridge-users] Help > > BTW: Which PHP version and which OS do you use? While testing the above code > against the latest PHP 5.3.1, it appears that PHP 5.3.1 on Windows discards > all error messages(!). > > Please use a stable PHP version instead (PHP 5.2.x). > > > > Is there (with PHP/Java Bridge) any special thing I have to consider when > > I work with Java interfaces rather than classes?. > > Your code is correct. Except for $rs->hasNext(), which returns a Boolean > object. Your loop > > while($rs->hasNext()) > > never returns. Use an explicit boolean cast: > > while((boolean)(string)$rs->hasNext()); > > or > > while(java_is_true($rs->hasNext()); > > I think the reason why your query fails is that ModelD2RQ cannot parse an > UTF-8 file. But that's a d2rq issue, I think. > > > *Warning*: Unchecked exception detected: > [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared > java.lang.RuntimeException detected. java.lang.Exception: CreateInstance > failed: new de.fuberlin.wiwiss.d2rq.ModelD2RQ((o:String)[o:String]). Cause: > de.fuberlin.wiwiss.d2rq.D2RQException: d2rq:uriPattern > 'C:\wamp\www/mapping-iswc.n3#organizations/@@organizations.OrgID@@' contains > characters not allowed in URIs (E50) VM: 1.6.0_16@http://java.sun.com/" at: > #-22 de.fuberlin.wiwiss.d2rq.map.ResourceMap.buildValu[...]esult(false) #2 > C:\wamp\www\java\Java.inc(220): java_Client->getWrappedResult(false) #3 > C:\wamp\www\java\Java.inc(320): java_Client->getInternalResult() #4 > C:\wamp\www\java\Java.inc(1157): > java_Client->createObject('de.fuberlin.wiw...', Array) #5 > C:\wamp\www\java\Java.inc(44) : eval()'d code(1): Java->Java(Array) #6 > C:\wamp\www\index.php(15): > de\fuberlin\wiwiss\d2rq\ModelD2RQ->__construct('C:\wamp\www/map...') #7 > C:\wamp\www\index.php(26): PruebaSPARQL::test() #8 {main}] in * > C:\wamp\www\java\Java.inc* on line *121* > > *Warning*: Unchecked exception detected: > [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared > java.lang.RuntimeException detected. java.lang.Exception: Invoke failed: > [[c:QueryExecutionFactory]]->create((o:Query)[o:Query], > (i:QuerySolution)[o:Response$UndeclaredThrowableErrorMarker]). Cause: > java.lang.IllegalArgumentException: argument type mismatch VM: 1.6.0_16@ > http://java.sun.com/" at: #-9 > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 > sun.reflect.NativeMethodAccessorImpl.invoke(Un[...]\Java.inc(977): > java_Client->invokeMethod(4, 'create', Array) #5 > C:\wamp\www\java\Java.inc(44) : eval()'d code(1): > java_invoke(Object(JavaClass), 'create', Array) #6 [internal function]: > com\hp\hpl\jena\query\QueryExecutionFactory::__callStatic('create', Array) > #7 C:\wamp\www\index.php(18): > com\hp\hpl\jena\query\QueryExecutionFactory::create(Object(java_InternalJava), > Object(de\fuberlin\wiwiss\d2rq\ModelD2RQ)) #8 C:\wamp\www\index.php(26): > PruebaSPARQL::test() #9 {main}] in *C:\wamp\www\java\Java.inc* on line *121* > exception:[[o:Exception]:"java.lang.Exception: Invoke failed: > [[o:Response$UndeclaredThrowableErrorMarker]]->execSelect. Cause: > java.lang.NoSuchMethodException: execSelect(). Candidates: [] VM: 1.6.0_16@ > http://java.sun.com/" at: #-6 > php.java.bridge.JavaBridge.checkM(JavaBridge.java:1091) #-5 > php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1029) #-4 > php.java.bridge.Request.handleRequest(Request.java:415) #-3 > php.java.bridge.Request.handleRequests(Request.java:491) #-2 > php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) #-1 > php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 > C:\wamp\www\java\Java.inc(136): java_ThrowExceptionProxyFactory->getProxy(6, > 'com.hp.hpl.jena...', 'T', true) #1 C:\wamp\www\java\Java.inc(219): > java_Arg->getResult(true) #2 C:\wamp\www\java\Java.inc(221): > java_Client->getWrappedResult(true) #3 C:\wamp\www\java\Java.inc(337): > java_Client->getResult() #4 C:\wamp\www\java\Java.inc(1063): > java_Client->invokeMethod(5, 'execSelect', Array) #5 > C:\wamp\www\java\Java.inc(1237): java_JavaProxy->__call('execSelect', Array) > #6 [internal function]: java_exception->__call('execSelect', Array) #7 > C:\wamp\www\index.php(18): java_InternalException->execSelect() #8 > C:\wamp\www\index.php(26): PruebaSPARQL::test() #9 {main}] > *Fatal error*: An unchecked exception occured during script execution. > Please check the server log files for details. in *C:\wamp\www\java\Java.inc > * on line *461* > > > Regards, > Jost Boekemeier > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users _________________________________________________________________ Juega y gana con Samsung y Windows Live http://www.equipatucasa.com.mx |
|
From: <php...@li...> - 2010-01-22 10:59:25
|
BTW: Which PHP version and which OS do you use? While testing the above code against the latest PHP 5.3.1, it appears that PHP 5.3.1 on Windows discards all error messages(!). Please use a stable PHP version instead (PHP 5.2.x). > Is there (with PHP/Java Bridge) any special thing I have to consider when > I work with Java interfaces rather than classes?. Your code is correct. Except for $rs->hasNext(), which returns a Boolean object. Your loop while($rs->hasNext()) never returns. Use an explicit boolean cast: while((boolean)(string)$rs->hasNext()); or while(java_is_true($rs->hasNext()); I think the reason why your query fails is that ModelD2RQ cannot parse an UTF-8 file. But that's a d2rq issue, I think. *Warning*: Unchecked exception detected: [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared java.lang.RuntimeException detected. java.lang.Exception: CreateInstance failed: new de.fuberlin.wiwiss.d2rq.ModelD2RQ((o:String)[o:String]). Cause: de.fuberlin.wiwiss.d2rq.D2RQException: d2rq:uriPattern 'C:\wamp\www/mapping-iswc.n3#organizations/@@organizations.OrgID@@' contains characters not allowed in URIs (E50) VM: 1.6.0_16@http://java.sun.com/" at: #-22 de.fuberlin.wiwiss.d2rq.map.ResourceMap.buildValu[...]esult(false) #2 C:\wamp\www\java\Java.inc(220): java_Client->getWrappedResult(false) #3 C:\wamp\www\java\Java.inc(320): java_Client->getInternalResult() #4 C:\wamp\www\java\Java.inc(1157): java_Client->createObject('de.fuberlin.wiw...', Array) #5 C:\wamp\www\java\Java.inc(44) : eval()'d code(1): Java->Java(Array) #6 C:\wamp\www\index.php(15): de\fuberlin\wiwiss\d2rq\ModelD2RQ->__construct('C:\wamp\www/map...') #7 C:\wamp\www\index.php(26): PruebaSPARQL::test() #8 {main}] in * C:\wamp\www\java\Java.inc* on line *121* *Warning*: Unchecked exception detected: [[o:Response$UndeclaredThrowableErrorMarker]:"FATAL: Undeclared java.lang.RuntimeException detected. java.lang.Exception: Invoke failed: [[c:QueryExecutionFactory]]->create((o:Query)[o:Query], (i:QuerySolution)[o:Response$UndeclaredThrowableErrorMarker]). Cause: java.lang.IllegalArgumentException: argument type mismatch VM: 1.6.0_16@ http://java.sun.com/" at: #-9 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) #-8 sun.reflect.NativeMethodAccessorImpl.invoke(Un[...]\Java.inc(977): java_Client->invokeMethod(4, 'create', Array) #5 C:\wamp\www\java\Java.inc(44) : eval()'d code(1): java_invoke(Object(JavaClass), 'create', Array) #6 [internal function]: com\hp\hpl\jena\query\QueryExecutionFactory::__callStatic('create', Array) #7 C:\wamp\www\index.php(18): com\hp\hpl\jena\query\QueryExecutionFactory::create(Object(java_InternalJava), Object(de\fuberlin\wiwiss\d2rq\ModelD2RQ)) #8 C:\wamp\www\index.php(26): PruebaSPARQL::test() #9 {main}] in *C:\wamp\www\java\Java.inc* on line *121* exception:[[o:Exception]:"java.lang.Exception: Invoke failed: [[o:Response$UndeclaredThrowableErrorMarker]]->execSelect. Cause: java.lang.NoSuchMethodException: execSelect(). Candidates: [] VM: 1.6.0_16@ http://java.sun.com/" at: #-6 php.java.bridge.JavaBridge.checkM(JavaBridge.java:1091) #-5 php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1029) #-4 php.java.bridge.Request.handleRequest(Request.java:415) #-3 php.java.bridge.Request.handleRequests(Request.java:491) #-2 php.java.bridge.http.ContextRunner.run(ContextRunner.java:145) #-1 php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60) #0 C:\wamp\www\java\Java.inc(136): java_ThrowExceptionProxyFactory->getProxy(6, 'com.hp.hpl.jena...', 'T', true) #1 C:\wamp\www\java\Java.inc(219): java_Arg->getResult(true) #2 C:\wamp\www\java\Java.inc(221): java_Client->getWrappedResult(true) #3 C:\wamp\www\java\Java.inc(337): java_Client->getResult() #4 C:\wamp\www\java\Java.inc(1063): java_Client->invokeMethod(5, 'execSelect', Array) #5 C:\wamp\www\java\Java.inc(1237): java_JavaProxy->__call('execSelect', Array) #6 [internal function]: java_exception->__call('execSelect', Array) #7 C:\wamp\www\index.php(18): java_InternalException->execSelect() #8 C:\wamp\www\index.php(26): PruebaSPARQL::test() #9 {main}] *Fatal error*: An unchecked exception occured during script execution. Please check the server log files for details. in *C:\wamp\www\java\Java.inc * on line *461* Regards, Jost Boekemeier |
|
From: <php...@li...> - 2010-01-22 10:43:30
|
Hi,
> Here is the Java Code I want to transform to PHP code with PHP/Java
Bridge:
Quick and dirty translation:
<?php require_once("java/Java.inc");
$here=getcwd();
java_autoload("$here/d2r-server-0.7/lib;$here/ARQ-2.8.2/lib");
use de\fuberlin\wiwiss\d2rq\ModelD2RQ as ModelD2RQ;
use com\hp\hpl\jena\query\QueryFactory as QueryFactory;
use com\hp\hpl\jena\query\QueryExecutionFactory as QueryExecutionFactory;
try {
class PruebaSPARQL {
public static function test() {
global $here;
$m = new ModelD2RQ("$here/mapping-iswc.n3");
$sparql = "SELECT * WHERE {}";
$q = QueryFactory::create($sparql);
$rs = QueryExecutionFactory::create($q, $m)->execSelect();
while (java_is_true(rs.hasNext())) {
$row = $rs->nextSolution();
echo "Carrera: " . $row->getLiteral("carrera")->getString();
}
}
}
pruebaSPARQL::test();
} catch (Exception $e) {
echo "exception:$e";
}
?>
Regards,
Jost Boekemeier
|