Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SAX problems with server VM with patchset 6

5 views
Skip to first unread message

Nick Johnson

unread,
Jul 29, 2007, 4:59:33 PM7/29/07
to
Having problems with SAX in Tigris on FreeBSD 6.2 using the server VM with
Tomcat 6.

If I specify JAVA_OPTS="-server" in catalina.sh, I get a lot of this
during server startup:

org.xml.sax.SAXParseException: Attribute "null" was already specified for element "null".

(Consequently Tomcat can't process the server.xml configuration file and
promptly dies.)

If I don't specify -server, it starts up fine with no parsing problems.

The -server option doesn't seem to give trouble with the Windows 1.5.0_12
VM, so I suspect this is a VM bug with Tigris.

As I built the JDK with GCC 4.2.1, and used 3.x in the past, I'm going to
try compiling with 3.x to see if that makes any difference. I'll post the
results after that is done.

Nick

--
"Courage isn't just a matter of not being frightened, you know. It's being
afraid and doing what you have to do anyway."
Doctor Who - Planet of the Daleks
This message has been brought to you by Nick Johnson 2.3b1 and the number 6.
http://healerNick.com/ http://morons.org/ http://spatula.net/
_______________________________________________
freebs...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java...@freebsd.org"

Nick Johnson

unread,
Jul 29, 2007, 6:54:56 PM7/29/07
to
Recompiling the JDK with gcc 3.4.6 made the problem go away.

I guess the moral of the story is if you see strange behaviour from one VM
or the other, and you've compiled with gcc 4.2, that might be the reason
why... and you may need a recompile with gcc 3.4.

Unfortunately I lack the technical knowledge of gcc and the jvm to even
begin to speculate as to why this particular problem appeared.

It could also just be some bizarre fluke of the way the compile went the
first time and any recompile may have similarly resolved the problem. I
am not, however, particularly inclined to burn another 2:11:14 compiling
again to test this hypothesis.

wsk

unread,
Aug 2, 2007, 12:21:00 PM8/2/07
to
Having problems with SAX in Tigris on FreeBSD 6.2 using the server VM with
> Tomcat 6.

> If I specify JAVA_OPTS="-server" in catalina.sh, I get a lot of this
> during server startup:
>
> org.xml.sax.SAXParseException: Attribute "null" was already specified for element "null".
>
> (Consequently Tomcat can't process the server.xml configuration file and
> promptly dies.)

I got similar problems with server VM by running jboss4 on CURRENT.
however if I launching jboss with -client VM or using java_g -server or
using diablo-jdk running java -server,
the problem go away.
is a server VM bug or gcc4.2 problem ?

%./run.sh
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /usr/home/wsk/try/jboss-4.2.0.GA

JAVA: java

JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000

CLASSPATH: /usr/home/wsk/try/jboss-4.2.0.GA/bin/run.jar

=========================================================================

