[Mondrian] Cannot build 3.6

Johnson, Jeremiah jeremiah.johnson at truvenhealth.com
Mon Dec 15 14:12:25 EST 2014


I got that backwards. What I just did should not work. I was originally using a java 7 compiler

________________________________
From: mondrian-bounces at pentaho.org <mondrian-bounces at pentaho.org> on behalf of Johnson, Jeremiah <jeremiah.johnson at truvenhealth.com>
Sent: Monday, December 15, 2014 2:10 PM
To: Mondrian developer mailing list
Subject: Re: [Mondrian] Cannot build 3.6


Thanks. I did not realize that. I did have java 7 in my path. I changed my path and cleaned the sandbox. Now java -version says:


java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode)


I added an echo to print the java version in the ant script:


<echo>Java version: ${java.version}</echo>


Still can't compile:


     [echo] Java version: 1.5.0_22
    [javac] Compiling 166 source files to C:\Users\u0160667\Downloads\mondrian-3
.6-branch\mondrian-3.6\bin\test\classes
    [javac] C:\Users\u0160667\Downloads\mondrian-3.6-branch\mondrian-3.6\testsrc
\main\mondrian\test\TestContext.java:545: cannot find symbol
    [javac] symbol  : method unwrap(java.lang.Class<org.olap4j.OlapConnection>)
    [javac] location: interface java.sql.Connection
    [javac]             connection.unwrap(OlapConnection.class);
    [javac]                       ^


Also my environment:

C:\Users\u0160667\Downloads\mondrian-3.6-branch\mondrian-3.6>echo %JAVA_HOME%
c:\Progra~1\Java\jdk1.5.0_22

C:\Users\u0160667\Downloads\mondrian-3.6-branch\mondrian-3.6>echo %JAVA_HOME_15%

c:\Progra~1\Java\jdk1.5.0_22

C:\Users\u0160667\Downloads\mondrian-3.6-branch\mondrian-3.6>echo %JAVA_HOME_16%

c:\Progra~1\Java\jdk1.6.0_45

C:\Users\u0160667\Downloads\mondrian-3.6-branch\mondrian-3.6>echo %JAVA_HOME_17%

c:\Progra~1\Java\jdk1.7.0_67


________________________________
From: mondrian-bounces at pentaho.org <mondrian-bounces at pentaho.org> on behalf of Julian Hyde <julianhyde at gmail.com>
Sent: Monday, December 15, 2014 1:53 PM
To: Mondrian developer mailing list
Subject: Re: [Mondrian] Cannot build 3.6

Are you using JDK 1.5? java.sql.Wrapper and the unwrap method were only introduced in JDK 1.6.

On Dec 15, 2014, at 10:42 AM, Johnson, Jeremiah <jeremiah.johnson at truvenhealth.com<mailto:jeremiah.johnson at truvenhealth.com>> wrote:

I get some compilation errors with the latest 3.6 now.
    [javac] Compiling 175 source files to C:\Users\u0160667\Downloads\mondrian-3
.6-branch\mondrian-3.6\bin\test\classes
    [javac] C:\Users\u0160667\Downloads\mondrian-3.6-branch\mondrian-3.6\testsrc
\main\mondrian\test\TestContext.java:545: cannot find symbol
    [javac] symbol  : method unwrap(java.lang.Class<org.olap4j.OlapConnection>)
    [javac] location: interface java.sql.Connection
    [javac]             connection.unwrap(OlapConnection.class);

