New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TMCL templates.ctm causes CTM parser crash #2

Closed
GoogleCodeExporter opened this Issue Mar 16, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter

GoogleCodeExporter commented Mar 16, 2015

Attempting to load the template definitions from the TMCL standard causes 
the CTM parser to crash with the following error message:

java.lang.ClassCastException: 
net.ontopia.topicmaps.utils.ctm.VariableTopicGenerator
    at 
net.ontopia.topicmaps.utils.ctm.Template.getTopicIdentityVariable
(Template.java:93)
    at net.ontopia.topicmaps.utils.ctm.CTMParser.topic_identity
(CTMParser.java:993)
    at net.ontopia.topicmaps.utils.ctm.CTMParser.topic
(CTMParser.java:385)
    at net.ontopia.topicmaps.utils.ctm.CTMParser.template_def
(CTMParser.java:506)
    at net.ontopia.topicmaps.utils.ctm.CTMParser.topicmap
(CTMParser.java:274)
    at net.ontopia.topicmaps.utils.ctm.CTMTopicMapReader.read
(CTMTopicMapReader.java:139)
    at net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader.readAll
(AbstractTopicMapReader.java:113)
    at 
net.ontopia.topicmaps.impl.utils.AbstractTopicMapReader.importInto
(AbstractTopicMapReader.java:133)
    at 
net.ontopia.topicmaps.utils.ctm.CTMTopicMapReference.loadTopicMap
(CTMTopicMapReference.java:39)
    at net.ontopia.topicmaps.entry.AbstractURLTopicMapReference.open
(AbstractURLTopicMapReference.java:133)
    at 
net.ontopia.topicmaps.entry.AbstractURLTopicMapReference.createStore
(AbstractURLTopicMapReference.java:184)
    at net.ontopia.topicmaps.entry.TopicMaps.createStore
(TopicMaps.java:49)
    at net.ontopia.topicmaps.entry.TopicMaps.createStore
(TopicMaps.java:33)
    at 
net.ontopia.topicmaps.nav2.impl.basic.NavigatorApplication.getTopicMapById
(NavigatorApplication.java:192)
    at 
net.ontopia.topicmaps.nav2.impl.basic.NavigatorApplication.getTopicMapById
(NavigatorApplication.java:181)
    at net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag.doStartTag
(ContextTag.java:142)
    at org.apache.jsp.models.topicmap_005fcomplete_jsp._jspService
(topicmap_005fcomplete_jsp.java:132)
    at org.apache.jasper.runtime.HttpJspBase.service
(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service
(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:117)
    at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:542)
    at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:613)

Original issue reported on code.google.com by lar...@gmail.com on 11 Jun 2009 at 10:36

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 16, 2015

Here is a minimal test case that reproduces the problem:

def binary-association($rt)
  has-role($rt)
  $rt isa role-type.
end

Original comment by lar...@gmail.com on 13 Jun 2009 at 9:20

GoogleCodeExporter commented Mar 16, 2015

Here is a minimal test case that reproduces the problem:

def binary-association($rt)
  has-role($rt)
  $rt isa role-type.
end

Original comment by lar...@gmail.com on 13 Jun 2009 at 9:20

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 16, 2015

Fixed. Test case template-ambiguous-parameter4.ctm added to cxtm-tests.

Original comment by lar...@gmail.com on 13 Jun 2009 at 9:25

  • Changed state: Fixed

GoogleCodeExporter commented Mar 16, 2015

Fixed. Test case template-ambiguous-parameter4.ctm added to cxtm-tests.

Original comment by lar...@gmail.com on 13 Jun 2009 at 9:25

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment