db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Umorin <mike...@sbcglobal.net>
Subject compiling Derby under java 1.6
Date Wed, 19 Sep 2007 14:35:53 GMT
Hello --

I am trying to run derby under java 1.6 on Solaris 10 on Sungrid and I get the 
following error:

org.apache.derby.client.am.SqlException: Java exception: ': 
java.lang.IncompatibleClassChangeError'.
	at org.apache.derby.client.am.ResultSet.completeSqlca(Unknown Source)
	at org.apache.derby.client.net.NetResultSetReply.parseFetchError(Unknown 
Source)
	at org.apache.derby.client.net.NetResultSetReply.parseCNTQRYreply(Unknown 
Source)
	at org.apache.derby.client.net.NetResultSetReply.readFetch(Unknown Source)
	at org.apache.derby.client.net.ResultSetReply.readFetch(Unknown Source)
	at org.apache.derby.client.net.NetResultSet.readFetch_(Unknown Source)
	at org.apache.derby.client.am.ResultSet.flowFetch(Unknown Source)
	at org.apache.derby.client.net.NetCursor.getMoreData_(Unknown Source)
	at org.apache.derby.client.am.Cursor.next(Unknown Source)
	at org.apache.derby.client.am.ResultSet.nextX(Unknown Source)
	at org.apache.derby.client.am.ResultSet.next(Unknown Source)
	at meteorology.TAtmosphere.averageSurfaceQuery(TAtmosphere.java:906)
	at meteorology.TAtmosphere.temperature(TAtmosphere.java:341)
	at meteorology.TAtmosphere.temperature(TAtmosphere.java:321)
	at interactors.SmallLakeSetting.stepSetup(SmallLakeSetting.java:146)
	at simulation.Simulation.stepSetup(Simulation.java:141)
	at simulation.LakeWacoSimulation.stepSetup(LakeWacoSimulation.java:564)
	at simulation.Simulation.execute(Simulation.java:195)
	at runs.LakeWacoSimulationRun.main(LakeWacoSimulationRun.java:42)

I suspect that it's the jvm version incompatibility problem (correct me if I 
am wrong). So, I decided to recompile derby purely under jdk 1.6. I use ant 
1.7.0 from command line. I set up ant.properties as:

j14lib=/usr/local/jdk1.6.0_02/jre/lib
jdk16=/usr/local/jdk1.6.0_02
proceed=true
sane=false


JAVA_HOME, ANT_HOME, and paths are set. xalan-j2-2.7.0 is in CLASSPATH


I get ant output:

[mike@mikedesk db-derby-10.3.1.4-src]$ ant all
Buildfile: build.xml

init:
    [mkdir] Created dir: /tmp/db-derby-10.3.1.4-src/classes

ensuresanitystate:

evaluate.sane:

ensuresanitystate.sane:

ensuresanitystate.insane:

insane:
[propertyfile] Creating new property 
file: /tmp/db-derby-10.3.1.4-src/java/engine/state.properties

setissane:

showenv:
     [echo]
     [echo] Ant environment:
     [echo]   Base Directory: /tmp/db-derby-10.3.1.4-src
     [echo]   Build output: /tmp/db-derby-10.3.1.4-src/classes
     [echo]   Compiler: modern
     [echo]   Sane = false
     [echo]   Proceed = true
     [echo]

getstate:

state:
     [echo]   Generating SanityState.java...
     [copy] Copying 1 file 
to /tmp/db-derby-10.3.1.4-src/java/shared/org/apache/derby/shared/common/sanity
[propertyfile] Updating property 
file: /tmp/db-derby-10.3.1.4-src/java/engine/state.properties

shared:

compile:
    [javac] Compiling 12 source files to /tmp/db-derby-10.3.1.4-src/classes

shared:

parsers:

parser:

chkparser:

genParser:
     [echo]   Generating ij parser...
     [java] Java Compiler Compiler Version 4.0 (Parser Generator)
     [java] (type "javacc" with no arguments for help)
     [java] Reading from file ij.jj . . .
     [java] Note: UNICODE_INPUT option is specified. Please make sure you 
create the parser/lexer using a Reader with the correct character encoding.
     [java] Warning: Lookahead adequacy checking not being performed since 
option LOOKAHEAD is more than 1.  Set option FORCE_LA_CHECK to true to force 
checking.
     [java] File "TokenMgrError.java" does not exist.  Will create one.
     [java] File "Token.java" does not exist.  Will create one.
     [java] File "CharStream.java" does not exist.  Will create one.
     [java] Parser generated with 0 errors and 1 warnings.

chkparser:

genParser:
     [echo]   Generating mtGrammar parser...
     [java] Java Compiler Compiler Version 4.0 (Parser Generator)
     [java] (type "javacc" with no arguments for help)
     [java] Reading from file mtGrammar.jj . . .
     [java] Note: UNICODE_INPUT option is specified. Please make sure you 
create the parser/lexer using a Reader with the correct character encoding.
     [java] File "SimpleCharStream.java" does not exist.  Will create one.
     [java] Parser generated successfully.

parser:

chkparser:

genParser:
     [echo]   Generating SQL parser...
     [java] Java Compiler Compiler Version 4.0 (Parser Generator)
     [java] (type "javacc" with no arguments for help)
     [java] Reading from file sqlgrammar.jj . . .
     [java] Note: UNICODE_INPUT option is specified. Please make sure you 
create the parser/lexer using a Reader with the correct character encoding.
     [java] File "TokenMgrError.java" does not exist.  Will create one.
     [java] Warning: ParseException.java: File is obsolete.  Please rename or 
delete this file so that a new one can be generated for you.
     [java] Warning: Token.java: File is obsolete.  Please rename or delete 
