develop-c1b5b79 failed to build

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

develop-c1b5b79 failed to build

cobalt
Hi, I'm trying to build develop-c1b5b79 on a window box but I get the following errors. How do I fix this?
Thanks for your help!

eXist Build
-------------------
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_05
EXIST_HOME=D:\eXistFromSource\exist
_LIBJARS=;D:\eXistFromSource\exist\tools\ant\lib\ant-launcher-1.9.7.jar
_JAVA_OPTS=-Xms512m -Xmx512m -Djava.endorsed.dirs="D:\eXistFromSource\exist\lib\endorsed" -Dant.home="D:\eXistFromSource\exist\tools\ant" -Dexist.home="D:\eXistFromSource\exist" -Djavax.xml.transform.TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
Starting Ant...
ECHO is off.
Buildfile: D:\eXistFromSource\exist\build.xml

git.details:
     [copy] Copying 1 file to D:\eXistFromSource\exist

prepare:
     [echo] -------------------------
     [echo] eXist 3.0.RC2 build
     [echo] -------------------------
     [echo] Git commit ID: develop-c1b5b79
     [echo]
     [echo] Apache Ant(TM) version 1.9.7 compiled on April 9 2016
     [echo] -------------------------
     [echo]
     [echo] basedir=D:\eXistFromSource\exist
     [copy] Copying 1 file to D:\eXistFromSource\exist\webapp\WEB-INF

