LISTSERV mailing list manager LISTSERV 16.5

Help for HPS-SOFTWARE Archives


HPS-SOFTWARE Archives

HPS-SOFTWARE Archives


HPS-SOFTWARE@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

HPS-SOFTWARE Home

HPS-SOFTWARE Home

HPS-SOFTWARE  September 2013

HPS-SOFTWARE September 2013

Subject:

Re: hps-java Error

From:

"Hansson Adrian, Per Ola" <[log in to unmask]>

Reply-To:

Software for the Heavy Photon Search Experiment <[log in to unmask]>

Date:

Thu, 5 Sep 2013 11:06:14 -0700

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (391 lines)

I thought java 1.7 is the recommended version.

On Sep 5, 2013, at 10:45 AM, Sho Uemura wrote:

> You should be able to use Java 1.6 now. (In theory you always could, but
> there was one stale package that was screwing that up.)
>
> Pushing this thread back to the list so it goes in the archives.
>
>
> On Thu, 5 Sep 2013, Kyle McCarty wrote:
>
>> This seems to work (at least until I get another version error, but I'll
>> have to get the server admin to fix that one). Thanks for your help! Once I
>> get an up-to-date Java version, I will attempt my analysis again and see if
>> I can get it going now.
>>
>>
>> On Thu, Sep 5, 2013 at 12:47 PM, Sho Uemura <[log in to unmask]> wrote:
>>
>>> Note: If you're running on background HPSTrackingDefaults.lcsim may not
>>> really do what you want; there's no trigger so many of your events won't
>>> have tracks. You really want to do readout and reconstruction separately if
>>> you're doing any sort of actual analysis. But it should run, which I think
>>> is all you care about at the moment.
>>>
>>>
>>> On Thu, 5 Sep 2013, Sho Uemura wrote:
>>>
>>> The process is simulation -> readout -> reconstruction -> analysis. SLIC
>>>> does the simulation, so you need to do readout and reconstruction.
>>>> HPSTrackingDefaults.lcsim (see bottom of the linked page) should do both.
>>>>
>>>> https://confluence.slac.**stanford.edu/display/hpsg/**
>>>> Running+Reconstruction<https://confluence.slac.stanford.edu/display/hpsg/Running+Reconstruction>
>>>>
>>>> On Thu, 5 Sep 2013, Kyle McCarty wrote:
>>>>
>>>> The input LCIO file is a file I generated from the data file
>>>>> "egs_0.0025x0_450na_100kb_1.**stdhep" which I believe is background
>>>>> data. I
>>>>> created it using
>>>>>
>>>>> ./slic -g
>>>>> /net/home/mccaky/hps/hps-**detectors/detectors/HPS-**
>>>>> Proposal2014-v4-6pt6/HPS-**Proposal2014-v4-6pt6.lcdd
>>>>> -i /net/taro/data/HPS/StdHep/6.**6GeV/beam/egs_0.0025x0_450na_**
>>>>> 100kb_1.stdhep
>>>>> -x -o hpsTest -r 10000
>>>>>
>>>>> Of course, this is just simulating the data, I suppose, and not
>>>>> reconstructing it, hence the error. What should I use to reconstruct the
>>>>> data for further analysis?
>>>>>
>>>>>
>>>>> On Thu, Sep 5, 2013 at 12:08 PM, Sho Uemura <[log in to unmask]>
>>>>> wrote:
>>>>>
>>>>> The third error - what's the input LCIO file? That steering file will
>>>>>> only
>>>>>> work with reconstruction output. The error is complaining that the
>>>>>> MatchedTracks (reconstructed tracks) collection doesn't exist.
>>>>>>
>>>>>>
>>>>>> On Thu, 5 Sep 2013, Sho Uemura wrote:
>>>>>>
>>>>>> The first error is my fault - the Confluence page example was missing
>>>>>> the
>>>>>>
>>>>>>> runNumber variable. Fixed.
>>>>>>>
>>>>>>> The second error refers to your Java version. If you get Java 1.7 you
>>>>>>> should be fine. In theory 1.6 is supposed to work but there are some
>>>>>>> packages that are stuck at the wrong version.
>>>>>>>
>>>>>>> On Thu, 5 Sep 2013, Kyle McCarty wrote:
>>>>>>>
>>>>>>> Thanks for the quick reply. The "-r" was indeed the reason for the
>>>>>>> error
>>>>>>>
>>>>>>>> I
>>>>>>>> was getting. I was trying to link to external files. I have attempted
>>>>>>>> to
>>>>>>>> run the commands now without the "-r" and no longer get the
>>>>>>>> MalformedURLException, but I now get different errors. Using the
>>>>>>>> sample
>>>>>>>> commands page (
>>>>>>>> https://confluence.slac.**stan**ford.edu/display/hpsg/**<http://stanford.edu/display/hpsg/**>
>>>>>>>> Running+Readout+Simulation<htt**ps://confluence.slac.stanford.**
>>>>>>>> edu/display/hpsg/Running+**Readout+Simulation<https://confluence.slac.stanford.edu/display/hpsg/Running+Readout+Simulation>
>>>>>>>>>
>>>>>>>> )
>>>>>>>> again to avoid any mistakes in my steering files, I ran:
>>>>>>>>
>>>>>>>> java -jar
>>>>>>>> /net/home/mccaky/hps/hps-java/****target/hps-java-1.7-**
>>>>>>>> SNAPSHOT-**bin.jar
>>>>>>>> /net/home/mccaky/hps/hps-java/****target/classes/org/lcsim/**hps/**
>>>>>>>> steering/readout/****TestRunReadoutToLcio.lcsim
>>>>>>>> -i filtered.slcio -DoutputFile=readout
>>>>>>>>
>>>>>>>> which gave the error
>>>>>>>>
>>>>>>>> Exception in thread "main" java.lang.RuntimeException: Variable not
>>>>>>>> defined: runNumber
>>>>>>>>       at
>>>>>>>> org.lcsim.job.****JobControlManager.****substituteVariables(**
>>>>>>>> JobControlManager.java:609)
>>>>>>>>       at
>>>>>>>> org.lcsim.job.****JobControlManager.****substituteVariables(**
>>>>>>>> JobControlManager.java:622)
>>>>>>>>       at
>>>>>>>> org.lcsim.job.****JobControlManager.****substituteVariables(**
>>>>>>>> JobControlManager.java:622)
>>>>>>>>       at
>>>>>>>> org.lcsim.job.****JobControlManager.****substituteVariables(**
>>>>>>>> JobControlManager.java:622)
>>>>>>>>       at
>>>>>>>> org.lcsim.job.****JobControlManager.****substituteVariables(**
>>>>>>>> JobControlManager.java:568)
>>>>>>>>       at org.lcsim.job.****JobControlManager.setup(**
>>>>>>>> JobControlManager.java:514)
>>>>>>>>       at org.lcsim.job.****JobControlManager.setup(**
>>>>>>>> JobControlManager.java:492)
>>>>>>>>       at org.lcsim.job.****JobControlManager.setup(**
>>>>>>>> JobControlManager.java:450)
>>>>>>>>       at
>>>>>>>> org.lcsim.job.****JobControlManager.****parseCommandLineOptions(**
>>>>>>>> JobControlManager.java:322)
>>>>>>>>       at org.lcsim.job.****JobControlManager.main(**
>>>>>>>> JobControlManager.java:168)
>>>>>>>>
>>>>>>>> and
>>>>>>>>
>>>>>>>> java -jar
>>>>>>>> /net/home/mccaky/hps/hps-java/****target/hps-java-1.7-**
>>>>>>>> SNAPSHOT-**bin.jar
>>>>>>>> /net/home/mccaky/hps/hps-java/****target/classes/org/lcsim/**hps/**
>>>>>>>> steering/readout/****HPS2014ReadoutToLcio.lcsim
>>>>>>>> -i hpsTest.slcio -DoutputFile=readout
>>>>>>>>
>>>>>>>> which gives the error
>>>>>>>>
>>>>>>>> java.lang.****UnsupportedClassVersionError: org/jlab/coda/jevio/****
>>>>>>>> EvioException
>>>>>>>> :
>>>>>>>> Unsupported major.minor version 51.0
>>>>>>>>       at java.lang.ClassLoader.****defineClass1(Native Method)
>>>>>>>>       at java.lang.ClassLoader.****defineClass(ClassLoader.java:***
>>>>>>>> *634)
>>>>>>>>       at
>>>>>>>> java.security.****SecureClassLoader.defineClass(****
>>>>>>>> SecureClassLoader.java:142)
>>>>>>>>       at java.net.URLClassLoader.****defineClass(URLClassLoader.**
>>>>>>>> java:277)
>>>>>>>>       at java.net.URLClassLoader.****access$000(URLClassLoader.****
>>>>>>>> java:73)
>>>>>>>>       at java.net.URLClassLoader$1.run(****URLClassLoader.java:212)
>>>>>>>>       at java.security.****AccessController.doPrivileged(****Native
>>>>>>>> Method)
>>>>>>>>       at java.net.URLClassLoader.****findClass(URLClassLoader.java:*
>>>>>>>> ***205)
>>>>>>>>       at java.lang.ClassLoader.****loadClass(ClassLoader.java:****
>>>>>>>> 321)
>>>>>>>>       at sun.misc.Launcher$****AppClassLoader.loadClass(**
>>>>>>>> Launcher.java:294)
>>>>>>>>       at java.lang.ClassLoader.****loadClass(ClassLoader.java:****
>>>>>>>> 266)
>>>>>>>>       at
>>>>>>>> org.lcsim.hps.evio.****TestRunTriggeredReconToLcio.****startOfData(**
>>>>>>>> TestRunTriggeredReconToLcio.****java:82)
>>>>>>>>       at org.lcsim.util.Driver.****startOfData(Driver.java:172)
>>>>>>>>       at org.lcsim.util.DriverAdapter.***
>>>>>>>> *start(DriverAdapter.java:92)
>>>>>>>>       at
>>>>>>>> org.freehep.record.loop.****AbstractLoopListener.process(****
>>>>>>>> AbstractLoopListener.java:22)
>>>>>>>>       at
>>>>>>>> org.freehep.record.loop.****DefaultRecordLoop.****fireLoopEvents(**
>>>>>>>> DefaultRecordLoop.java:125)
>>>>>>>>       at
>>>>>>>> org.freehep.record.loop.****DefaultRecordLoop.execute(**
>>>>>>>> DefaultRecordLoop.java:561)
>>>>>>>>       at org.lcsim.util.loop.LCSimLoop.****loop(LCSimLoop.java:153)
>>>>>>>>       at org.lcsim.job.****JobControlManager.run(**
>>>>>>>> JobControlManager.java:393)
>>>>>>>>       at org.lcsim.job.****JobControlManager.main(**
>>>>>>>> JobControlManager.java:169)
>>>>>>>>
>>>>>>>> Finally, I also tried the command
>>>>>>>>
>>>>>>>> java -jar
>>>>>>>> /net/home/mccaky/hps/hps-java/****target/hps-java-1.7-**
>>>>>>>> SNAPSHOT-**bin.jar
>>>>>>>> /net/home/mccaky/hps/hps-java/****target/classes/org/lcsim/**hps/**
>>>>>>>> steering/analysis/****StarterAnalysis.lcsim
>>>>>>>> -i hpsTest.slcio -DoutputFile=readout
>>>>>>>>
>>>>>>>> which starts to run, unlike the others which crash immediately, but it
>>>>>>>> crashes as soon as Event 0 is printed with the error
>>>>>>>>
>>>>>>>> java.lang.****IllegalArgumentException: Unknown event component
>>>>>>>> MatchedTracks
>>>>>>>>       at hep.physics.event.BaseEvent.****get(BaseEvent.java:48)
>>>>>>>>       at org.lcsim.event.base.****BaseLCSimEvent.get(**
>>>>>>>> BaseLCSimEvent.java:105)
>>>>>>>>       at
>>>>>>>> org.lcsim.hps.examples.****StarterAnalysisDriver.****processTracks(**
>>>>>>>> StarterAnalysisDriver.java:87)
>>>>>>>>       at
>>>>>>>> org.lcsim.hps.examples.****StarterAnalysisDriver.process(****
>>>>>>>> StarterAnalysisDriver.java:45)
>>>>>>>>       at org.lcsim.util.Driver.****doProcess(Driver.java:273)
>>>>>>>>       at org.lcsim.util.Driver.****processChildren(Driver.java:****
>>>>>>>> 284)
>>>>>>>>       at org.lcsim.util.Driver.process(****Driver.java:198)
>>>>>>>>       at
>>>>>>>> org.lcsim.util.DriverAdapter.****recordSupplied(DriverAdapter.**
>>>>>>>> **java:74)
>>>>>>>>       at
>>>>>>>> org.freehep.record.loop.****DefaultRecordLoop.****consumeRecord(**
>>>>>>>> DefaultRecordLoop.java:832)
>>>>>>>>       at
>>>>>>>> org.freehep.record.loop.****DefaultRecordLoop.loop(**
>>>>>>>> DefaultRecordLoop.java:668)
>>>>>>>>       at
>>>>>>>> org.freehep.record.loop.****DefaultRecordLoop.execute(**
>>>>>>>> DefaultRecordLoop.java:566)
>>>>>>>>       at org.lcsim.util.loop.LCSimLoop.****loop(LCSimLoop.java:153)
>>>>>>>>       at org.lcsim.job.****JobControlManager.run(**
>>>>>>>> JobControlManager.java:393)
>>>>>>>>       at org.lcsim.job.****JobControlManager.main(**
>>>>>>>> JobControlManager.java:169)
>>>>>>>>
>>>>>>>> I assume that I am still doing something incorrectly, but now the
>>>>>>>> errors
>>>>>>>> seem to be all different. Any ideas?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Kyle
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Sep 5, 2013 at 11:47 AM, Sho Uemura <[log in to unmask]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> This error means hps-java can't find your steering file.
>>>>>>>>
>>>>>>>>>
>>>>>>>>> If you use the -r option, the steering file path is a Java resource
>>>>>>>>> path -
>>>>>>>>> it refers to a file you compiled into the jar. But if you're
>>>>>>>>> modifying
>>>>>>>>> steering files, it's better to not use "-r" so you don't have to
>>>>>>>>> rebuild
>>>>>>>>> every time you change your steering file - I think that's what you
>>>>>>>>> wanted
>>>>>>>>> here.
>>>>>>>>>
>>>>>>>>> So use the same command, but drop the "-r".
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Thu, 5 Sep 2013, Kyle McCarty wrote:
>>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> I am trying to run hps-java and am getting some errors.
>>>>>>>>>> Specifically,
>>>>>>>>>> I am
>>>>>>>>>> receiving a "java.net.******MalformedURLException" error when I
>>>>>>>>>> try to
>>>>>>>>>> run a
>>>>>>>>>> steering file through the software. As an example, I tried running
>>>>>>>>>> the
>>>>>>>>>> sample commands on the website to make sure that it wasn't something
>>>>>>>>>> weird
>>>>>>>>>> in my steering file. I ran the command
>>>>>>>>>>
>>>>>>>>>> java -jar
>>>>>>>>>> /net/home/mccaky/hps/hps-java/******target/hps-java-1.7-****
>>>>>>>>>> SNAPSHOT-**bin.jar
>>>>>>>>>> -r
>>>>>>>>>> /net/home/mccaky/hps/hps-java/******target/classes/org/lcsim/***
>>>>>>>>>> *hps/**
>>>>>>>>>> steering/readout/******TestRunReadoutToLcio.lcsim
>>>>>>>>>> -i filtered.slcio -DoutputFile=readout
>>>>>>>>>>
>>>>>>>>>> This crashed giving the error message
>>>>>>>>>>
>>>>>>>>>> Exception in thread "main" java.lang.RuntimeException:
>>>>>>>>>> java.net.MalformedURLException
>>>>>>>>>>       at org.lcsim.job.******JobControlManager.setup(**
>>>>>>>>>> JobControlManager.java:488)
>>>>>>>>>>       at org.lcsim.job.******JobControlManager.setup(**
>>>>>>>>>> JobControlManager.java:461)
>>>>>>>>>>       at
>>>>>>>>>> org.lcsim.job.******JobControlManager.******
>>>>>>>>>> parseCommandLineOptions(**
>>>>>>>>>> JobControlManager.java:315)
>>>>>>>>>>       at org.lcsim.job.******JobControlManager.main(**
>>>>>>>>>> JobControlManager.java:168)
>>>>>>>>>> Caused by: java.net.MalformedURLException
>>>>>>>>>>       at java.net.URL.<init>(URL.java:******617)
>>>>>>>>>>       at java.net.URL.<init>(URL.java:******480)
>>>>>>>>>>       at java.net.URL.<init>(URL.java:******429)
>>>>>>>>>>       at
>>>>>>>>>> org.apache.xerces.impl.******XMLEntityManager.****
>>>>>>>>>> setupCurrentEntity(Unknown
>>>>>>>>>> Source)
>>>>>>>>>>       at
>>>>>>>>>> org.apache.xerces.impl.******XMLVersionDetector.****
>>>>>>>>>> determineDocVersion(Unknown
>>>>>>>>>> Source)
>>>>>>>>>>       at org.apache.xerces.parsers.******
>>>>>>>>>> XML11Configuration.parse(****
>>>>>>>>>> Unknown
>>>>>>>>>> Source)
>>>>>>>>>>       at org.apache.xerces.parsers.******
>>>>>>>>>> XML11Configuration.parse(****
>>>>>>>>>> Unknown
>>>>>>>>>> Source)
>>>>>>>>>>       at org.apache.xerces.parsers.******XMLParser.parse(Unknown
>>>>>>>>>> Source)
>>>>>>>>>>       at org.apache.xerces.parsers.******
>>>>>>>>>> AbstractSAXParser.parse(****
>>>>>>>>>> Unknown
>>>>>>>>>> Source)
>>>>>>>>>>       at org.apache.xerces.jaxp.******
>>>>>>>>>> SAXParserImpl$JAXPSAXParser.**
>>>>>>>>>> parse(Unknown
>>>>>>>>>> Source)
>>>>>>>>>>       at org.jdom.input.SAXBuilder.******
>>>>>>>>>> build(SAXBuilder.java:453)
>>>>>>>>>>       at org.jdom.input.SAXBuilder.******
>>>>>>>>>> build(SAXBuilder.java:770)
>>>>>>>>>>       at org.lcsim.job.******JobControlManager.setup(**
>>>>>>>>>> JobControlManager.java:486)
>>>>>>>>>>       ... 3 more
>>>>>>>>>> Caused by: java.lang.NullPointerException
>>>>>>>>>>       at java.net.URL.<init>(URL.java:******522)
>>>>>>>>>>       ... 15 more
>>>>>>>>>>
>>>>>>>>>> Note that "filtered.slcio" is in the directory which I ran the
>>>>>>>>>> command
>>>>>>>>>> from, and the preceding command
>>>>>>>>>>
>>>>>>>>>> java -cp /net/home/mccaky/hps/hps-java/******target/hps-java-1.7-**
>>>>>>>>>> SNAPSHOT-**
>>>>>>>>>> bin.jar
>>>>>>>>>> org.lcsim.hps.users.meeg.******FilterMCBunches hpsTest.slcio
>>>>>>>>>> filtered.slcio
>>>>>>>>>> -e250
>>>>>>>>>>
>>>>>>>>>> works perfectly. My version of the software was compiled last week,
>>>>>>>>>> so
>>>>>>>>>> it
>>>>>>>>>> should be very up-to-date.
>>>>>>>>>>
>>>>>>>>>> Since I got this same message any time I tried to put a steering
>>>>>>>>>> file
>>>>>>>>>> in,
>>>>>>>>>> I
>>>>>>>>>> assume that I am just doing something dumb and giving hps-java bad
>>>>>>>>>> information. Can you point me to where my mistake is?
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>
>>>>>>>>>> Kyle McCarty
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>
>>>>
>>
>
> ########################################################################
> Use REPLY-ALL to reply to list
>
> To unsubscribe from the HPS-SOFTWARE list, click the following link:
> https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
June 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use