[Design of JBossXB] - Problem with Collection<Enum>
by scott.stark@jboss.org
The org.jboss.test.metadata.web.WebApp5EverythingUnitTestCase test is failing with:
| org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/home/svn/JBossAS/projects/metadata/trunk/target/eclipse-classes/org/jboss/test/metadata/web/WebApp5Everything_testEverything.xml@53,21
| ...
| Caused by: java.lang.RuntimeException: Invalid value java.util.ArrayList@1531164 for {http://java.sun.com/xml/ns/javaee}dispatcherType valid are [REQUEST, ERROR, FORWARD, INCLUDE]
| at org.jboss.xb.builder.runtime.EnumValueAdapter.cast(EnumValueAdapter.java:111)
| at org.jboss.xb.builder.runtime.BeanHandler.setParent(BeanHandler.java:190)
| at org.jboss.xb.builder.runtime.BuilderParticleHandler.setParent(BuilderParticleHandler.java:69)
| at org.jboss.xb.binding.group.ValueListHandler$FACTORY$1.newInstance(ValueListHandler.java:401)
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endRepeatableParticle(SundayContentHandler.java:850)
| at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endElement(SundayContentHandler.java:221)
|
The property in question is the FilterMappingMetaData.dispatchers property, which is a list of enum types:
| package org.jboss.metadata.web.spec;
|
|
| public class FilterMappingMetaData extends IdMetaDataImpl
|
| @XmlElement(name="dispatcher")
| public void setDispatchers(List<DispatcherType> dispatchers)
| {
| this.dispatchers = dispatchers;
| }
|
The input is an array of strings for valid enum values. Is the EnumValueAdapter supposed to handle collections or is this supposed to be handled by the binding layer?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095750#4095750
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095750
18 years, 5 months
[Design of JBoss Profiler] - Re: Need Help on Mac OS X
by damianharvey
Hi,
I'm trying to get the JVMPI profiler running on a Mac with Java 1.5.0, however when I try to test the installation of the native library I get the following error:
| damian-harveys-computer:~ damianharvey$ java -XrunjbossInspector:/tmp Foo
| Error occurred during initialization of VM
| Could not find agent library: libjbossInspector.jnilib (searched /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries:/System/Library/Java/Extensions:/Library/Java/Extensions:.)
| Trace/BPT trap
|
But as you can see it is present (and I even chmod'd it to 777 and 755 to be sure):
| damian-harveys-computer:~ damianharvey$ ls -la /System/Library/Java/Extensions/libjboss*
| -rwxrwxrwx 1 root wheel 294328 Oct 16 17:06 /System/Library/Java/Extensions/libjbossInspector.jnilib
|
I'm running Mac OS X 10.4.9 on an Intel Macbook (if that helps).
I've seen some relevant posts that indicate that it might be caused by using the wrong library (eg. the 32 bit in place of the 64bit - http://www.jroller.com/nbprofiler/category/Tips%20&%20Tricks) but there is only the one library for mac.
Very keen to get this running for an app that is nearing production go live. I am specifically looking to identify any methods in my app that are taking too long to execute. Is JVMPI the right tool or am I better off with JVMTI?
Thanks,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095721#4095721
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095721
18 years, 5 months