[kepler-dev] build problems
Derik Barseghian
barseghian at nceas.ucsb.edu
Thu Aug 9 13:00:31 PDT 2012
Thanks Dan, that works for me w/ a fresh checkout on linux.
The other problem of a build-area/build-area being created was still there. This was due to my changes to remove memory setting hardcodes at r30353, which causes MemoryProperties to end up invoking ProjectLocator.findKeplerModulesDir() in a way (using the location of ant.jar as its starting point for recursing up the filesystem in search of build-area/modules.txt) that causes it to fail into its catch block, which returned the wrong path. I fixed the wrong path at r30385-30387.
I filed a bug to improve findKeplerModulesDir(): http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5669
Derik
On Aug 9, 2012, at 11:15 AM, Daniel Crawl <danielcrawl at gmail.com> wrote:
>
> Hi Derik,
>
> It looks like I created this bug in r30183. Sorry about that.
> I was able to reproduce it by removing build-area/modules.txt.
>
> I checked in a fix; let me know if there are still problems.
>
> --dan
>
> On 8/9/12 9:58 AM, Jianwu Wang wrote:
>> Hi Derik,
>>
>> I can reproduce the error message with a fresh check out. Kepler
>> can still be checked out but cannot be started. I'll look into it and
>> see whether my changes cause it.
>>
>> Best wishes
>>
>> Sincerely yours
>>
>> Jianwu Wang, Ph.D.
>> jianwu at sdsc.edu
>> http://users.sdsc.edu/~jianwu/
>>
>> Assistant Project Scientist
>> Scientific Workflow Automation Technologies (SWAT) Laboratory
>> San Diego Supercomputer Center
>> University of California, San Diego
>> San Diego, CA, U.S.A.
>>
>> On 8/8/12 6:38 PM, Derik Barseghian wrote:
>>> The problem has resumed on linux with a new kepler-tasks.jar being
>>> checked in today.
>>> Jianwu, do you think any of the code you've recently added that
>>> utilizes ProjectLocation could be causing this?
>>> It sounds like Dan and Christopher don't see the problem I do on
>>> linux. I see it on two different linux boxes though, so maybe it
>>> requires a fresh checkout or clean-all to manifest.
>>>
>>> On Aug 7, 2012, at 11:21 PM, Derik Barseghian
>>> <barseghian at nceas.ucsb.edu> wrote:
>>>
>>>> I found reverting kepler-task.jar to before r30353 allows linux to
>>>> launch kepler, but a similar error about missing modules.txt still
>>>> appears on initial ant change-to -Dsuite=kepler. We'll have to look
>>>> at this further.
>>>>
>>>> barseghian at ubuntu:~/dev2/kepler.modules.temp/build-area$ ant
>>>> change-to -Dsuite=kepler
>>>> Buildfile: build.xml
>>>>
>>>> change-to:
>>>> [change-to] java.io.FileNotFoundException:
>>>> /home/barseghian/dev2/kepler.modules.temp/build-area/modules.txt (No
>>>> such file or directory)
>>>> [change-to] at java.io.FileInputStream.open(Native Method)
>>>> [change-to] at
>>>> java.io.FileInputStream.<init>(FileInputStream.java:120)
>>>> [change-to] at java.io.FileReader.<init>(FileReader.java:55)
>>>> [change-to] at
>>>> org.kepler.build.modules.ModulesTxt.readHelper(ModulesTxt.java:161)
>>>> [change-to] at
>>>> org.kepler.build.modules.ModulesTxt.read(ModulesTxt.java:145)
>>>> [change-to] at
>>>> org.kepler.build.modules.ModulesTxt.init(ModulesTxt.java:58)
>>>> [change-to] at
>>>> org.kepler.build.modules.ModuleTree.init(ModuleTree.java:103)
>>>> [change-to] at
>>>> org.kepler.build.modules.ModuleTree.instance(ModuleTree.java:93)
>>>> [change-to] at
>>>> org.kepler.util.DotKeplerManager.initialize(DotKeplerManager.java:132)
>>>> [change-to] at
>>>> org.kepler.util.DotKeplerManager.getInstance(DotKeplerManager.java:110)
>>>> [change-to] at
>>>> org.kepler.build.project.ProjectLocator.getUserKeplerModulesDir(ProjectLocator.java:102)
>>>>
>>>> [change-to] at
>>>> org.kepler.build.project.ProjectLocator.setKeplerModulesDir(ProjectLocator.java:79)
>>>>
>>>> [change-to] at
>>>> org.kepler.build.modules.ModulesTask.init(ModulesTask.java:76)
>>>> [change-to] at
>>>> org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:223)
>>>>
>>>> [change-to] at
>>>> org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:414)
>>>> [change-to] at
>>>> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
>>>>
>>>> [change-to] at org.apache.tools.ant.Task.perform(Task.java:347)
>>>> [change-to] at org.apache.tools.ant.Target.execute(Target.java:357)
>>>> [change-to] at
>>>> org.apache.tools.ant.Target.performTasks(Target.java:385)
>>>> [change-to] at
>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>>>> [change-to] at
>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>>>> [change-to] at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>>>
>>>> [change-to] at
>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>>>> [change-to] at org.apache.tools.ant.Main.runBuild(Main.java:758)
>>>> [change-to] at org.apache.tools.ant.Main.startAnt(Main.java:217)
>>>> [change-to] at
>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>>> [change-to] at
>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>>>>
>>>> On Aug 7, 2012, at 7:42 PM, Derik Barseghian
>>>> <barseghian at nceas.ucsb.edu> wrote:
>>>>
>>>>> I haven't been following kepler closely today, but I've updated now
>>>>> and have problems -- on linux I get some errors and can't launch. On
>>>>> mac I get some errors but can launch.
>>>>>
>>>>> LINUX:
>>>>> On a fresh checkout, doing ant change-to -Dsuite=kepler you see an
>>>>> error go past (note build-area/build-area/ in path) :
>>>>>
>>>>> [run] WARNING: Using virtual project location.
>>>>> [run] java.io.FileNotFoundException:
>>>>> /home/barseghian/dev2/kepler.modules/build-area/build-area/modules.txt
>>>>> (No such file or directory)
>>>>> [run] at java.io.FileInputStream.open(Native Method)
>>>>> [run] at
>>>>> java.io.FileInputStream.<init>(FileInputStream.java:120)
>>>>> [run] at java.io.FileReader.<init>(FileReader.java:55)
>>>>> [run] at
>>>>> org.kepler.build.modules.ModulesTxt.readHelper(ModulesTxt.java:161)
>>>>> [run] at
>>>>> org.kepler.build.modules.ModulesTxt.read(ModulesTxt.java:145)
>>>>> [run] at
>>>>> org.kepler.build.modules.ModulesTxt.init(ModulesTxt.java:58)
>>>>> [run] at
>>>>> org.kepler.build.modules.ModuleTree.init(ModuleTree.java:103)
>>>>> [run] at
>>>>> org.kepler.build.modules.ModuleTree.instance(ModuleTree.java:93)
>>>>> [run] at
>>>>> org.kepler.util.DotKeplerManager.initialize(DotKeplerManager.java:132)
>>>>> [run] at
>>>>> org.kepler.util.DotKeplerManager.getInstance(DotKeplerManager.java:110)
>>>>> [run] at
>>>>> org.kepler.build.project.ProjectLocator.getUserKeplerModulesDir(ProjectLocator.java:102)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.ProjectLocator.setKeplerModulesDir(ProjectLocator.java:79)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.ProjectLocator.getBuildDir(ProjectLocator.java:193)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.ProjectLocator.shouldUtilizeUserKeplerModules(ProjectLocator.java:92)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.MemoryProperties.<init>(MemoryProperties.java:27)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.MemoryProperties.instance(MemoryProperties.java:67)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.MemoryProperties.getMaxMemory(MemoryProperties.java:84)
>>>>>
>>>>> [run] at org.kepler.build.Run.<init>(Run.java:71)
>>>>> [run] at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>> [run] at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>
>>>>> [run] at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>
>>>>> [run] at
>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>>>
>>>>>
>>>>> things proceed to checkout, but ant run eventually bombs:
>>>>>
>>>>> [run] java.lang.NullPointerException
>>>>> [run] at
>>>>> org.kepler.build.project.RepositoryLocations.getLocation(RepositoryLocations.java:115)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.modules.Module.<init>(Module.java:185)
>>>>> [run] at org.kepler.build.modules.Suite.<init>(Suite.java:71)
>>>>> [run] at org.kepler.build.modules.Node.<init>(Node.java:49)
>>>>> [run] at
>>>>> org.kepler.build.modules.ModuleTree.<init>(ModuleTree.java:54)
>>>>> [run] at
>>>>> org.kepler.build.modules.ModuleTree.init(ModuleTree.java:106)
>>>>> [run] at
>>>>> org.kepler.build.modules.ModuleTree.instance(ModuleTree.java:93)
>>>>> [run] at
>>>>> org.kepler.util.DotKeplerManager.initialize(DotKeplerManager.java:132)
>>>>> [run] at
>>>>> org.kepler.util.DotKeplerManager.getInstance(DotKeplerManager.java:110)
>>>>> [run] at
>>>>> org.kepler.build.project.ProjectLocator.getUserKeplerModulesDir(ProjectLocator.java:102)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.ProjectLocator.setKeplerModulesDir(ProjectLocator.java:79)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.ProjectLocator.getBuildDir(ProjectLocator.java:193)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.ProjectLocator.shouldUtilizeUserKeplerModules(ProjectLocator.java:92)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.MemoryProperties.<init>(MemoryProperties.java:27)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.MemoryProperties.instance(MemoryProperties.java:67)
>>>>>
>>>>> [run] at
>>>>> org.kepler.build.project.MemoryProperties.getMaxMemory(MemoryProperties.java:84)
>>>>>
>>>>> [run] at org.kepler.build.Run.<init>(Run.java:71)
>>>>> [run] at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>>>> [run] at
>>>>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>>>>>
>>>>> [run] at
>>>>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>>>>>
>>>>> [run] at
>>>>> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>>>>> [run] at
>>>>> org.apache.tools.ant.AntTypeDefinition.innerCreateAndSet(AntTypeDefinition.java:311)
>>>>>
>>>>> [run] at
>>>>> org.apache.tools.ant.AntTypeDefinition.createAndSet(AntTypeDefinition.java:257)
>>>>>
>>>>> [run] at
>>>>> org.apache.tools.ant.AntTypeDefinition.icreate(AntTypeDefinition.java:202)
>>>>>
>>>>> [run] at
>>>>> org.apache.tools.ant.AntTypeDefinition.create(AntTypeDefinition.java:189)
>>>>>
>>>>> [run] at
>>>>> org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:238)
>>>>>
>>>>> [run] at
>>>>> org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:216)
>>>>>
>>>>> [run] at
>>>>> org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:414)
>>>>> [run] at
>>>>> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
>>>>>
>>>>> [run] at org.apache.tools.ant.Task.perform(Task.java:347)
>>>>> [run] at org.apache.tools.ant.Target.execute(Target.java:357)
>>>>> [run] at
>>>>> org.apache.tools.ant.Target.performTasks(Target.java:385)
>>>>> [run] at
>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
>>>>> [run] at
>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>>>>> [run] at
>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>>>>
>>>>> [run] at
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1189)
>>>>> [run] at org.apache.tools.ant.Main.runBuild(Main.java:758)
>>>>> [run] at org.apache.tools.ant.Main.startAnt(Main.java:217)
>>>>> [run] at
>>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>>>>> [run] at
>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>>>>> [run] Module Directory could not be created
>>>>>
>>>>> You end up with a build-area/build-area dir.
>>>>>
>>>>> MAC
>>>>> With a fresh checkout you see a similar error go past:
>>>>>
>>>>> quirk:build-area derik$ ant change-to -Dsuite=kepler
>>>>> Buildfile: /Users/derik/dev2/kepler.modules.temp/build-area/build.xml
>>>>>
>>>>> change-to:
>>>>> [change-to] java.io.FileNotFoundException:
>>>>> /Users/derik/dev2/kepler.modules.temp/build-area/modules.txt (No
>>>>> such file or directory)
>>>>> [change-to] at java.io.FileInputStream.open(Native Method)
>>>>> [change-to] at
>>>>> java.io.FileInputStream.<init>(FileInputStream.java:120)
>>>>> [change-to] at java.io.FileReader.<init>(FileReader.java:55)
>>>>> [change-to] at
>>>>> org.kepler.build.modules.ModulesTxt.readHelper(ModulesTxt.java:161)
>>>>> [change-to] at
>>>>> org.kepler.build.modules.ModulesTxt.read(ModulesTxt.java:145)
>>>>> [change-to] at
>>>>> org.kepler.build.modules.ModulesTxt.init(ModulesTxt.java:58)
>>>>> [change-to] at
>>>>> org.kepler.build.modules.ModuleTree.init(ModuleTree.java:103)
>>>>> [change-to] at
>>>>> org.kepler.build.modules.ModuleTree.instance(ModuleTree.java:93)
>>>>> [change-to] at
>>>>> org.kepler.util.DotKeplerManager.initialize(DotKeplerManager.java:132)
>>>>> [change-to] at
>>>>> org.kepler.util.DotKeplerManager.getInstance(DotKeplerManager.java:110)
>>>>> [change-to] at
>>>>> org.kepler.build.project.ProjectLocator.getUserKeplerModulesDir(ProjectLocator.java:102)
>>>>>
>>>>> [change-to] at
>>>>> org.kepler.build.project.ProjectLocator.setKeplerModulesDir(ProjectLocator.java:79)
>>>>>
>>>>> [change-to] at
>>>>> org.kepler.build.modules.ModulesTask.init(ModulesTask.java:76)
>>>>> [change-to] at
>>>>> org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:271)
>>>>>
>>>>> [change-to] at
>>>>> org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:417)
>>>>> [change-to] at
>>>>> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:163)
>>>>>
>>>>> [change-to] at org.apache.tools.ant.Task.perform(Task.java:347)
>>>>> [change-to] at org.apache.tools.ant.Target.execute(Target.java:392)
>>>>> [change-to] at
>>>>> org.apache.tools.ant.Target.performTasks(Target.java:413)
>>>>> [change-to] at
>>>>> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
>>>>> [change-to] at
>>>>> org.apache.tools.ant.Project.executeTarget(Project.java:1368)
>>>>> [change-to] at
>>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>>>>>
>>>>> [change-to] at
>>>>> org.apache.tools.ant.Project.executeTargets(Project.java:1251)
>>>>> [change-to] at org.apache.tools.ant.Main.runBuild(Main.java:811)
>>>>> [change-to] at org.apache.tools.ant.Main.startAnt(Main.java:217)
>>>>> [change-to] at
>>>>> org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
>>>>> [change-to] at
>>>>> org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
>>>>>
>>>>>
>>>>> but ant run starts up kepler, and no build-area/build-area.
>>>>> _______________________________________________
>>>>> Kepler-dev mailing list
>>>>> Kepler-dev at kepler-project.org
>>>>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>>> _______________________________________________
>>>> Kepler-dev mailing list
>>>> Kepler-dev at kepler-project.org
>>>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>> _______________________________________________
>>> Kepler-dev mailing list
>>> Kepler-dev at kepler-project.org
>>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>>
>> _______________________________________________
>> Kepler-dev mailing list
>> Kepler-dev at kepler-project.org
>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-dev
>
More information about the Kepler-dev
mailing list