[Swift-devel] swift -typecheck gives null pointer execption
Ben Clifford
benc at hawaga.org.uk
Tue Jul 22 02:23:04 CDT 2008
ok, stick that in bugzilla.
In the general area of typechecking, Milena's compile-time typechecking
code should be hitting trunk Real Soon Now so the -typecheck option should
become less necessary.
On Tue, 22 Jul 2008, Michael Wilde wrote:
> For the attached file ab1.swift, I get the error below.
> I was trying to track down a different Swift problem for Alina when this
> occurred. (hence the commented out code)
>
> This was in ~wilde/testBLAST where you can find the mappers, which returned:
>
> communicado$ ./inmapper
> [0] /home/wilde/testBLAST/data/one.faa
> [1] /home/wilde/testBLAST/data/three.faa
> [2] /home/wilde/testBLAST/data/two.faa
> communicado$ ./medmapper
> [0].left /home/wilde/testBLAST/data/one.faa.left
> [0].right /home/wilde/testBLAST/data/one.faa.right
> [1].left /home/wilde/testBLAST/data/three.faa.left
> [1].right /home/wilde/testBLAST/data/three.faa.right
> [2].left /home/wilde/testBLAST/data/two.faa.left
> [2].right /home/wilde/testBLAST/data/two.faa.right
> communicado$
>
> I realize medmapper is wrong and doesnt match the declared fields, but Swift
> shouldnt give a NPE.
>
> - Mike
>
>
> communicado$ swift -typecheck ab1.swift
> Swift svn swift-r2144 cog-r2072
>
> RunID: 20080721-2351-dmm4uzjb
> Progress:
> Execution failed:
> java.lang.NullPointerException
> at
> org.griphyn.vdl.karajan.lib.GetFieldSubscript.function(GetFieldSubscript.java:39)
> at org.griphyn.vdl.karajan.lib.VDLFunction.post(VDLFunction.java:65)
> at
> org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments.childCompleted(AbstractSequentialWithArguments.java:192)
> at
> org.globus.cog.karajan.workflow.nodes.Sequential.notificationEvent(Sequential.java:33)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.event(FlowNode.java:335)
> at
> org.globus.cog.karajan.workflow.events.EventBus.send(EventBus.java:125)
> at
> org.globus.cog.karajan.workflow.events.EventBus.sendHooked(EventBus.java:99)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.fireNotificationEvent(FlowNode.java:173)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.complete(FlowNode.java:299)
> at
> org.globus.cog.karajan.workflow.nodes.FlowContainer.post(FlowContainer.java:58)
> at
> org.globus.cog.karajan.workflow.nodes.functions.Argument.post(Argument.java:45)
> at
> org.globus.cog.karajan.workflow.nodes.AbstractSequentialWithArguments.childCompleted(AbstractSequentialWithArguments.java:192)
> at
> org.globus.cog.karajan.workflow.nodes.Sequential.notificationEvent(Sequential.java:33)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.event(FlowNode.java:335)
> at
> org.globus.cog.karajan.workflow.events.EventBus.send(EventBus.java:125)
> at
> org.globus.cog.karajan.workflow.events.EventBus.sendHooked(EventBus.java:99)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.fireNotificationEvent(FlowNode.java:173)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.complete(FlowNode.java:299)
> at
> org.globus.cog.karajan.workflow.nodes.FlowContainer.post(FlowContainer.java:58)
> at
> org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction.post(AbstractFunction.java:46)
> at
> org.globus.cog.karajan.workflow.nodes.Sequential.startNext(Sequential.java:51)
> at
> org.globus.cog.karajan.workflow.nodes.Sequential.executeChildren(Sequential.java:27)
> at
> org.globus.cog.karajan.workflow.nodes.functions.AbstractFunction.executeChildren(AbstractFunction.java:40)
> at
> org.globus.cog.karajan.workflow.nodes.FlowContainer.execute(FlowContainer.java:63)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.restart(FlowNode.java:240)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.start(FlowNode.java:281)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.controlEvent(FlowNode.java:393)
> at
> org.globus.cog.karajan.workflow.nodes.FlowNode.event(FlowNode.java:332)
> at
> org.globus.cog.karajan.workflow.FlowElementWrapper.event(FlowElementWrapper.java:227)
> at
> org.globus.cog.karajan.workflow.events.EventBus.send(EventBus.java:125)
> at
> org.globus.cog.karajan.workflow.events.EventBus.sendHooked(EventBus.java:99)
> at
> org.globus.cog.karajan.workflow.events.EventWorker.run(EventWorker.java:69)
>
> communicado$
>
More information about the Swift-devel
mailing list