#22 Property "baseDirectory" is not supported.

open
nobody
5
2014-08-17
2008-03-14
Tim Telcik
No

JRat release "shiftone-jrat-1-beta1". raises an exception when parsing property "baseDirectory" from the "jrat.xml" config file and injecting the property into the Configuration class.

Sample JRAT config:

<<<BEGIN JRAT CONFIG>>>
<jrat>
<settings>
<property name="baseDirectory"
value="my.jrat.output"/>
</settings>
</jrat>
<<<END JRAT CONFIG>>>

Sample exception trace, when tracing SwingSet2 demo:

<<<BEGIN TRACE>>>
C:\Java\jdk\jdk-1.6.0_02\demo\jfc\SwingSet2>java -javaagent:shiftone-jrat.jar -jar SwingSet2.jar
JRat:INFO (Mar/14 16:16:08,406) (main) Mode - set Mode[runtime]
JRat:INFO (Mar/14 16:16:08,406) (main) ResourceUtil - getPreferences resource : org/shiftone/jrat/version.properties
JRat:INFO (Mar/14 16:16:08,406) (main) Agent - Installing JRat 1-beta1 ClassFileTransformer...
JRat:INFO (Mar/14 16:16:08,406) (main) Mode - locking
JRat:INFO (Mar/14 16:16:08,406) (main) Environment - Using existing configuration file.
JRat:INFO (Mar/14 16:16:08,406) (main) Environment - Loading JRat Configuration : C:\Java\jdk\jdk-1.6.0_02\demo\jfc\SwingSet2\jrat.xml...
JRat:INFO (Mar/14 16:16:08,406) (main) Environment - File was last modified Fri Mar 14 15:46:23 WST 2008
JRat:INFO (Mar/14 16:16:08,421) (main) Configuration - exclude java.*
JRat:INFO (Mar/14 16:16:08,421) (main) Configuration - exclude javax.*
JRat:INFO (Mar/14 16:16:08,421) (main) ConfigurationParser - parsing configuration...
JRat:INFO (Mar/14 16:16:08,453) (main) PropertyUtil - org.shiftone.jrat.core.config.Settings.httpServerEnabled = true
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Source)
at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at org.shiftone.jrat.jvmti.Agent.premain(Agent.java:42)
... 6 more
Caused by: org.shiftone.jrat.core.JRatException: failed to parse configuration
at org.shiftone.jrat.core.config.ConfigurationParser.parse(ConfigurationParser.java:47)
at org.shiftone.jrat.core.config.ConfigurationParser.parse(ConfigurationParser.java:30)
at org.shiftone.jrat.core.Environment.<init>(Environment.java:32)
at org.shiftone.jrat.core.Environment.<clinit>(Environment.java:21)
... 7 more
Caused by: org.shiftone.jrat.core.JRatException: failed to set property baseDirectory to value my.jrat.output on class org.shiftone.jrat.core.config.Settings
at org.shiftone.jrat.util.PropertyUtil.setProperties(PropertyUtil.java:48)
at org.shiftone.jrat.core.config.ConfigurationParser.processSettings(ConfigurationParser.java:84)
at org.shiftone.jrat.core.config.ConfigurationParser.processJrat(ConfigurationParser.java:59)
at org.shiftone.jrat.core.config.ConfigurationParser.parse(ConfigurationParser.java:43)
... 10 more
Caused by: java.beans.IntrospectionException: Method not found: setBaseDirectory
at java.beans.PropertyDescriptor.<init>(Unknown Source)
at java.beans.PropertyDescriptor.<init>(Unknown Source)
at org.shiftone.jrat.util.PropertyUtil.setProperties(PropertyUtil.java:32)
... 13 more
Exception in thread "main"
FATAL ERROR in native method: processing of -javaagent failed
<<<END TRACE>>>

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks