| 
| InfoCenter Exception [message #331185] | Wed, 27 August 2008 13:09  |  | 
| Eclipse User  |  |  |  |  | Hi, 
 we are using the eclipse infocenter deployed on tomcat to serve our
 online help. Now we created an index from our docbook base and added it
 to the plugin.xml as described in the eclipse help. So far so good, but
 when we try to open the index we get this exception:
 
 SCHWERWIEGEND: Servlet.service() for servlet equinoxbridgeservlet threw
 exception
 java.lang.ClassCastException: org.eclipse.help.internal.toc.Toc$1 cannot
 be cast to org.eclipse.help.internal.Topic
 at org.eclipse.help.internal.toc.TocManager.getTopic
 (TocManager.java:120)
 at org.eclipse.help.internal.index.IndexAssembler
 $IndexComparator.getLabel(IndexAssembler.java:247)
 at org.eclipse.help.internal.index.IndexAssembler
 $IndexComparator.compare(IndexAssembler.java:199)
 at java.util.Arrays.mergeSort(Arrays.java:1270)
 at java.util.Arrays.mergeSort(Arrays.java:1281)
 at java.util.Arrays.sort(Arrays.java:1210)
 at org.eclipse.help.internal.index.IndexAssembler.sort
 (IndexAssembler.java:155)
 at org.eclipse.help.internal.index.IndexAssembler.sort
 (IndexAssembler.java:141)
 at org.eclipse.help.internal.index.IndexAssembler.assemble
 (IndexAssembler.java:52)
 at org.eclipse.help.internal.index.IndexManager.getIndex
 (IndexManager.java:59)
 at  org.eclipse.help.internal.webapp.servlet.IndexFragmentServle t
 $Serializer.<init>(IndexFragmentServlet.java:125)
 at
 org.eclipse.help.internal.webapp.servlet.IndexFragmentServle t.doGet
 (IndexFragmentServlet.java:103)
 at  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 at  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.eclipse.equinox.http.registry.internal.ServletManager
 $ServletWrapper.service(ServletManager.java:180)
 at
 org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest
 (ServletRegistration.java:90)
 at
 org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias
 (ProxyServlet.java:111)
 at  org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce
 (ProxyServlet.java:59)
 at  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.eclipse.equinox.servletbridge.BridgeServlet.service
 (BridgeServlet.java:121)
 at  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter
 (ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter
 (ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke
 (StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke
 (StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke
 (StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke
 (ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke
 (StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service
 (CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process
 (Http11Processor.java:844)
 at org.apache.coyote.http11.Http11Protocol
 $Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run
 (JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)
 
 
 Can anyone help us on how to resolve the issue?
 We looked the the source of the TocManager which does the invalid cast.
 And in fact the returned object, from the method call before the
 exception is thrown, implements the interface ITopic but is not a Topic
 object.
 
 Thanks for any input
 Markus Wolf
 --
 >
 > emedia-solutions wolf    web: http://www.emedia-solutions-wolf.de
 > Eimsbüttler Straße 115  mail: markus@emedia-solutions-wolf.de
 > 22769 Hamburg            pgp: http://wwwkeys.de.pgp.net
 > +49 40 432 635 83      taxid: 57 / 126 / 16123
 >
 |  |  |  | 
|  | 
| 
| Re: InfoCenter Exception [message #331263 is a reply to message #331210] | Thu, 28 August 2008 12:46  |  | 
| Eclipse User  |  |  |  |  | This sounds like a bug, can you file a bug report. What is happening is that an index entry in a remote toc does not have a label attribute and
 it is trying to look up the href in the TOC, we have tested the remote
 index but may not have hit on that particular situation in our testing.
 
 Lee Anne wrote:
 > Markus Wolf wrote:
 >> Hi,
 >>
 >> we are using the eclipse infocenter deployed on tomcat to serve our
 >> online help. Now we created an index from our docbook base and added
 >> it to the plugin.xml as described in the eclipse help. So far so good,
 >> but when we try to open the index we get this exception:
 >>
 >> SCHWERWIEGEND: Servlet.service() for servlet equinoxbridgeservlet
 >> threw exception
 >> java.lang.ClassCastException: org.eclipse.help.internal.toc.Toc$1
 >> cannot be cast to org.eclipse.help.internal.Topic
 >>         at org.eclipse.help.internal.toc.TocManager.getTopic
 >> (TocManager.java:120)
 >>         at org.eclipse.help.internal.index.IndexAssembler
 >> $IndexComparator.getLabel(IndexAssembler.java:247)
 >>         at org.eclipse.help.internal.index.IndexAssembler
 >> $IndexComparator.compare(IndexAssembler.java:199)
 >>         at java.util.Arrays.mergeSort(Arrays.java:1270)
 >>         at java.util.Arrays.mergeSort(Arrays.java:1281)
 >>         at java.util.Arrays.sort(Arrays.java:1210)
 >>         at org.eclipse.help.internal.index.IndexAssembler.sort
 >> (IndexAssembler.java:155)
 >>         at org.eclipse.help.internal.index.IndexAssembler.sort
 >> (IndexAssembler.java:141)
 >>         at org.eclipse.help.internal.index.IndexAssembler.assemble
 >> (IndexAssembler.java:52)
 >>         at org.eclipse.help.internal.index.IndexManager.getIndex
 >> (IndexManager.java:59)
 >>         at  org.eclipse.help.internal.webapp.servlet.IndexFragmentServle t
 >> $Serializer.<init>(IndexFragmentServlet.java:125)
 >>         at
 >>  org.eclipse.help.internal.webapp.servlet.IndexFragmentServle t.doGet
 >> (IndexFragmentServlet.java:103)
 >>         at  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 >>         at  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 >>         at org.eclipse.equinox.http.registry.internal.ServletManager
 >> $ServletWrapper.service(ServletManager.java:180)
 >>         at
 >>  org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest
 >>
 >> (ServletRegistration.java:90)
 >>         at
 >>  org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias
 >> (ProxyServlet.java:111)
 >>         at  org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce
 >> (ProxyServlet.java:59)
 >>         at  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 >>         at org.eclipse.equinox.servletbridge.BridgeServlet.service
 >> (BridgeServlet.java:121)
 >>         at  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 >>         at
 >>  org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter
 >> (ApplicationFilterChain.java:290)
 >>         at org.apache.catalina.core.ApplicationFilterChain.doFilter
 >> (ApplicationFilterChain.java:206)
 >>         at org.apache.catalina.core.StandardWrapperValve.invoke
 >> (StandardWrapperValve.java:233)
 >>         at org.apache.catalina.core.StandardContextValve.invoke
 >> (StandardContextValve.java:175)
 >>         at org.apache.catalina.core.StandardHostValve.invoke
 >> (StandardHostValve.java:128)
 >>         at org.apache.catalina.valves.ErrorReportValve.invoke
 >> (ErrorReportValve.java:102)
 >>         at org.apache.catalina.core.StandardEngineValve.invoke
 >> (StandardEngineValve.java:109)
 >>         at org.apache.catalina.connector.CoyoteAdapter.service
 >> (CoyoteAdapter.java:286)
 >>         at org.apache.coyote.http11.Http11Processor.process
 >> (Http11Processor.java:844)
 >>         at org.apache.coyote.http11.Http11Protocol
 >> $Http11ConnectionHandler.process(Http11Protocol.java:583)
 >>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run
 >> (JIoEndpoint.java:447)
 >>         at java.lang.Thread.run(Thread.java:619)
 >>
 >>
 >> Can anyone help us on how to resolve the issue?
 >> We looked the the source of the TocManager which does the invalid
 >> cast. And in fact the returned object, from the method call before the
 >> exception is thrown, implements the interface ITopic but is not a
 >> Topic object.
 >>
 >> Thanks for any input
 >> Markus Wolf
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.34561 seconds