compile:
     [echo] Compiling with Java 1.8 from 1.8 source to 1.8 target, debug on, optimize on, deprecation off
    [javac] Compiling 1463 source files to D:\eXistFromSource\exist\build\classes
    [javac] D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:93: error: reference to withLock is ambiguous
    [javac]         return withLock(broker -> {
    [javac]                ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>withLock(Function<DBBroker,T>)
    [javac] D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:109: error: incompatible types: bad return type in lambda expression
    [javac]             return txn;
    [javac]                    ^
    [javac]     unexpected return value
    [javac] D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:126: error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>withLock(Function<DBBroker,T>)
    [javac] D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:153: error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>withLock(Function<DBBroker,T>)
    [javac] D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:284: error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>withLock(Function<DBBroker,T>)
    [javac] D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:290: error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>withLock(Function<DBBroker,T>)
    [javac] D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:311: error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method <T>withLock(Function<DBBroker,T>)
    [javac] D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:313: error: incompatible types: bad return type in lambda expression
    [javac]             return null;
    [javac]                    ^
    [javac]     unexpected return value
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
    [javac] 8 errors


Reply | Threaded
Open this post in threaded view
|

Re: develop-c1b5b79 failed to build

Dmitriy Shabanov
Did you build by "./build.bat rebuild"?

On Wed, Feb 1, 2017 at 12:15 PM, cobalt <[hidden email]> wrote:
Hi, I'm trying to build develop-c1b5b79 on a window box but I get the
following errors. How do I fix this?
Thanks for your help!

eXist Build
-------------------
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_05
EXIST_HOME=D:\eXistFromSource\exist
_LIBJARS=;D:\eXistFromSource\exist\tools\ant\lib\ant-launcher-1.9.7.jar
_JAVA_OPTS=-Xms512m -Xmx512m
-Djava.endorsed.dirs="D:\eXistFromSource\exist\lib\endorsed"
-Dant.home="D:\eXistFromSource\exist\tools\ant"
-Dexist.home="D:\eXistFromSource\exist"
-Djavax.xml.transform.TransformerFactory="org.apache.xalan.processor.TransformerFactoryImpl"
Starting Ant...
ECHO is off.
Buildfile: D:\eXistFromSource\exist\build.xml

git.details:
     [copy] Copying 1 file to D:\eXistFromSource\exist

prepare:
     [echo] -------------------------
     [echo] eXist 3.0.RC2 build
     [echo] -------------------------
     [echo] Git commit ID: develop-c1b5b79
     [echo]
     [echo] Apache Ant(TM) version 1.9.7 compiled on April 9 2016
     [echo] -------------------------
     [echo]
     [echo] basedir=D:\eXistFromSource\exist
     [copy] Copying 1 file to D:\eXistFromSource\exist\webapp\WEB-INF

compile:
     [echo] Compiling with Java 1.8 from 1.8 source to 1.8 target, debug on,
optimize on, deprecation off
    [javac] Compiling 1463 source files to
D:\eXistFromSource\exist\build\classes
    [javac]
D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:93:
error: reference to withLock is ambiguous
    [javac]         return withLock(broker -> {
    [javac]                ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager
and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>withLock(Function<DBBroker,T>)
    [javac]
D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:109:
error: incompatible types: bad return type in lambda expression
    [javac]             return txn;
    [javac]                    ^
    [javac]     unexpected return value
    [javac]
D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:126:
error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager
and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>withLock(Function<DBBroker,T>)
    [javac]
D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:153:
error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager
and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>withLock(Function<DBBroker,T>)
    [javac]
D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:284:
error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager
and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>withLock(Function<DBBroker,T>)
    [javac]
D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:290:
error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager
and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>withLock(Function<DBBroker,T>)
    [javac]
D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:311:
error: reference to withLock is ambiguous
    [javac]         withLock(broker -> {
    [javac]         ^
    [javac]   both method withLock(Consumer<DBBroker>) in TransactionManager
and method <T>withLock(Function<DBBroker,T>) in TransactionManager match
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in method
<T>withLock(Function<DBBroker,T>)
    [javac]
D:\eXistFromSource\exist\src\org\exist\storage\txn\TransactionManager.java:313:
error: incompatible types: bad return type in lambda expression
    [javac]             return null;
    [javac]                    ^
    [javac]     unexpected return value
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Note: Some messages have been simplified; recompile with
-Xdiags:verbose to get full output
    [javac] 8 errors






--
View this message in context: http://exist.2174344.n4.nabble.com/develop-c1b5b79-failed-to-build-tp4671244.html
Sent from the exist-open mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



--
Dmitriy Shabanov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: develop-c1b5b79 failed to build

cobalt
Hi Dimitry, yes I also tried the 'rebuild' argument but got the same errors.
Reply | Threaded
Open this post in threaded view
|

Re: develop-c1b5b79 failed to build

Dmitriy Shabanov
Can you update java to latest?

On Wed, Feb 1, 2017 at 1:12 PM, cobalt <[hidden email]> wrote:
Hi Dimitry, yes I also tried the 'rebuild' argument but got the same errors.



--
View this message in context: http://exist.2174344.n4.nabble.com/develop-c1b5b79-failed-to-build-tp4671244p4671246.html
Sent from the exist-open mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



--
Dmitriy Shabanov

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: develop-c1b5b79 failed to build

cobalt
Thanks to Dimitriy!
I got this to build without errors after installing the latest java jdk
Reply | Threaded
Open this post in threaded view
|

Re: develop-c1b5b79 failed to build

Dannes Wessels-3
quite creepy that an old java8 version is giving these issues ; and it is interesting that this old version was installed :-) 

On 1 Feb 2017, at 13:06 , cobalt <[hidden email]> wrote:

I got this to build without errors after installing the latest java jdk


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: develop-c1b5b79 failed to build

cobalt
Hi Dannes, yes I was also a bit surprised when it turned out that those build errors where caused by an older Java8 installation. I even checked my version of java before I run the first build and it showed 1.8xx and I was happy - ok I got version 8 and not 7 anymore, that should do :-)
But then my java knowledge is just like advanced newby state.

Anyway, I'm happy its all working now and I even got the latest version of java running.

I've been working with eXist for a few years now and I never had the need yet to build the latest version.
I'm using Apache FOP to render PDF's from captured PO data. Users also upload invoice and quotation PDF's and those get inserted into the PO PDF with the PDF Images Plug-In.
Lately I experienced some issues where some uploaded PDF's would cause the rendering of the PO PDF to fail and was hoping that the latest version FOP 2.1 would solve the issue. So far it looks promising but I still need to do more testing :-)