[Hibernate-JIRA] Created: (HHH-2446) build failed, compilation error
by Jen Zhang (JIRA)
build failed, compilation error
-------------------------------
Key: HHH-2446
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2446
Project: Hibernate3
Type: Bug
Components: build
Versions: 3.2.2
Environment: version 3.2.2, January 24, 2007, jdk1.6
Reporter: Jen Zhang
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>echo %PATH%
C:\Program Files\Java\jdk1.6.0\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys
tem32\Wbem;C:\Program Files\QuickTime\QTSystem\
build.bat
java -cp "lib/ant-launcher-1.6.5.jar" org.apache.tools.ant.launch.Launc
her -lib lib
Buildfile: build.xml
[taskdef] Could not load definitions from resource clovertasks. It could not b
e found.
splash:
init:
[echo] Build Hibernate-3.2.2.ga (2007-02-25 02:59:50)
[echo] JDK version: 1.5
init.antlr:
antlr:
compile:
[javac] Compiling 1055 source files to C:\Documents and Settings\Yan\My Docu
ments\My Downloads\hibernate-3.2.2.ga\hibernate-3.2\build\classes
[javac] C:\Documents and Settings\Yan\My Documents\My Downloads\hibernate-3.
2.2.ga\hibernate-3.2\src\org\hibernate\jdbc\ResultSetWrapper.java:30: org.hibern
ate.jdbc.ResultSetWrapper is not abstract and does not override abstract method
updateNClob(java.lang.String,java.io.Reader) in java.sql.ResultSet
[javac] public class ResultSetWrapper implements ResultSet {
[javac] ^
[javac] C:\Documents and Settings\Yan\My Documents\My Downloads\hibernate-3.
2.2.ga\hibernate-3.2\src\org\hibernate\lob\BlobImpl.java:16: org.hibernate.lob.B
lobImpl is not abstract and does not override abstract method getBinaryStream(lo
ng,long) in java.sql.Blob
[javac] public class BlobImpl implements Blob {
[javac] ^
[javac] C:\Documents and Settings\Yan\My Documents\My Downloads\hibernate-3.
2.2.ga\hibernate-3.2\src\org\hibernate\lob\ClobImpl.java:18: org.hibernate.lob.C
lobImpl is not abstract and does not override abstract method getCharacterStream
(long,long) in java.sql.Clob
[javac] public class ClobImpl implements Clob {
[javac] ^
[javac] C:\Documents and Settings\Yan\My Documents\My Downloads\hibernate-3.
2.2.ga\hibernate-3.2\src\org\hibernate\lob\SerializableBlob.java:13: org.hiberna
te.lob.SerializableBlob is not abstract and does not override abstract method ge
tBinaryStream(long,long) in java.sql.Blob
[javac] public class SerializableBlob implements Serializable, Blob {
[javac] ^
[javac] C:\Documents and Settings\Yan\My Documents\My Downloads\hibernate-3.
2.2.ga\hibernate-3.2\src\org\hibernate\lob\SerializableClob.java:15: org.hiberna
te.lob.SerializableClob is not abstract and does not override abstract method ge
tCharacterStream(long,long) in java.sql.Clob
[javac] public class SerializableClob implements Serializable, Clob {
[javac] ^
[javac] 5 errors
BUILD FAILED
C:\Documents and Settings\Yan\My Documents\My Downloads\hibernate-3.2.2.ga\hiber
nate-3.2\build.xml:209: Compile failed; see the compiler error output for detail
s.
Total time: 24 seconds
Thanks!!!
Jen
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
17 years, 10 months
[Hibernate-JIRA] Created: (HSEARCH-21) NPE in SearchFactory while using different threads
by Sylvain Vieujot (JIRA)
NPE in SearchFactory while using different threads
--------------------------------------------------
Key: HSEARCH-21
URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-21
Project: Hibernate Search
Type: Bug
Components: engine
Reporter: Sylvain Vieujot
java.lang.NullPointerException
at org.hibernate.search.SearchFactory.getSearchFactory(SearchFactory.java:120)
at com.seanergie.persistence.SessionsManager.getSearchFactory(SessionsManager.java:374)
...
The contexts ThreadLocal is missing a get method. it is initialized by the first thread that uses it by the static statement, but for the next Thread it hasn't been initialized, and so it contexts.get() returns null.
Simple fix : add the get method as follows :
public class SearchFactory {
private static ThreadLocal<WeakHashMap<Configuration, SearchFactory>> contexts =
new ThreadLocal<WeakHashMap<Configuration, SearchFactory>>(){
@Override
public WeakHashMap<Configuration,SearchFactory> get() {
return new WeakHashMap<Configuration, SearchFactory>(2);
}
};
static {
Version.touch();
contexts.set( new WeakHashMap<Configuration, SearchFactory>(2) );
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
17 years, 10 months