could not find class sqlj.framework.error.info
translator and SQLJ runtime. Cause and action information is also provided, as well as the SQL state for runtime errors. SQLJ Translation Time Messages SQLJ Runtime Messages Note: Error messages, causes, and actions in this appendix were copied directly from SQLJ source code without alteration. SQLJ Translation Time Messages This section provides a list of error messages you may encounter from the SQLJ translator, including cause and action information. Note: By enabling the SQLJ translator -explain flag, you can instruct the translator to provide "cause" and "action" information in real-time with its error message output. This is the same information that is provided in the error list below. See "Cause and Action for Translator Errors (-explain)". <<
Support Search GitHub This repository Watch 24 Star 76 Fork 38 tada/pljava Code Issues 3 Pull requests 0 Projects 0 Wiki Pulse Graphs New issue pl/java PG9.3 Issue #17 Closed asifnaeem opened this Issue Jul 2, 2013 · 22 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 7 participants asifnaeem commented Jul 2, 2013 Hi, pljava built for PG9.3 seems broken i.e. ERROR: could not load library "/opt/pg/inst/lib/pljava.so": /opt/pg/inst/lib/pljava.so: undefined symbol: GETSTRUCT pl/java source code require update and seems not compatible with PG 9.3. It seems that https://docs.oracle.com/cd/B10501_01/java.920/a96655/apperror.htm pl/java source code is moved to github but it don't build properly and gives errors start of the build i.e. asif@uvm1:~/work/pljava$ make make: Entering directory /home/asif/work/pljava/build/classes/pljava'
make: /home/asif/work/pljava/src/java/pljava/Makefile: No such file or directory
make: *** No rule to make target/home/asif/work/pljava/src/java/pljava/Makefile'. Stop. make: Leaving directory `/home/asif/work/pljava/build/classes/pljava' make: *** [pljava_all] Error 2 Related build instructions seems silent on it. For the time being I pulled latest source code https://github.com/tada/pljava/issues/17 from cvs.pgfoundry.org and made corrections to make it work for PG 9.3. PFA patch. It seems work fine now at least for install.sql, I did not tested it further yet i.e. asif@uvm1:~/work/postgresql/postgresql/inst$ ./bin/psql -d postgres -p 8888 -c "select version();" version PostgreSQL 9.3beta2 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu/Linaro 4.4.4-14ubuntu5.1) 4.4.5, 64-bit (1 row) asif@uvm1:~/work/postgresql/postgresql/inst$ ./bin/psql -d postgres -p 8888 -f /home/asif/work/pljava/src/sql/install.sql CREATE SCHEMA GRANT CREATE FUNCTION CREATE LANGUAGE CREATE FUNCTION CREATE LANGUAGE CREATE TABLE GRANT CREATE TABLE GRANT ALTER TABLE CREATE TABLE GRANT CREATE TABLE GRANT CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION CREATE FUNCTION Changes done are required because of move of GETSTRUCT() and timeout handling framework changes done in PG 9.3. There little more effort required ( i.e to add #if (PGSQL_MAJOR_VER >= 93) ) to make it compatible with older version of PG. Please do let me know if I missed something or more info is required. Thanks. I am not sure how to attach patch to this ticket/issue, I am pasting the patch as following, I hope that will help i.e. asif$ cat pljava_9.3.patch.v1 ? make.install.log ? make.log ? pljava_9.3.patch.v1_beta.v1 ? pljava_9.3.patch.v
questions as well as any known problems. Please consult the SQLJ Developerís Guide and Reference for full background information. If you have any questions or https://web.wpi.edu/Academics/CCC/Services/Databases/SqlJ/doc/faq.html feedback on this document, please e-mail mailto:firstname.lastname@example.org or mailto:email@example.com. Last updated: 27 http://tinman.cs.gsu.edu/~raj/sqljdoc/87apper1.htm April 2001 Quick Jump Need Troubleshooting? Go to the Troubleshooting Checklist to solve a problem or issue you have encountered. Or, jump directly to one of the following Errors When Starting the Translator Error Messages Encountered During Translation Additional Translation Issues Error Messages Encountered During Deployment or could not Runtime Deploying and Running in the Oracle Server JavaVM Using REF Cursors Additional Deployment and Runtime Issues Have General Questions? Start the General Questions part, or go to one of the following SQLJ (and JDBC Basics) SQLJ Language and Programming Oracle-Specific Features Translation Process Development Environments Deploying SQLJ Programs Running SQLJ Programs Contents Part A. Troubleshooting 1. Troubleshooting could not find Checklist 2. Problems Translating and Compiling SQLJ Programs 2.1 Errors When Starting the Translator "Error in sqlj stub: invalid argument" "Unable to initialize threads: ..." "An application error has occurred... Exception:access violation ..." (in trying to run Sun's JDK 1.1.x on Windows NT/Windows 95) "ExceptionInInitializerError: NullPointerException" "NoClassDefFoundError: sqlj/tools/Sqlj" "NoClassDefFoundError: sun/io/CharToByteConverter" "Error: SQLJ runtime library is missing" "The following character string is too long:" "Oracle is not installed properly on your system. ..." 2.2 Error Messages Encountered During Translation JDK 1.3: SQLJ translator hangs and/or does not show any error messages from the Java compiler "Cannot load JDBC driver class oracle.jdbc.driver.OracleDriver" "Return type XXXX ... is not a visible Java type" "Missing equal sign in assignment" "Warning: Cannot determine default arguments for stored procedures and functions. May need to install SYS.SQLJUTL." "Error: unable to load ... java.lang.NoClassDefFoundError" "Unable to convert ...Xxx.ser to a class file" My code declares a block-level iterator class, and an instance of this class is later created and used in the same block. SQLJ appears to translate my code without difficul
Iterator Declaration Missing Semicolon. Missing colon. Missing comma. Missing dot operator. Missing Parenthesis. Unbalanced Square Bracket. Missing Curly Braces. Unbalanced Curly Braces. Invalid SQL String. Cause: Any of these items can occur when your SQLJ program has an error in its syntax or structure. Action: Correct your syntax as described in the error. Unable to read property file. filename is not a valid input filename. Unable to read input file. Unable to find input file. Unable to open temporary output file. Unable to rename output file from filename1 to filename1. Unable to read property file. Unable to create package directory. Unable to create output file. directory-name is not a directory. An IO error occurred while generating output. Unable to read property file. Cause: The SQLJ translator was unable to perform the described operation with your file system. This can happen because the provided file names are incorrect, because read/write privileges are incorrect for the files or directories, or because your file system is full. A non-array type cannot be indexed. Ambiguous constructor invocation. Ambiguous field access. Arithmetic expression requires numeric operands. Array index must be a numeric type. Type cast operator requires non-void operand. Equality operator operand types must match. Bitwise operator requires boolean operands. Boolean operator requires boolean operands. Comparison operator requires numeric operands. Complement operator requires integral operand. Conditional expression requires boolean for its first operand. Conditional expression result types must match. Constructor not found. Field not accessible. Increment/decrement operator requires numeric operand. Invalid type cast. Method not accessible. Method not found. Name name cannot be used as an identifier Negation operator requires boolean operands. Shift operator requires integral operands. Sign operator requires numeric operand. Unknown identifier. Unknown target type in cast expression. Cannot resolve identifier because the enclosing class has errors. Initialization lists are not allowed in bind expressions. Anonymous classes are not allowed in bind expressions. SQLJ declarations cannot be inside method blocks. Invalid SQL iterator declaration. Premature end-of-file. Illegal expression. IN mode is not allowed for INTO-variables INOUT mode is not allowed for INTO-variables U