The other branch I was trying to compile is still having some dependency issues. It was having problems with hsqldb. I am now seeing dependency problems with olap4j . I think the best thing is to get the 3.6 branch (not https://github.com/webdetails/mondrian) to compile and apply my patch.

________________________________
From: mondrian-bounces at pentaho.org<mailto:mondrian-bounces at pentaho.org> <mondrian-bounces at pentaho.org<mailto:mondrian-bounces at pentaho.org>> on behalf of Matt Campbell <mcampbell at pentaho.com<mailto:mcampbell at pentaho.com>>
Sent: Monday, December 15, 2014 12:55 PM
To: Mondrian developer mailing list
Subject: Re: [Mondrian] Cannot build 3.6

I’d bet that derby was not set up in the nexus, and it just hasn’t been noticed since it’s sitting in most people’s ivy cache.

Until that’s fixed, it should be possible for you to just remove it as a dependency in ivy.xml.  Derby is not required for compiling or testing Mondrian—it’s only there for the full dist package.



From: mondrian-bounces at pentaho.org<mailto:mondrian-bounces at pentaho.org> [mailto:mondrian-bounces at pentaho.org] On Behalf Of Johnson, Jeremiah
Sent: Monday, December 15, 2014 12:36 PM
To: Mondrian developer mailing list
Subject: Re: [Mondrian] Cannot build 3.6

This is what the error I get with resolving derby:
[ivy:resolve]
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve]           module not found: org.apache.derby#derby;10.2.2.0
[ivy:resolve]   ==== local: tried
[ivy:resolve]     C:\Users\u0160667\.ivy2\local\org.apache.derby\derby\10.2.2.0
ivys\ivy.xml
[ivy:resolve]     -- artifact org.apache.derby#derby;10.2.2.0!derby.jar:
[ivy:resolve]     C:\Users\u0160667\.ivy2\local\org.apache.derby\derby\10.2.2.0
jars\derby-10.2.2.0.jar
[ivy:resolve]   ==== pentaho-ivy: tried
[ivy:resolve]     http://ivy-nexus.pentaho.org/content/groups/omni/org.apache.d
rby/derby/10.2.2.0/derby-10.2.2.0.ivy.xml
[ivy:resolve]   ==== pentaho-mvn: tried
[ivy:resolve]     http://ivy-nexus.pentaho.org/content/groups/omni/org/apache/d
rby/derby/10.2.2.0/derby-10.2.2.0.pom
[ivy:resolve]   ==== public-maven: tried
[ivy:resolve]     http://ivy-nexus.pentaho.org/content/groups/omni/org/apache/d
rby/derby/10.2.2.0/derby-10.2.2.0.pom
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           ::          UNRESOLVED DEPENDENCIES         ::
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]           :: org.apache.derby#derby;10.2.2.0: not found
[ivy:resolve]           ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:resolve]
[ivy:resolve] :::: ERRORS
[ivy:resolve]   impossible to acquire lock for org.apache.derby#derby;10.2.2.0
[ivy:resolve]   impossible to acquire lock for org.apache.derby#derby;10.2.2.0
[ivy:resolve]   impossible to acquire lock for org.apache.derby#derby;10.2.2.0
[ivy:resolve]   impossible to acquire lock for org.apache.derby#derby;10.2.2.0
[ivy:resolve]   impossible to acquire lock for org.apache.derby#derby;10.2.2.0
[ivy:resolve]   impossible to acquire lock for org.apache.derby#derby;10.2.2.0


From: Johnson, Jeremiah
Sent: Monday, December 15, 2014 10:01 AM
To: Mondrian developer mailing list
Subject: Cannot build 3.6

I cannot build a 3.6 branch. Specifically I have downloaded the source fromhttps://github.com/webdetails/mondrian. I have also tried the source fromhttps://github.com/pentaho/mondrian/tree/3.6 and have gotten similar results. The first problem I run into is the derby drivers take forever to error out in ivy. If I comment them out I eventually get this in my ivy cache:

<html>
  <head>
    <title>404 - Path /hsqldb/hsqldb/1.8.0/hsqldb-1.8.0.ivy.xml not found in group repository "public-release-repos" [id=public-release-repos].</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <link rel="icon" type="image/png" href="http://127.0.0.1:8081/favicon.png">
    <!--[if IE]>
    <link rel="SHORTCUT ICON" href="http://127.0.0.1:8081/favicon.ico"/>
    <![endif]-->

    <link rel="stylesheet" href="http://127.0.0.1:8081/static/css/Sonatype-content.css?2.8.0-05" type="text/css" media="screen" title="no title" charset="utf-8">
  </head>
  <body>
    <h1>404 - Path /hsqldb/hsqldb/1.8.0/hsqldb-1.8.0.ivy.xml not found in group repository "public-release-repos" [id=public-release-repos].</h1>
    <p>Path /hsqldb/hsqldb/1.8.0/hsqldb-1.8.0.ivy.xml not found in group repository &quot;public-release-repos&quot; [id=public-release-repos].</p>
  </body>
</html>

I think instead of downloading this file from Pentaho build servers ivy is simply placing the contents of the error in the file. I’ve ready posts that says this occurs because of files that have moved on Pentaho build servers. Is this a problem with the build servers or am I not doing something right?
_______________________________________________
Mondrian mailing list
Mondrian at pentaho.org<mailto:Mondrian at pentaho.org>
http://lists.pentaho.org/mailman/listinfo/mondrian

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20141215/be08a48d/attachment-0001.html 


More information about the Mondrian mailing list