13:42:34,048 INFO [Server] Starting JBoss (MX MicroKernel)...
13:42:34,050 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build:
SVNTag=JBoss_4_2_0_GA date=200705111440)
13:42:34,053 INFO [Server] Home Dir: /usr/home/wsk/try/jboss-4.2.0.GA
13:42:34,054 INFO [Server] Home URL: file:/usr/home/wsk/try/jboss-4.2.0.GA/
13:42:34,056 INFO [Server] Patch URL: null
13:42:34,056 INFO [Server] Server Name: default
13:42:34,057 INFO [Server] Server Home Dir:
/usr/home/wsk/try/jboss-4.2.0.GA/server/default
13:42:34,058 INFO [Server] Server Home URL:
file:/usr/home/wsk/try/jboss-4.2.0.GA/server/default/
13:42:34,058 INFO [Server] Server Log Dir:
/usr/home/wsk/try/jboss-4.2.0.GA/server/default/log
13:42:34,059 INFO [Server] Server Temp Dir:
/usr/home/wsk/try/jboss-4.2.0.GA/server/default/tmp
13:42:34,060 INFO [Server] Root Deployment Filename: jboss-service.xml
13:42:34,821 INFO [ServerInfo] Java version: 1.5.0_12-p6,Sun
Microsystems Inc.
13:42:34,821 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM
1.5.0_12-p6-wsk_30_jul_2007_14_54,Sun Microsystems Inc.
13:42:34,822 INFO [ServerInfo] OS-System: FreeBSD 7.0-CURRENT,i386
13:42:36,381 INFO [Server] Core system initialized
13:42:41,081 INFO [ServiceConfigurator] Problem configuring service
jboss.management.local:j2eeType=J2EEDomain,name=Manager
org.jboss.deployment.DeploymentException: Exception setting attribute
javax.management.Attribute@11e0c13 on mbean
jboss.management.local:j2eeType=J2EEDomain,name=Manager; - nested
throwable: (java.util.NoSuchElementException)
at
org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:698)
at
org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:332)
at
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:460)
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.util.NoSuchElementException
at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1029)
at java.util.TreeMap$EntryIterator.next(TreeMap.java:1052)
at java.util.TreeMap$EntryIterator.next(TreeMap.java:1050)
at java.util.TreeMap.buildFromSorted(TreeMap.java:1599)
at java.util.TreeMap.buildFromSorted(TreeMap.java:1591)
at java.util.TreeMap.buildFromSorted(TreeMap.java:1623)
at java.util.TreeMap.buildFromSorted(TreeMap.java:1548)
at java.util.TreeMap.putAll(TreeMap.java:320)
at
javax.management.modelmbean.DescriptorSupport.init(DescriptorSupport.java:467)
at
javax.management.modelmbean.DescriptorSupport.<init>(DescriptorSupport.java:210)
at
javax.management.modelmbean.DescriptorSupport.clone(DescriptorSupport.java:801)
at
javax.management.modelmbean.ModelMBeanAttributeInfo.getDescriptor(ModelMBeanAttributeInfo.java:348)
at
javax.management.modelmbean.ModelMBeanInfoSupport.getDescriptors(ModelMBeanInfoSupport.java:381)
at
org.jboss.mx.interceptor.PersistenceInterceptor.lazyInit(PersistenceInterceptor.java:129)
at
org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:73)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.setAttribute(AbstractMBeanInvoker.java:461)
at
org.jboss.mx.server.MBeanServerImpl.setAttribute(MBeanServerImpl.java:608)
at
org.jboss.system.ServiceConfigurator.setAttribute(ServiceConfigurator.java:694)
... 39 more
13:42:42,341 ERROR [MainDeployer] Could not create deployment:
file:/usr/home/wsk/try/jboss-4.2.0.GA/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: Error parsing the XML file,
from XMLMetaData: ; - nested throwable:
(org.jboss.mx.util.JBossNotCompliantMBeanException: Error parsing the
XML file, from XMLMetaData: )
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.mx.util.JBossNotCompliantMBeanException: Error
parsing the XML file, from XMLMetaData:
at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:292)
at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:253)
at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:282)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:212)
at
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 36 more
Caused by: org.jboss.dom4j.DocumentException: Error on line 108 of
document resource:xmdesc/Log4jService-xmbean.xml : The entity name must
immediately follow the '&' in the entity reference. Nested exception:
The entity name must immediately follow the '&' in the entity reference.
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:291)
at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:255)
... 48 more
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: Error parsing the XML file,
from XMLMetaData: ; - nested throwable:
(org.jboss.mx.util.JBossNotCompliantMBeanException: Error parsing the
XML file, from XMLMetaData: )
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.mx.util.JBossNotCompliantMBeanException: Error
parsing the XML file, from XMLMetaData:
at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:292)
at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:253)
at org.jboss.mx.modelmbean.XMBean.<init>(XMBean.java:282)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:212)
at
org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
at
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 36 more
Caused by: org.jboss.dom4j.DocumentException: Error on line 108 of
document resource:xmdesc/Log4jService-xmbean.xml : The entity name must
immediately follow the '&' in the entity reference. Nested exception:
The entity name must immediately follow the '&' in the entity reference.
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:291)
at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:255)
... 48 more
13:42:42,540 INFO [Server] Runtime shutdown hook called, forceHalt: true
13:42:42,541 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
13:42:42,561 INFO [Server] Shutdown complete
Shutdown complete
Halting VM

0 new messages