cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Cayenne and Java 7
Date Sun, 05 Feb 2012 21:17:19 GMT
Noticed a Java 7 dev preview for OS X: http://jdk7.java.net/macportpreview/

So I downloaded and tried to do various things with it:

1. Starting M3 CayenneModeler - works.
2. Compiling Cayenne with Maven - doesn't work.

First the build hangs for about 30 seconds on an operation [1]. Adding -Djava.net.preferIPv4Stack=true
doesn' help - it hangs on a similar IPv4 class. Looks like we are the victims on [2]. Anyways,
the build proceeds, compiles a few modules, but then blows with a bunch of errors [3]... I
guess those are related to JDBC 4.1 and we can extend our JDBC4 workaround - [4]

Andrus


[1] "main" prio=5 tid=0x0000000102000000 nid=0x100401000 runnable [0x00000001003fd000]
  java.lang.Thread.State: RUNNABLE
	at java.net.Inet6AddressImpl.getLocalHostName(Native Method)
	at java.net.InetAddress.getLocalHost(InetAddress.java:1409)
	at javax.crypto.JarVerifier.getSystemEntropy(JarVerifier.java:783)
	at javax.crypto.JarVerifier.testSignatures(JarVerifier.java:706)
	at javax.crypto.JarVerifier.access$400(JarVerifier.java:34)
	at javax.crypto.JarVerifier$1.run(JarVerifier.java:183)
	at javax.crypto.JarVerifier$1.run(JarVerifier.java:149)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.crypto.JarVerifier.<clinit>(JarVerifier.java:148)
	at javax.crypto.JceSecurity.loadPolicies(JceSecurity.java:316)
	at javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:261)
	at javax.crypto.JceSecurity.access$000(JceSecurity.java:48)
	at javax.crypto.JceSecurity$1.run(JceSecurity.java:78)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.crypto.JceSecurity.<clinit>(JceSecurity.java:76)
	at javax.crypto.Cipher.getInstance(Cipher.java:499)
	at org.sonatype.plexus.components.cipher.PBECipher.createCipher(PBECipher.java:265)
	at org.sonatype.plexus.components.cipher.PBECipher.decrypt64(PBECipher.java:183)
	at org.sonatype.plexus.components.cipher.DefaultPlexusCipher.decrypt(DefaultPlexusCipher.java:72)

[2] http://java.net/jira/browse/MACOSX_PORT-564

[3] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
(default-compile) on project cayenne-jdk1.5-unpublished: Compilation failure: Compilation
failure:
[ERROR] /Users/andrus/work/cayenne-git/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/DataNode.java:[333,10]
error: DataNode.TransactionDataSource is not abstract and does not override abstract method
getParentLogger() in CommonDataSource
[ERROR] /Users/andrus/work/cayenne-git/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/DriverDataSource.java:[38,7]
error: DriverDataSource is not abstract and does not override abstract method getParentLogger()
in CommonDataSource
[ERROR] /Users/andrus/work/cayenne-git/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/PoolDataSource.java:[39,7]
error: PoolDataSource is not abstract and does not override abstract method getParentLogger()
in CommonDataSource
[ERROR] /Users/andrus/work/cayenne-git/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/TransactionConnectionDecorator.java:[48,0]
error: TransactionConnectionDecorator is not abstract and does not override abstract method
getNetworkTimeout() in Connection
[ERROR] /Users/andrus/work/cayenne-git/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/ConnectionWrapper.java:[47,7]
error: ConnectionWrapper is not abstract and does not override abstract method getNetworkTimeout()
in Connection
[ERROR] /Users/andrus/work/cayenne-git/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/conn/PoolManager.java:[41,7]
error: PoolManager is not abstract and does not override abstract method getParentLogger()
in CommonDataSource
[ERROR] /Users/andrus/work/cayenne-git/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleSQLTemplateAction.java:[107,10]
error: OracleSQLTemplateAction.OracleResultSetWrapper is not abstract and does not override
abstract method <T>getObject(String,Class<T>) in ResultSet

[4] https://github.com/andrus/jdbc4-compat




Mime
View raw message