Help with Errors

Viewpoint
Teradata Employee

Re: Help with Errors

That is not the same error, it tried to deploy, but there was an error with the portlet. There is probably an error in the code that prevented the portlet from deploying successfully. You will need to take a look at the stack track (look for the ERROR line with a Java stack trace) to determine why it failed to deploy.
Enthusiast

Re: Help with Errors

How do you do a stack track?
Teradata Employee

Re: Help with Errors

You posted part of a stack trace on the other page; it's the message the explains the reason for the error with a track through the source code stack. Please post the whole trace.

http://java.sun.com/developer/technicalArticles/Programming/Stacktrace/
Enthusiast

Re: Help with Errors

Ok, I hit ctrl-break on the window and these are the results.


"com.liferay.portal.kernel.deploy.AutoDeployScanner" daemon prio=2 tid=0x0386e5f
8 nid=0xe6c waiting on condition [0x041ff000..0x041ffae8]
at java.lang.Thread.sleep(Native Method)
at com.liferay.portal.kernel.deploy.AutoDeployScanner.run(AutoDeployScan
ner.java:55)

"DefaultQuartzScheduler_QuartzSchedulerThread" prio=6 tid=0x03876308 nid=0x1464
waiting on condition [0x041bf000..0x041bfb68]
at java.lang.Thread.sleep(Native Method)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
394)

"DefaultQuartzScheduler_Worker-9" daemon prio=6 tid=0x038703e0 nid=0xf08 in Obje
ct.wait() [0x0417f000..0x0417fc68]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-8" daemon prio=6 tid=0x03879928 nid=0x1110 in Obj
ect.wait() [0x0413f000..0x0413fbe8]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-7" daemon prio=6 tid=0x03878c90 nid=0x1254 in Obj
ect.wait() [0x040ff000..0x040ffce8]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-6" daemon prio=6 tid=0x03878138 nid=0x1070 in Obj
ect.wait() [0x040bf000..0x040bfd68]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-5" daemon prio=6 tid=0x03775428 nid=0x14a0 in Obj
ect.wait() [0x0407f000..0x0407fa68]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-4" daemon prio=6 tid=0x03774aa0 nid=0x1498 in Obj
ect.wait() [0x0403f000..0x0403f9e8]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-3" daemon prio=6 tid=0x03828910 nid=0xa00 in Obje
ct.wait() [0x03fff000..0x03fffae8]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-2" daemon prio=6 tid=0x03828788 nid=0x10d4 in Obj
ect.wait() [0x03fbf000..0x03fbfb68]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-1" daemon prio=6 tid=0x03325ed0 nid=0x16ec in Obj
ect.wait() [0x03e2f000..0x03e2fbe8]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"DefaultQuartzScheduler_Worker-0" daemon prio=6 tid=0x0352ef90 nid=0x1338 in Obj
ect.wait() [0x03daf000..0x03dafc68]
at java.lang.Object.wait(Native Method)
at org.quartz.simpl.SimpleThreadPool.getNextRunnable(SimpleThreadPool.ja
va:428)
- locked (a java.lang.Object)
at org.quartz.simpl.SimpleThreadPool.access$000(SimpleThreadPool.java:47
)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:518)

"com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" daemon prio=6
tid=0x03645d98 nid=0x179c in Object.wait() [0x03f7f000..0x03f7f9e8]
at java.lang.Object.wait(Native Method)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(Thre
adPoolAsynchronousRunner.java:534)
- locked (a com.mchange.v2.async.ThreadPoolAsynchronousRunn
er)

"com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" daemon prio=6
tid=0x03645810 nid=0xb54 in Object.wait() [0x03f3f000..0x03f3fce8]
at java.lang.Object.wait(Native Method)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(Thre
adPoolAsynchronousRunner.java:534)
- locked (a com.mchange.v2.async.ThreadPoolAsynchronousRunn
er)

"com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" daemon prio=6
tid=0x03647900 nid=0x10ec in Object.wait() [0x03eff000..0x03effa68]
at java.lang.Object.wait(Native Method)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(Thre
adPoolAsynchronousRunner.java:534)
- locked (a com.mchange.v2.async.ThreadPoolAsynchronousRunn
er)

"Timer-1" daemon prio=6 tid=0x035a2620 nid=0x106c in Object.wait() [0x03ebf000..
0x03ebfd68]
at java.lang.Object.wait(Native Method)
- waiting on (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Unknown Source)
- locked (a java.util.TaskQueue)
at java.util.TimerThread.run(Unknown Source)

"ActiveMQ Session Task" prio=8 tid=0x0352e9c0 nid=0x11b8 waiting on condition [0
x03e6f000..0x03e6fb68]
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.park(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInt
errupt(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireInterr
uptibly(Unknown Source)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterrup
tibly(Unknown Source)
at java.util.concurrent.SynchronousQueue$Node.waitForPut(Unknown Source)

at java.util.concurrent.SynchronousQueue.take(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

"org.springframework.jms.listener.DefaultMessageListenerContainer#1-1" prio=6 ti
d=0x03541920 nid=0xf88 in Object.wait() [0x03def000..0x03defbe8]
at java.lang.Object.wait(Native Method)
at org.apache.activemq.MessageDispatchChannel.dequeue(MessageDispatchCha
nnel.java:77)
- locked (a java.lang.Object)
at org.apache.activemq.ActiveMQMessageConsumer.dequeue(ActiveMQMessageCo
nsumer.java:404)
at org.apache.activemq.ActiveMQMessageConsumer.receive(ActiveMQMessageCo
nsumer.java:516)
at org.springframework.jms.listener.DefaultMessageListenerContainer.rece
iveMessage(DefaultMessageListenerContainer.java:578)
at org.springframework.jms.listener.DefaultMessageListenerContainer.doRe
ceiveAndExecute(DefaultMessageListenerContainer.java:523)
at org.springframework.jms.listener.DefaultMessageListenerContainer.rece
iveAndExecute(DefaultMessageListenerContainer.java:478)
at org.springframework.jms.listener.DefaultMessageListenerContainer$Asyn
cMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:889)

at org.springframework.jms.listener.DefaultMessageListenerContainer$Asyn
cMessageListenerInvoker.run(DefaultMessageListenerContainer.java:842)
at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThro
ttlingRunnable.run(SimpleAsyncTaskExecutor.java:203)
at java.lang.Thread.run(Unknown Source)

"org.springframework.jms.listener.DefaultMessageListenerContainer-1" prio=6 tid=
0x034a6f20 nid=0xa20 in Object.wait() [0x03d2f000..0x03d2fc68]
at java.lang.Object.wait(Native Method)
at org.apache.activemq.MessageDispatchChannel.dequeue(MessageDispatchCha
nnel.java:77)
- locked (a java.lang.Object)
at org.apache.activemq.ActiveMQMessageConsumer.dequeue(ActiveMQMessageCo
nsumer.java:404)
at org.apache.activemq.ActiveMQMessageConsumer.receive(ActiveMQMessageCo
nsumer.java:516)
at org.springframework.jms.listener.DefaultMessageListenerContainer.rece
iveMessage(DefaultMessageListenerContainer.java:578)
at org.springframework.jms.listener.DefaultMessageListenerContainer.doRe
ceiveAndExecute(DefaultMessageListenerContainer.java:523)
at org.springframework.jms.listener.DefaultMessageListenerContainer.rece
iveAndExecute(DefaultMessageListenerContainer.java:478)
at org.springframework.jms.listener.DefaultMessageListenerContainer$Asyn
cMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:889)

at org.springframework.jms.listener.DefaultMessageListenerContainer$Asyn
cMessageListenerInvoker.run(DefaultMessageListenerContainer.java:842)
at org.springframework.core.task.SimpleAsyncTaskExecutor$ConcurrencyThro
ttlingRunnable.run(SimpleAsyncTaskExecutor.java:203)
at java.lang.Thread.run(Unknown Source)

"com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2" daemon prio=6
tid=0x034a4c50 nid=0x145c in Object.wait() [0x03cef000..0x03cefa68]
at java.lang.Object.wait(Native Method)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(Thre
adPoolAsynchronousRunner.java:534)
- locked (a com.mchange.v2.async.ThreadPoolAsynchronousRunn
er)

"com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1" daemon prio=6
tid=0x034a93f0 nid=0x1460 in Object.wait() [0x03caf000..0x03cafae8]
at java.lang.Object.wait(Native Method)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(Thre
adPoolAsynchronousRunner.java:534)
- locked (a com.mchange.v2.async.ThreadPoolAsynchronousRunn
er)

"com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0" daemon prio=6
tid=0x034aeaa0 nid=0x1050 in Object.wait() [0x03c6f000..0x03c6fb68]
at java.lang.Object.wait(Native Method)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(Thre
adPoolAsynchronousRunner.java:534)
- locked (a com.mchange.v2.async.ThreadPoolAsynchronousRunn
er)

"Timer-0" daemon prio=6 tid=0x034ae8b8 nid=0x750 in Object.wait() [0x03c2f000..0
x03c2fbe8]
at java.lang.Object.wait(Native Method)
- waiting on (a java.util.TaskQueue)
at java.util.TimerThread.mainLoop(Unknown Source)
- locked (a java.util.TaskQueue)
at java.util.TimerThread.run(Unknown Source)

"Low Memory Detector" daemon prio=6 tid=0x0096f198 nid=0x864 runnable [0x0000000
0..0x00000000]

"CompilerThread0" daemon prio=10 tid=0x0096de08 nid=0xf60 waiting on condition [
0x00000000..0x02cbfa48]

"Signal Dispatcher" daemon prio=10 tid=0x0096d170 nid=0x16c8 waiting on conditio
n [0x00000000..0x00000000]

"Finalizer" daemon prio=8 tid=0x00963990 nid=0xe14 in Object.wait() [0x02c3f000.
.0x02c3fa68]
at java.lang.Object.wait(Native Method)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
- locked (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(Unknown Source)
at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

"Reference Handler" daemon prio=10 tid=0x00962d68 nid=0xe50 in Object.wait() [0x
02bff000..0x02bffae8]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Unknown Source)
at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
- locked (a java.lang.ref.Reference$Lock)

"main" prio=6 tid=0x00038da8 nid=0xc18 runnable [0x0007f000..0x0007fc3c]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(Unknown Source)
- locked (a java.net.SocksSocketImpl)
at java.net.ServerSocket.implAccept(Unknown Source)
at java.net.ServerSocket.accept(Unknown Source)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:379
)
at org.apache.catalina.startup.Catalina.await(Catalina.java:616)
at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