this file so that a new one can be generated for you.
     [java] Warning: CharStream.java: File is obsolete.  Please rename or 
delete this file so that a new one can be generated for you.
     [java] Parser generated with 0 errors and 3 warnings.

engine:

engine_169:

compile_reference:
    [javac] Compiling 11 source files to /tmp/db-derby-10.3.1.4-src/classes
    [javac] Compiling 2 source files to /tmp/db-derby-10.3.1.4-src/classes

compile_authentication:
    [javac] Compiling 2 source files to /tmp/db-derby-10.3.1.4-src/classes

authentication:

compile_io:
    [javac] Compiling 4 source files to /tmp/db-derby-10.3.1.4-src/classes

storage:

compile_iapi_error_jsr169:

compile_reference:
    [javac] Compiling 4 source files to /tmp/db-derby-10.3.1.4-src/classes
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:60:

package org.apache.xpath does not exist
    [javac] import org.apache.xpath.XPath;
    [javac]                        ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:61:

package org.apache.xpath does not exist
    [javac] import org.apache.xpath.XPathContext;
    [javac]                        ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:62:

package org.apache.xpath.objects does not exist
    [javac] import org.apache.xpath.objects.XObject;
    [javac]                                ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:63:

package org.apache.xpath.objects does not exist
    [javac] import org.apache.xpath.objects.XNodeSet;
    [javac]                                ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:65:

package org.apache.xml.utils does not exist
    [javac] import org.apache.xml.utils.PrefixResolverDefault;
    [javac]                            ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:67:

package org.apache.xalan.serialize does not exist
    [javac] import org.apache.xalan.serialize.DOMSerializer;
    [javac]                                  ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:68:

package org.apache.xalan.serialize does not exist
    [javac] import org.apache.xalan.serialize.Serializer;
    [javac]                                  ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:69:

package org.apache.xalan.serialize does not exist
    [javac] import org.apache.xalan.serialize.SerializerFactory;
    [javac]                                  ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:70:

package org.apache.xalan.templates does not exist
    [javac] import org.apache.xalan.templates.OutputProperties;
    [javac]                                  ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:125:

cannot find symbol
    [javac] symbol  : class Serializer
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]     private Serializer serializer;
    [javac]             ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:129:

cannot find symbol
    [javac] symbol  : class XPath
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]     private XPath query;
    [javac]             ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:130:

cannot find symbol
    [javac] symbol  : class XPathContext
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]     private XPathContext xpContext;
    [javac]             ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:668:

cannot find symbol
    [javac] symbol  : class XPathContext
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]     private XPathContext getXPathContext()
    [javac]             ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/impl/jdbc/EmbedStatement.java:61:

org.apache.derby.impl.jdbc.EmbedStatement is not abstract and does not 
override abstract method isWrapperFor(java.lang.Class) in java.sql.Wrapper
    [javac] public class EmbedStatement extends ConnectionChild
    [javac]        ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/impl/jdbc/EmbedResultSetMetaData.java:59:

org.apache.derby.impl.jdbc.EmbedResultSetMetaData is not abstract and does 
not override abstract method isWrapperFor(java.lang.Class) in 
java.sql.Wrapper
    [javac] public class EmbedResultSetMetaData
    [javac]        ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:267:

cannot find symbol
    [javac] symbol  : class XPath
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]             query = new XPath(queryExpr, null,
    [javac]                         ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:268:

cannot find symbol
    [javac] symbol  : class PrefixResolverDefault
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]                 new PrefixResolverDefault(dBuilder.newDocument()),
    [javac]                     ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:269:

cannot find symbol
    [javac] symbol  : variable XPath
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]                 XPath.SELECT);
    [javac]                 ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:401:

cannot find symbol
    [javac] symbol  : class DOMSerializer
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]         DOMSerializer dSer = serializer.asDOMSerializer();
    [javac]         ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:597:

cannot find symbol
    [javac] symbol  : class XObject
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]         XObject xOb = query.execute(xpContext, docNode, null);
    [javac]         ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:604:

cannot find symbol
    [javac] symbol  : class XNodeSet
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]             if ((xOb instanceof XNodeSet) &&
    [javac]                                 ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:605:

cannot find symbol
    [javac] symbol  : class XNodeSet
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]                 (((XNodeSet)xOb).nodelist().getLength() > 0))
    [javac]                    ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:611:

cannot find symbol
    [javac] symbol  : class XNodeSet
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]             else if (!(xOb instanceof XNodeSet))
    [javac]                                       ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:625:

cannot find symbol
    [javac] symbol  : class XNodeSet
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]         if (!(xOb instanceof XNodeSet))
    [javac]                              ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:671:

cannot find symbol
    [javac] symbol  : class XPathContext
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]             xpContext = new XPathContext();
    [javac]                             ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:686:

cannot find symbol
    [javac] symbol  : variable OutputProperties
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]         Properties props = 
OutputProperties.getDefaultMethodProperties("xml");
    [javac]                            ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/iapi/types/SqlXmlUtil.java:723:

cannot find symbol
    [javac] symbol  : variable SerializerFactory
    [javac] location: class org.apache.derby.iapi.types.SqlXmlUtil
    [javac]         serializer = SerializerFactory.getSerializer(props);
    [javac]                      ^
    
[javac] /tmp/db-derby-10.3.1.4-src/java/engine/org/apache/derby/impl/jdbc/EmbedDatabaseMetaData.java:90:

org.apache.derby.impl.jdbc.EmbedDatabaseMetaData is not abstract and does not 
override abstract method autoCommitFailureClosesAllResultSets() in 
java.sql.DatabaseMetaData
    [javac] public class EmbedDatabaseMetaData extends ConnectionChild
    [javac]        ^


and so on...

What is the problem?

I appreciate any help.

Mikhail.
 

Mime
View raw message