Notes Example-An unexpected error has occured
"Narayanan" <[email protected]> Thu, 6 May 2004 13:37:33 +0530
| Newsgroups | gmane.linux.redhat.ccm.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I downloaded the source as per
https://listman.redhat.com/archives/redhat-ccm-list/2004-May/msg00006.ht
ml and successfully deploy the binder application.
As per your suggestion, I ran the following:
ccm-run com.arsdigita.web.ApplicationTool
com.example.binder.Binder binder Binder
The only change I did was in the web.xml file where I changed this
<servlet-mapping>
<servlet-name>binder</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
to
<servlet-mapping>
<servlet-name>binder</servlet-name>
<url-pattern>/binder/*</url-pattern>
</servlet-mapping>
After ccm start, I am able to view all these URL's without any problems.
http://localhost:9000/ccm/admin/
http://localhost:9000/ccm/content-center/
http://localhost:9000/ccm/admin/themes/
http://localhost:9000/ccm/ds/
http://localhost:9000/ccm/forms/
http://localhost:9000/ccm/portal/
But when I go to http://localhost:9000/ccm/binder, I get the following
error.
Notice
An unexpected error has occurred
An unexpected error has occurred. If this continues to be a problem for
you please contact the administrators of the site quoting the following:
CCM issue report code: 127.0.0.1:e5cd19:1125f346661
-*-*-*-*-*- Begin Error Report -*-*-*-*-*-
-*-*-*- ACS Error Report Code: 127.0.0.1:e5cd19:1125f346661 -*-*-*-
-*-*-*- Message 1: java.lang.NullPointerException: null -*-*-*-
-*-*-*- Section: CCM User -*-*-*-
Party not logged in
-*-*-*- Section: System properties -*-*-*-
catalina.base: /opt/tomcat/latest
catalina.home: /opt/tomcat/latest
catalina.useNaming: true
ccm.conf: /var/ccm-devel/web/ccmuser/binder/conf/registry
ccm.home: /var/ccm-devel/web/ccmuser/binder
com.arsdigita.london.navigation.DefaultContentSection: /content/
com.arsdigita.util.Assert.enabled: true
file.encoding: UTF-8
file.encoding.pkg: sun.io
file.separator: /
java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
java.awt.printerjob: sun.print.PSPrinterJob
java.class.path:
/usr/share/java/servlet-2.3.jar:/usr/java/j2sdk1.4.2_04/lib/tools.jar:/o
pt/tomcat/latest/bin/bootstrap.jar:/usr/share/ccm-tools/server/tomcat/cl
asses
java.class.version: 48.0
java.endorsed.dirs: /opt/tomcat/latest/common/endorsed
java.ext.dirs:
/usr/java/j2sdk1.4.2_04/jre/lib/ext:/usr/java/j2sdk1.4.2_04/lib/ext:/var
/ccm-devel/web/ccmuser/binder/webapps/WEB-INF/system:/usr/share/ccm-tool
s/lib/security
java.home: /usr/java/j2sdk1.4.2_04/jre
java.io.tmpdir: /tmp
java.library.path:
/usr/java/j2sdk1.4.2_04/jre/lib/i386/client:/usr/java/j2sdk1.4.2_04/jre/
lib/i386:/usr/java/j2sdk1.4.2_04/jre/../lib/i386
java.naming.factory.initial:
org.apache.naming.java.javaURLContextFactory
java.naming.factory.url.pkgs: org.apache.naming
java.protocol.handler.pkgs: org.apache.axis.transport|
java.runtime.name: Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version: 1.4.2_04-b05
java.specification.name: Java Platform API Specification
java.specification.vendor: Sun Microsystems Inc.
java.specification.version: 1.4
java.util.prefs.PreferencesFactory:
java.util.prefs.FileSystemPreferencesFactory
java.vendor: Sun Microsystems Inc.
java.vendor.url: http://java.sun.com/
java.vendor.url.bug: http://java.sun.com/cgi-bin/bugreport.cgi
java.version: 1.4.2_04
java.vm.info: mixed mode
java.vm.name: Java HotSpot(TM) Client VM
java.vm.specification.name: Java Virtual Machine Specification
java.vm.specification.vendor: Sun Microsystems Inc.
java.vm.specification.version: 1.0
java.vm.vendor: Sun Microsystems Inc.
java.vm.version: 1.4.2_04-b05
javax.xml.parsers.DocumentBuilderFactory:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
javax.xml.parsers.SAXParserFactory:
org.apache.xerces.jaxp.SAXParserFactoryImpl
javax.xml.transform.TransformerFactory:
com.icl.saxon.TransformerFactoryImpl
line.separator:
os.arch: i386
os.name: Linux
os.version: 2.4.21-4.EL
path.separator: :
sun.arch.data.model: 32
sun.boot.class.path:
/opt/tomcat/latest/common/endorsed/xercesImpl.jar:/opt/tomcat/latest/com
mon/endorsed/xmlParserAPIs.jar:/usr/java/j2sdk1.4.2_04/jre/lib/rt.jar:/u
sr/java/j2sdk1.4.2_04/jre/lib/i18n.jar:/usr/java/j2sdk1.4.2_04/jre/lib/s
unrsasign.jar:/usr/java/j2sdk1.4.2_04/jre/lib/jsse.jar:/usr/java/j2sdk1.
4.2_04/jre/lib/jce.jar:/usr/java/j2sdk1.4.2_04/jre/lib/charsets.jar:/usr
/java/j2sdk1.4.2_04/jre/classes
sun.boot.library.path: /usr/java/j2sdk1.4.2_04/jre/lib/i386
sun.cpu.endian: little
sun.cpu.isalist:
sun.io.unicode.encoding: UnicodeLittle
sun.java2d.fontpath:
sun.os.patch.level: unknown
user.country: US
user.dir: /var/ccm-devel/dev/ccmuser/binder
user.home: /home/ccmuser
user.language: en
user.name: ccmuser
user.timezone: America/New_York
-*-*-*- Section: Stack trace -*-*-*-
java.lang.NullPointerException
at
com.arsdigita.web.BaseDispatcher.forward(BaseDispatcher.java:186)
at
com.arsdigita.web.BaseDispatcher.dispatch(BaseDispatcher.java:130)
at
com.arsdigita.web.DispatcherServlet.doService(DispatcherServlet.java:123
)
at com.arsdigita.web.BaseServlet$1.excurse(BaseServlet.java:176)
at
com.arsdigita.kernel.KernelExcursion.run(KernelExcursion.java:57)
at
com.arsdigita.web.BaseServlet.internalService(BaseServlet.java:147)
at com.arsdigita.web.BaseServlet.doGet(BaseServlet.java:272)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
com.arsdigita.london.shortcuts.ShortcutFilter.doService(ShortcutFilter.j
ava:79)
at com.arsdigita.web.BaseFilter.doFilter(BaseFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
com.arsdigita.london.subsite.SubsiteFilter.doService(SubsiteFilter.java:
69)
at com.arsdigita.web.BaseFilter.doFilter(BaseFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:213)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:242
2)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:163)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1040)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1151)
at java.lang.Thread.run(Thread.java:534)
-*-*-*- Section: HTTP headers -*-*-*-
accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
accept-encoding: gzip,deflate
accept-language: en-us,en;q=0.5
connection: keep-alive
cookie: JSESSIONID=B8549C672EFFC2C6F2DDD894560F277C
host: localhost:9000
keep-alive: 300
user-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4)
Gecko/20030922
-*-*-*- Section: Servlet attributes -*-*-*-
com.arsdigita.web.BaseApplicationServlet.application_id: 13001
com.arsdigita.web.BaseDispatcher.dispatched: true
com.arsdigita.web.BaseServlet.request_url: /ccm/binder/
-*-*-*- Section: Request summary -*-*-*- Context path:
Request URI: /ccm/binder/
Query string: null
Method: GET
Remote user: null
-*-*-*- Section: Cookies -*-*-*-
JSESSIONID: B8549C672EFFC2C6F2DDD894560F277C (expires: -1)
-*-*-*-*-*- End Error Report -*-*-*-*-*-
I would appreciate any help on this.
Thanks & Regards,
Narayanan. K.
-----Original Message-----
From: Justin Ross [mailto:[email protected]]
Sent: Monday, May 03, 2004 11:16 PM
To: Narayanan
Subject: RE: [redhat-ccm-list] Notes
Example-java.lang.IllegalStateException: Value of BigDecimal id is null.
On Mon, 2004-05-03 at 12:19, Narayanan wrote:
> I am able to open all these URL's
> http://localhost:9000/ccm/admin/
> http://localhost:9000/ccm/content-center/
> http://localhost:9000/ccm/admin/themes/
> http://localhost:9000/ccm/ds/
>
> The following go through the Binder Servlet and print "YO" on the
> screen.
> http://localhost:9000/ccm/forms/
> http://localhost:9000/ccm/portal/
A bit of a new topic now: this is not correct behavior. The binder
servlet shouldn't be taking over "/ccm/forms/" and "/ccm/portal/".
> The following URL's result in the HTTP Status 500 - Internal Server
Error mentioned below.
> http://localhost:9000/binder/
> http://localhost:9000/
This is also strange.
1. "/binder/" will not work. I have an explanation of that below.
2. "/" should result in a directory listing or a bounce to "/ccm/".
So, the big thing I need to clear up is that your binder app will not be
addressible at "/binder/". Binder is a web.Application, so it needs to
be reached via the dispatcher (registered on "/ccm"). Your path should
look something like "/ccm/binder1", the path to a binder app instance
under the dispatcher. Read the javadoc on web.Application for more
about the "whys".
That app instance is something you'll need to create using the APIs on
Application.
The following is just a sketch from memory, so you'll have to fix the
broken parts :)
public class SomeAppAdder {
public static void main(String[] args) throws Exception {
new Startup().run();
TransactionContext t = SessionManager.getSession
().getTransactionContext();
t.beginTxn();
Application.createApplication
(Binder.BASE_DATA_OBJECT_TYPE,
"binder1",
"Binder 1",
null);
t.commitTxn();
}
}
Then do "ccm-run somepackage.SomeAppAdder". You should be able to reach
the new app instance at "/ccm/binder1" then.
(Minutes later) I forgot about this: There's a class called
com.arsdigita.web.ApplicationTool that does almost precisely the above,
so you can just use it.
Justin
Information contained in this E-MAIL being proprietary to Tricon Infotech Private Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in this E-MAIL in any manner whatsoever is strictly prohibited.
--
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/