"VM Thread" prio=10 tid=0x0003fb10 nid=0x11dc runnable

"VM Periodic Task Thread" prio=10 tid=0x00970498 nid=0x15f8 waiting on condition

Enthusiast

Re: Help with Errors

Could I get help with these errors? These are shown during a stack trace.


ERROR 16 Jun 2009 09:58:29,538 [ContainerBackgroundProcessor[StandardEngine[Cata
lina]]] [org.springframework.web.context.ContextLoader.initWebApplicationContext
(203)] Context initialization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 39 i
n XML document from ServletContext resource [/WEB-INF/applicationContext.xml] is
invalid; nested exception is org.xml.sax.SAXParseException: Attribute value "te
stProjectManager" of type ID must be unique within the document.
Caused by:
org.xml.sax.SAXParseException: Attribute value "testProjectManager" of type ID m
ust be unique within the document.

ERROR 16 Jun 2009 09:58:29,554 [ContainerBackgroundProcessor[StandardEngine[Cata
lina]]] [org.apache.catalina.core.StandardContext.listenerStart(3768)] Exception
sending context initialized event to listener instance of class org.springframe
work.web.context.ContextLoaderListener
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 39 i
n XML document from ServletContext resource [/WEB-INF/applicationContext.xml] is
invalid; nested exception is org.xml.sax.SAXParseException: Attribute value "te
stProjectManager" of type ID must be unique within the document.
Caused by:
org.xml.sax.SAXParseException: Attribute value "testProjectManager" of type ID m
ust be unique within the document.

ERROR 16 Jun 2009 09:58:29,554 [ContainerBackgroundProcessor[StandardEngine[Cata
lina]]] [org.apache.catalina.core.StandardContext.listenerStart(3768)] Exception
sending context initialized event to listener instance of class com.teradata.vi
ewpoint.security.config.ConfigLoaderContextListener
java.lang.ClassCastException: org.springframework.beans.factory.xml.XmlBeanDefin
itionStoreException

ERROR 16 Jun 2009 09:58:29,554 [ContainerBackgroundProcessor[StandardEngine[Cata
lina]]] [org.apache.catalina.core.StandardContext.start(4217)] Error listenerSta
rt
ERROR 16 Jun 2009 09:58:29,569 [ContainerBackgroundProcessor[StandardEngine[Cata
lina]]] [org.apache.catalina.core.StandardContext.start(4244)] Context [/TestPro
jectPortlet] startup failed due to previous errors

Teradata Employee

Re: Help with Errors

Is this what Tomcat is displaying when you start up, having already removed your portlet?
Enthusiast

Re: Help with Errors

Yes
Enthusiast

Re: Help with Errors

Actually, I fixed this problem. I should have edited that a while ago. Sorry.