• Icon: Bug Bug
    • Resolution: Unsolved Mysteries
    • Icon: Medium Medium
    • None
    • 0.3
    • Builds
    • None

      I created a build specifying jdk 1.5. This failed, so I added a 1.4 jdk to bamboo then changed the build to use 1.4. However the logs show that it continues to use the original 1.5 jdk, even after a restart of the app.

      This is backed by the fact that I then removed the 1.5 jdk from bamboo completely, and it still builds using 1.5.

      Addition: It seems that it is actually using a different jdk to run the ant script, which was never even specified in the admin screen. This is not even the JAVA_HOME value on the server

            [BAM-209] Doesn't change jdk after creation

            turns out ant is being set to use it in a build properties file from our project, so it's our build screwing up, not yours. ta, think you can close this one fully now.

            Riaz Khanmohamed added a comment - turns out ant is being set to use it in a build properties file from our project, so it's our build screwing up, not yours. ta, think you can close this one fully now.

            Getting this again. Think it's a windows NT thing, as the second time I got it was on a different NT machine.

            Riaz Khanmohamed added a comment - Getting this again. Think it's a windows NT thing, as the second time I got it was on a different NT machine.

            MarkC added a comment -

            Riaz,

            I'll mark this issue as an "Unsolved Mystery" for now and we'll see if we can revisit it later on.

            Cheers,

            Mark C

            MarkC added a comment - Riaz, I'll mark this issue as an "Unsolved Mystery" for now and we'll see if we can revisit it later on. Cheers, Mark C

            haven't had a relapse of this issue so I think you can close this until it resurfaces.... I can't recreate it so I can't really help you.

            Riaz Khanmohamed added a comment - haven't had a relapse of this issue so I think you can close this until it resurfaces.... I can't recreate it so I can't really help you.

            MarkC added a comment -

            Riaz,

            One of the things that the JDK 1.5 installer does is that it writes to the Windows registry, so possibly the Ant Javac task is looking directly there.

            I'll try to get to the bottom of this today

            Cheers,

            Mark C

            MarkC added a comment - Riaz, One of the things that the JDK 1.5 installer does is that it writes to the Windows registry, so possibly the Ant Javac task is looking directly there. I'll try to get to the bottom of this today Cheers, Mark C

            Has just occured to me:

            at the start of the log it correctly says

            'using java: "c:\java\j2sdk1.4.2_05" '

            but then uses C:\Program Files\​Java\​jdk1.5.0_06\​bin\​javac.exe when calling the ant 'javac' command. Maybe this is to do with ant using the wrong jdk?

            Riaz Khanmohamed added a comment - Has just occured to me: at the start of the log it correctly says 'using java: "c:\java\j2sdk1.4.2_05" ' but then uses C:\Program Files\​Java\​jdk1.5.0_06\​bin\​javac.exe when calling the ant 'javac' command. Maybe this is to do with ant using the wrong jdk?

            Here goes:

            Server is Windows NT. Seems to work on an alternative XP installation although the default it picked up might have matched the one I wanted - have been playing around porting project files from beetlejuice so can't get you the working data at present. I'll get these on here as soon as I get them

            Server's JAVA_HOME is c:\java\j2sdk1.4.2_05
            Registered JDK within bamboo is c:\java\j2sdk1.4.2_05
            Jdk being used for ant build is C:\Program Files\​Java\​jdk1.5.0_06\​bin\​javac.exe

            administration.xml is:

            <AdministrationConfiguration>
            <myBaseUrl>http://lonw015573.uk.net.intra:8085</myBaseUrl>
            <myDataFormatVersion>2</myDataFormatVersion>
            <myBuildDirectory>D:\Bamboo\Bamboo\xml-data\build-dir</myBuildDirectory>
            <myRepositoryPollingPeriod>120</myRepositoryPollingPeriod>
            <myUseGzipCompression>false</myUseGzipCompression>
            <myJdks>
            <entry>
            <string>1.4.2</string>
            <JdkPathMap>
            <myLabel>1.4.2</myLabel>
            <myHomeDirectory>c:\java\j2sdk1.4.2_05</myHomeDirectory>
            </JdkPathMap>
            </entry>
            </myJdks>
            <myLicense>SETUP-COMPLETE</myLicense>
            <myEnableRemoteApi>false</myEnableRemoteApi>
            <myBuilderLabelPathMaps>
            <entry>
            <string>Ant 1.6.2</string>
            <LabelPathMap>
            <myLabel>Ant 1.6.2</myLabel>
            <myHomeDirectory>d:\utilities\apache-ant-1.6.2</myHomeDirectory>
            <myBuilderType>com.atlassian.bamboo.plugin.system.builder:ant</myBuilderType>
            </LabelPathMap>
            </entry>
            </myBuilderLabelPathMaps>
            </AdministrationConfiguration>

            After a few server start/stops it still does it. Having done a text search (limited by windows' own search facility) the only reference to that jdk i can find is in the buildresults xml files.

            Riaz Khanmohamed added a comment - Here goes: Server is Windows NT. Seems to work on an alternative XP installation although the default it picked up might have matched the one I wanted - have been playing around porting project files from beetlejuice so can't get you the working data at present. I'll get these on here as soon as I get them Server's JAVA_HOME is c:\java\j2sdk1.4.2_05 Registered JDK within bamboo is c:\java\j2sdk1.4.2_05 Jdk being used for ant build is C:\Program Files\​Java\​jdk1.5.0_06\​bin\​javac.exe administration.xml is: <AdministrationConfiguration> <myBaseUrl> http://lonw015573.uk.net.intra:8085 </myBaseUrl> <myDataFormatVersion>2</myDataFormatVersion> <myBuildDirectory>D:\Bamboo\Bamboo\xml-data\build-dir</myBuildDirectory> <myRepositoryPollingPeriod>120</myRepositoryPollingPeriod> <myUseGzipCompression>false</myUseGzipCompression> <myJdks> <entry> <string>1.4.2</string> <JdkPathMap> <myLabel>1.4.2</myLabel> <myHomeDirectory>c:\java\j2sdk1.4.2_05</myHomeDirectory> </JdkPathMap> </entry> </myJdks> <myLicense>SETUP-COMPLETE</myLicense> <myEnableRemoteApi>false</myEnableRemoteApi> <myBuilderLabelPathMaps> <entry> <string>Ant 1.6.2</string> <LabelPathMap> <myLabel>Ant 1.6.2</myLabel> <myHomeDirectory>d:\utilities\apache-ant-1.6.2</myHomeDirectory> <myBuilderType>com.atlassian.bamboo.plugin.system.builder:ant</myBuilderType> </LabelPathMap> </entry> </myBuilderLabelPathMaps> </AdministrationConfiguration> After a few server start/stops it still does it. Having done a text search (limited by windows' own search facility) the only reference to that jdk i can find is in the buildresults xml files.

            MarkC added a comment -

            Riaz,

            Thanks for your report. This could be an interesting one to try to debug.

            What system environment are you running this in? Is this using windows?

            Could you also please attach your administration.xml to this issue? This can be found in your BAMB_HOME/xml-data/configuration.

            I'll have a look and see if I can find anything.

            Cheers,

            Mark C

            MarkC added a comment - Riaz, Thanks for your report. This could be an interesting one to try to debug. What system environment are you running this in? Is this using windows? Could you also please attach your administration.xml to this issue? This can be found in your BAMB_HOME/xml-data/configuration . I'll have a look and see if I can find anything. Cheers, Mark C

              mark@atlassian.com MarkC
              0aac02679fc3 Riaz Khanmohamed
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: