NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Scrollbar
iconsfalse

Question: I deployed caArray in Eclipse but got an exception when I tested caArray. Why?

Topic: caArray Installation and Upgrade

Release: Up to caArray 2.x

Date entered: 04/14/2010

Details about the Question

I deployed caArray in Eclipse and tried to test the program. When I clicked on the "Manage array design", I got exceptions. The first part of the exceptions was like these:

Code Block
Wiki Markup
{scrollbar:icons=false}

h1. Question: I deployed caArray in Eclipse but got an exception when I tested caArray. Why?

*Topic*: caArray Installation and Upgrade

*Release*: Up to caArray 2.x

*Date entered*: 04/14/2010

h2. Details about the Question

I deployed caArray in Eclipse and tried to test the program. When I clicked on the "Manage array design", I got exceptions. The first part of the exceptions was like these:

{code}
java.lang.IllegalArgumentException: Category is null
 at gov.nih.nci.caarray.business.vocabulary.VocabularyServiceBean.getTerms(VocabularyServiceBean.java:134)
 at gov.nih.nci.caarray.business.vocabulary.VocabularyServiceBean.getTerms(VocabularyServiceBean.java:126)
 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
 at gov.nih.nci.caarray.application.ExceptionLoggingInterceptor.logException(ExceptionLoggingInterceptor.java:107)
 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.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
 ......
 ......
 ......
 at gov.nih.nci.caarray.web.filter.CacheControlFilter.doFilter(CacheControlFilter.java:132)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at gov.nih.nci.caarray.web.filter.UpgradeFilter.doFilter(UpgradeFilter.java:121)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
 at java.lang.Thread.run(Thread.java:595)"
{code}

h2. Answer

This type of the exception could be caused by an empty caArray schema. The user should verify if the caArray schema has been setup properly by:

# Opening the caArray database to see if the tables have been installed.
# Querying a known caArray table in MySQL Client:
{code}

Answer

This type of the exception could be caused by an empty caArray schema. The user should verify if the caArray schema has been setup properly by:

  1. Opening the caArray database to see if the tables have been installed.
  2. Querying a known caArray table in MySQL Client:
    Code Block
    
    SELECT * FROM category
    

...

If

...

the

...

schema

...

is

...

indeed

...

empty,

...

it

...

can

...

be

...

reinstalled

...

via

...

the

...

steps

...

below:

...

  1. Shut

...

  1. down

...

  1. the

...

  1. caArray

...

  1. JBoss

...

  1. server.

...

  1. Run

...

  1. the

...

  1. following

...

  1. ant

...

  1. command

...

  1. from

...

  1. the

...

  1. software/build

...

  1. folder:

...

  1. Code Block

...

  1. 
    ant database:reinitialize
    

...

  1. Restart caArray JBoss

Have a comment?

Please leave your comment in the caArray End User Forum.

Scrollbar
iconsfalse