oodt-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattmann, Chris A (3980)" <chris.a.mattm...@jpl.nasa.gov>
Subject Re: (to Michael Starch) Problems Using Serializable Metadata after Loading Validation Layer
Date Mon, 31 Aug 2015 20:53:50 GMT
Hey Val,

I think putting the docs in etc/filemgr.properties (or in
src/main/resources/filemgr.properties in the source tree) is
where it should be documented.

Thanks mucho.

Cheers,
Chris

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Chief Architect
Instrument Software and Science Data Systems Section (398)
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 168-519, Mailstop: 168-527
Email: chris.a.mattmann@nasa.gov
WWW:  http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Associate Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++





-----Original Message-----
From: "Mallder, Valerie" <Valerie.Mallder@jhuapl.edu>
Reply-To: "dev@oodt.apache.org" <dev@oodt.apache.org>
Date: Monday, August 31, 2015 at 1:52 PM
To: "dev@oodt.apache.org" <dev@oodt.apache.org>
Subject: RE: (to Michael Starch) Problems Using Serializable Metadata
after Loading Validation Layer

>I can do it. But I want to wait until I get past my current problem just
>in case there are any other issues worth opening.  I will put this one on
>my list.  I assume you want want them set to exactly what I have shown
>below?  And is there a place I should document that FILEMGR_HOME is going
>to be a required variable?
>
>
>
>Valerie A. Mallder
>New Horizons Deputy Mission System Engineer
>Johns Hopkins University/Applied Physics Laboratory
>
>
>> -----Original Message-----
>> From: Chris Mattmann [mailto:chris.mattmann@gmail.com]
>> Sent: Monday, August 31, 2015 4:47 PM
>> To: dev@oodt.apache.org
>> Subject: Re: (to Michael Starch) Problems Using Serializable Metadata
>>after
>> Loading Validation Layer
>> 
>> Hmm, there is no reason that we shouldn’t simply just say FILEMGR_HOME
>>is a
>> required variable, and make the default configuration more sensible.
>> 
>> Val, Mike, anyone willing to open an issue for 0.11 for this?
>> 
>> —
>> Chris Mattmann
>> chris.mattmann@gmail.com
>> 
>> 
>> 
>> 
>> 
>> 
>> -----Original Message-----
>> From: "Mallder, Valerie" <Valerie.Mallder@jhuapl.edu>
>> Reply-To: <dev@oodt.apache.org>
>> Date: Monday, August 31, 2015 at 1:22 PM
>> To: "dev@oodt.apache.org" <dev@oodt.apache.org>
>> Subject: RE: (to Michael Starch) Problems Using Serializable Metadata
>>after
>> Loading Validation Layer
>> 
>> >Hi Michael,
>> >
>> >Could you explain your fix to this issue with more detail?  I am having
>> >the same problem. The default filemgr.properties file sets these two
>> >values to directories that do not exist (so I have to set them to
>> >'something' valid). Here are the default settings:
>> >
>> ># XML repository manager configuration
>> >org.apache.oodt.cas.filemgr.repositorymgr.dirs=file:///dir1,file:///dir
>> >2
>> >
>> ># XML validation layer configuration
>> >org.apache.oodt.cas.filemgr.validation.dirs=file:///dir1,file:///dir2
>> >
>> >
>> >And this is what I set them to:
>> >
>> ># XML repository manager configuration
>> >org.apache.oodt.cas.filemgr.repositorymgr.dirs=file://[FILEMGR_HOME]/po
>> >lic
>> >y/core
>> >
>> ># XML validation layer configuration
>> >org.apache.oodt.cas.filemgr.validation.dirs=file://[FILEMGR_HOME]/polic
>> >y/c
>> >ore
>> >
>> >And I still get the error.  Could you explain more about how I can work
>> >around this issue?
>> >
>> >Thanks,
>> >Valerie
>> >
>> >
>> >> -----Original Message-----
>> >> From: mdstarch@gmail.com [mailto:mdstarch@gmail.com] On Behalf Of
>> >>Michael  Starch
>> >> Sent: Friday, July 31, 2015 12:20 PM
>> >> To: dev@oodt.apache.org
>> >> Subject: Re: Problems Using Serializable Metadata after Loading
>> >>Validation Layer
>> >>
>> >> All,
>> >>
>> >> I found the issue.
>> >>
>> >> Using "System.setProperties()" and filling it from properties read
>> >>from  filemanager.properties clears out other properties setup by the
>> >>system which was  needed in the XML calls for SerializableMetadata. I
>> >>did the above call to setup  properties needed by the
>> >>XMLValidationLayer
>> >>
>> >> To fix set only the properties you need individually.  This adds to
>> >>the System  properties, not erasing them.
>> >>
>> >> System.setProperty("org.apache.oodt.cas.filemgr.repositorymgr.dirs",
>> >>...);
>> >>
>> >> System.setProperty("org.apache.oodt.cas.filemgr.validation.dirs",
>> >> ...);
>> >>
>> >> -Michael
>> >>
>> >>
>> >> On Thu, Jul 30, 2015 at 4:20 PM, Michael Starch <starchmd@umich.edu>
>> >>wrote:
>> >>
>> >> > Here is the stack trace, but this only happens after a completely
>> >> > unrelated peice of the process load the XML Validation Layer.
>> >> >
>> >> > -Michael
>> >> >
>> >> > java.lang.NullPointerException
>> >> >     at
>> >> >
>> 
>>>>com.sun.org.apache.xml.internal.serializer.ToStream.<init>(ToStream.jav
>>>>a:
>> >>143)
>> >> >     at
>> >> >
>> >>
>> >>com.sun.org.apache.xml.internal.serializer.ToXMLStream.<init>(ToXMLStr
>> >>eam
>> >>.java:
>> >> 67)
>> >> >     at
>> >> >
>> >>
>> >>com.sun.org.apache.xml.internal.serializer.ToUnknownStream.<init>(ToUn
>> >>kno
>> >>wnStr
>> >> eam.java:143)
>> >> >     at
>> >> >
>> >>
>> >>com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputH
>> >>and
>> >>lerFacto
>> >> ry.getSerializationHandler(TransletOutputHandlerFactory.java:160)
>> >> >     at
>> >> >
>> >>
>> >>com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutput
>> >>Han
>> >>dler(Tra
>> >> nsformerImpl.java:461)
>> >> >     at
>> >> >
>> >>
>> >>com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform
>> >>(Tr
>> >>ansforme
>> >> rImpl.java:344)
>> >> >     at
>> >> > org.apache.oodt.cas.metadata.SerializableMetadata.writeMetadataToXm
>> >> > lSt
>> >> > ream(SerializableMetadata.java:157)
>> >> >
>> >> >
>> >> > On Thu, Jul 30, 2015 at 4:16 PM, Chris Mattmann
>> >> > <chris.mattmann@gmail.com>
>> >> > wrote:
>> >> >
>> >> >> Mike can you give some specific line numbers? I can help look
>> >> >>
>> >> >> —
>> >> >> Chris Mattmann
>> >> >> chris.mattmann@gmail.com
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> -----Original Message-----
>> >> >> From: <mdstarch@gmail.com> on behalf of Michael Starch <
>> >> >> starchmd@umich.edu>
>> >> >> Reply-To: <dev@oodt.apache.org>
>> >> >> Date: Thursday, July 30, 2015 at 4:03 PM
>> >> >> To: <dev@oodt.apache.org>
>> >> >> Subject: Problems Using Serializable Metadata after Loading
>> >> >> Validation Layer
>> >> >>
>> >> >> >All,
>> >> >> >
>> >> >> >I am getting a NullPointerException deep in the XML library
if I
>> >> >> >try to use the SerializableMetadata's write to xml function
after
>> >> >> >I load in the XML Validation Layer from the filemanager. However,
>> >> >> >if I remove the call to load in the XML Validation Layer,
>> >> >> >everything works fine.  Any ideas as to what might cause this
>>issue?
>> >> >> >
>> >> >> >Thanks,
>> >> >> >
>> >> >> >Michael
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> 
>

Mime
View raw message