drongous
Новичок
PHP/Java Bridge
Народ нуждаюсь в помощи.
Питаемся использовать PHP/Java Bridge для JasperReport-a (debian) но нихрена не получается.
Непонятные ошибки.
LOGI
-----------------------------------------------------------------------
-~{}~ 24.04.08 15:56:
С установкой все решилось.
Самое главное правельные версии библиотек (Java) нужно использовать.
Удалось подобрать комплект для 1.2.0.
Будем искать для 2.0.5
Народ нуждаюсь в помощи.
Питаемся использовать PHP/Java Bridge для JasperReport-a (debian) но нихрена не получается.
Непонятные ошибки.
LOGI
-----------------------------------------------------------------------
Код:
Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <Y p="1" v="0" m="updateJarLibraryPath" > Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <S v="file:/srv/vhosts/devzone/report/java/jasperreports-applet.jar;file:/srv/vhosts/devzone/report/java/alticJasper.jar;file:/srv/vhosts/devzone/report/java/jasperreports-javaflow.jar;file:/srv/vhosts/devzone/report/java/jasperreports.jar;file:/srv/vhosts/devzone/report/java/.;file:/srv/vhosts/devzone/report/java/..;" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <S v="/usr/lib/php5/20060613+lfs" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <S v="/srv/vhosts/devzone/report" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <S v=".:/usr/share/php:/usr/share/pear" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </Y> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <V n="T"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <K p="1" v="org.altic.jasperReports.JdbcConnection" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </K> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <O v="1" m="org.altic.jasperReports.JdbcConnection" p="O" n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <Y p="1" v="1" m="setDriver" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <S v="com.mysql.jdbc.Driver" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </Y> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <V n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <Y p="1" v="1" m="setConnectString" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <S v="jdbc:mysql://localhost/efis_live" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </Y> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <V n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <Y p="1" v="1" m="setUser" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <S v="root" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </Y> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <V n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <Y p="1" v="1" m="setPassword" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <O v="0" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </Y> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <V n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <H p="1" v="net.sf.jasperreports.engine.JasperCompileManager" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </H> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <O v="2" m="net.sf.jasperreports.engine.JasperCompileManager" p="O" n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <Y p="1" v="2" m="compileReport" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <S v="/srv/vhosts/devzone/report/TEST.jrxml" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </Y> Apr 24 14:03:45 VMBridge ERROR: An exception occured: java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester. -- Unable to call the method, see the README section "Java platform issues" for details. java.lang.ClassNotFoundException: Unresolved external reference: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester. -- Unable to call the method, see the README section "Java platform issues" for details. at php.java.bridge.JavaBridge.getUnresolvedExternalReferenceException(JavaBridge.java:427) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1072) at php.java.bridge.Request.handleRequest(Request.java:409) 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) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at php.java.bridge.JavaBridge.Invoke(JavaBridge.java:1061) ... 4 more Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <E v="3" m="amF2YS5sYW5nLkV4Y2VwdGlvbjogSW52b2tlIGZhaWxlZDogW1tjOkphc3BlckNvbXBpbGVNYW5h Z2VyXV0tPmNvbXBpbGVSZXBvcnQoKG86U3RyaW5nKVtvOlN0cmluZ10pLiBDYXVzZTogamF2YS5s YW5nLkNsYXNzTm90Rm91bmRFeGNlcHRpb246IFVucmVzb2x2ZWQgZXh0ZXJuYWwgcmVmZXJlbmNl OiBqYXZhLmxhb... Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <K p="1" v="java.io.ByteArrayOutputStream" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </K> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <O v="4" m="java.io.ByteArrayOutputStream" p="O" n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <K p="1" v="java.io.PrintStream" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <O v="4" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </K> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <O v="5" m="java.io.PrintStream" p="O" n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <Y p="1" v="3" m="printStackTrace" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <O v="5" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </Y> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <V n="F"/> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <U v="5" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <Y p="1" v="0" m="ObjectToString" > Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <O v="4" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> </Y> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <S v="amF2YS5sYW5nLkV4Y2VwdGlvbjogSW52b2tlIGZhaWxlZDogW1tjOkphc3BlckNvbXBpbGVNYW5h Z2VyXV0tPmNvbXBpbGVSZXBvcnQoKG86U3RyaW5nKVtvOlN0cmluZ10pLiBDYXVzZTogamF2YS5s YW5nLkNsYXNzTm90Rm91bmRFeGNlcHRpb246IFVucmVzb2x2ZWQgZXh0ZXJuYWwgcmVmZXJlbmNl OiBqYXZhLmxhbmcuTm9... Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <U v="4" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <U v="3" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <U v="2" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <U v="1" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 --> <F p="A" /> Apr 24 14:03:45 VMBridge DEBUG: 194df86@f5da06 <-- <F p="A"/>
С установкой все решилось.
Самое главное правельные версии библиотек (Java) нужно использовать.
Удалось подобрать комплект для 1.2.0.
Будем искать для 2.0.5