[Swift-user] Re: Swift script throws exception in mapping

Michael Wilde wilde at mcs.anl.gov
Wed Aug 29 14:58:49 CDT 2007


Also: this was run on tg-viz-login1 from the directory ~wilde/angle/data 
  using awf1.swift and the swift dist in ~wilde/swift1730/vdsk-0.2-dev

- Mike

Michael Wilde wrote:
> The swift script:
> 
> type pcapfile;
> type angleout;
> type anglecenter;
> 
> (angleout ofile, anglecenter cfile) angle4 (pcapfile ifile)
> {
>   app { angle4 @ifile @ofile @cfile; }
> }
> 
> pcapfile pcapfiles[]<filesys_mapper; prefix="pc", suffix=".pcap">;
> 
> foreach pf in pcapfiles {
>   angleout of;
>   anglecenter cf;
>   (of,cf) = angle4(pf);
> }
> 
> 
> throws the error below using trunk, 1730, updated around noon today:
> 
> awf2.swift: source file is new. Recompiling.
> Using sites file: /home/wilde/swift1730/vdsk-0.2-dev/bin/../etc/sites.xml
> Using tc.data: /home/wilde/swift1730/vdsk-0.2-dev/bin/../etc/tc.data
> 
> Swift v0.2-dev
> 
> RunID: amf8l37tq0rh1
> java.lang.ClassCastException: org.griphyn.vdl.mapping.RootDataNode
> java.lang.ClassCastException: org.griphyn.vdl.mapping.RootDataNode
>         vdl:new @ awf2.kml, line: 47
> Caused by: java.lang.ClassCastException: 
> org.griphyn.vdl.mapping.RootDataNode
>         at 
> org.griphyn.vdl.mapping.RootArrayDataNode.init(RootArrayDataNode.java:22)
>         at org.griphyn.vdl.karajan.lib.New.function(New.java:88)
> ...
> 
> The source, data and out/log files are attached.
> 
> This code seemed to work circa 8/1 with 0.2 (or with a patch that Ben 
> made to 0.2 around that date).
> 
> I will continue to fiddle with it and try simpler code using 1730 but 
> I'd appreciate it Ben and/or Mihael if you could investigate.
> 
> Thanks,
> 
> - Mike



More information about the Swift-user mailing list