Hi Ilian,

I reproduced the problem, but i could not find any exception in the logs.
This is the log content of all.txt:

INFO       0[main](KIMServiceImpl.java:89) - : : : : : : : : KIM SERVER 
START : : : : : : : : 
INFO     440[main](KIMServiceImpl.java:168) - Sesame [STARTED] on Tue Jan 23 
09:21:06 CET 2007
INFO   59405[main](EntitiesCache.java:58) - Loading of trusted entities from 
D:/kim-platform-
1.7.12.15/context/default/populated/cache/kim.trusted.entities.cache
INFO   83059[main](EntitiesCache.java:110) - Loading of recognized entities 
from D:/kim-platform-
1.7.12.15/context/default/populated/cache/kim.recognized.entities.cache
INFO   89198[main](EntitiesCache.java:137) - 43720 entities were loaded
INFO   89198[main](KIMServiceImpl.java:145) - Get SemanticRepositoryRemoteAPI.
INFO   91431[main](KIMServiceImpl.java:98) - KIM Platform: [1.7.12.15]  KIM 
Server: [1.7.12.15]  KB Version: [1.3s.8.5] 
INFO   91431[main](KIMServiceImpl.java:440) - Waking Up GATE...B| on Tue Jan 
23 09:22:37 CET 2007
INFO  108145[main](KIMServiceImpl.java:448) - GATE is AWAKE.B] on Tue Jan 23 
09:22:54 CET 2007
INFO  108235[main](KIMServiceImpl.java:482) - Loading D:\kim-platform-1.7.12.15
\context\default\resources\IE-no-keywords.gapp
INFO  127273[main](InstanceGenerator.java:30) - initialize Instance Generator
INFO  129085[main](InstanceGenerator.java:58) - Instance Generator 
initialization DONE.

INFO  129236[main](KIMServiceImpl.java:503) - SemanticAnnotationAPI loaded on 
Tue Jan 23 09:23:15 CET 2007
INFO  148023[main](FactoryInterfaceImpl.java:93) - KIMService registered on 
port 1099
INFO  148023[main](FactoryInterfaceImpl.java:94) - KIM Server startup ended!
INFO  413014[RMI TCP Connection(2)-1.1.1.1](KIMServiceImpl.java:310) - Get 
CorporaAPI.
INFO  413424[RMI TCP Connection(2)-1.1.1.1](KIMServiceImpl.java:294) - Get 
IndexAndPersistAPI.

I hope you can still help me.

Regards,
Tobin

Quoting Ilian Kitchukov <[EMAIL PROTECTED]>:

> Hi Tobin,
> 
> You cannot see the real cause of the problem through the JSP. Please, have a
> 
> look at the files in the ./log folder of your KIM Server and send me the 
> relevant exception if logged there. You can first clear all the logs 
> (stopKIM, clear logs, startKIM) and then reproduce the problem to make sure 
> that your logs will contain just this specific exception.
> 
> Regards,
> Ilian
> 
> ----- Original Message ----- 
> From: "Silvia Karagova" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Cc: <[email protected]>; <[EMAIL PROTECTED]>
> Sent: 20 January 2007, Saturday 17:12
> Subject: Re: [KIM-discussion] KIM problem
> 
> 
> > Dear Tobin,
> >
> > I am forwarding your question to kim-discussion mailing list.
> >
> > Best,
> > Silvia
> >
> >
> > -----------------------------------
> > Silvia Karagova
> > Office & Marketing Assistant
> > Ontotext Lab. http://www.ontotext.com
> > Sirma Group Corp. http://www.sirma.bg
> > Phone: +359 2 9768 303
> > Fax: +359 2 9768 311
> > ----- Original Message ----- 
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>
> > Sent: Saturday, January 20, 2007 4:31 PM
> > Subject: KIM problem
> >
> >
> >> Hi,
> >>
> >> I am a computer science student at the Free University of Amsterdam,
> >> and I am using the KIM platform for my thesis. I will perform a "small"
> >> experiment, where I compare the results of a traditional IR system
> >> (Lucene) to
> >> a semantic search system (KIM). The context of my thesis is the helpdesk
> >> department of a service provider (like a telecom company). Old solved
> >> problems
> >> are indexed and can be searched upon. When a helpdesk employee has a
> >> problem,
> >> he can now search for similar problems the system. (Kind of
> >> knowledgebase).
> >> I am building some java servlets (JSP) as Front side applications for
> >> indexing, storing and searching the problems. Now I get a exception when 
> >> I
> >> try
> >> to call the storeDoc() function. My code:
> >>
> >> import = "com.ontotext.kim.client.*,
> >> com.ontotext.kim.util.*,
> >> com.ontotext.kim.client.corpora.*,
> >> com.ontotext.kim.client.semanticannotation.*,
> >> com.ontotext.kim.client.index.*,
> >> com.ontotext.kim.client.persist.*,
> >> com.ontotext.kim.ontology.*,
> >> gate.util.*,
> >> javax.servlet.*,
> >> javax.servlet.http.*,
> >> java.io.*,
> >> java.math.*,
> >> java.util.*,
> >> java.net.*,
> >> java.math.BigDecimal;"
> >> %>
> >>
> >> <html>
> >>    <head>
> >>        <meta http-equiv="Content-Type" content="text/html; 
> >> charset=UTF-8">
> >>        <title>Semantic Search</title>
> >>    </head>
> >>    <body BGCOLOR="#739fb7">
> >>    <center>
> >>    <h1 style="color: Honeydew">KIM- semantic search</h1>
> >>    <BR>
> >> <%
> >> try{
> >>   //##### SETUP KIM ######
> >>   String INDEX_URL = "lucene:/d:/kim-platform-
> >> 1.7.12.15/context/default/populated/index-and-store";
> >>   CorporaAPI apiCorpora = null;
> >>   IndexAndPersistAPI apiIndexAndPersist = null;
> >>
> >>   //connect to host
> >>   KIMService serviceKim = GetService.from();
> >>   out.println("Connected to Host");
> >>   out.println("Server version: "+ serviceKim.getVersion()+"<br><br>");
> >>
> >>   // obtain CorporaAPI and IndexAndPersistAPI components
> >>   apiCorpora = serviceKim.getCorporaAPI();
> >>   apiIndexAndPersist = serviceKim.getIndexAndPersistAPI(INDEX_URL);
> >>   out.println("CorporaAPI and IndexAndPersistAPI obtained
> >> successfully.<br>");
> >>
> >>   // make sure a new index is created if none exists
> >>   try{
> >>    apiIndexAndPersist.createIndex();
> >>    out.println("Index created in folder: " + INDEX_URL);
> >>   }
> >>   catch(Exception ex){
> >>   }
> >>
> >>  String content ="This is a Test";
> >>  String docname ="Test";
> >>
> >> out.println("All documents in store: " +
> >> apiIndexAndPersist.getDocumentCount
> >> (null)+"<br>");
> >> out.println("LastPersistenceID=" +
> >> apiIndexAndPersist.getLastPersistenceID()
> >> +"<br>");
> >>
> >> KIMDocument kdoc = apiCorpora.createDocument(content,"UTF-8");   //create
> >> document with content string
> >>  kdoc.setName(docname);
> >>  out.println("Created document: "+kdoc.getName()+"<br><br>");
> >>
> >>  out.println(kdoc.getContent()+"<br><br>");
> >>
> >>  apiIndexAndPersist.storeDoc(kdoc);
> >>  out.println("Document indexed. ID="+ kdoc.getName()+"<br>");
> >>
> >> }catch (Exception e){
> >>   out.println(e);
> >> }
> >>
> >> The output is:
> >>
> >> 1 KIM- semantic search
> >>
> >> Connected to Host Server version: KIM Platform: [1.7.12.15] KIM Server:
> >> [1.7.12.15] KB Version: [1.3s.8.5]
> >>
> >> CorporaAPI and IndexAndPersistAPI obtained successfully.
> >> All documents in store: 4
> >> LastPersistenceID=8
> >> Created document: Test
> >>
> >> This is a Test
> >>
> >> java.lang.reflect.UndeclaredThrowableException
> >>
> >> Stacktrace of error is:
> >>
> >> type Exception report
> >> message
> >> description The server encountered an internal error () that prevented it
> >> from
> >> fulfilling this request.
> >> exception
> >> org.apache.jasper.JasperException
> >> org.apache.jasper.servlet.JspServletWrapper.service
> >> JspServletWrapper.java:370)
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile
> >> (JspServlet.java:291)
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
> >> (MonitorFilter.java:362)
> >> root cause
> >> java.lang.reflect.UndeclaredThrowableException
> >> $Proxy3.storeDoc(Unknown Source)
> >> org.apache.jsp.index_jsp._jspService(index_jsp.java:215)
> >> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >> org.apache.jasper.servlet.JspServletWrapper.service
> >> (JspServletWrapper.java:322)
> >> org.apache.jasper.servlet.JspServlet.serviceJspFile
> >> (JspServlet.java:291)
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
> >> (MonitorFilter.java:362)
> >>
> >> Is there a problem with the combination of JSP and KIM? Or am I doing
> >> something wrong? If i run the example java file "Create and Manage
> >> documents"
> >> it work fine. I also joined the mailing list a few days ago, but i didn't
> >> got
> >> a email back yet. I hope you can help me.
> >>
> >> Regards,
> >>
> >> Tobin Hupsel
> >> [EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>
> >
> >
> > _______________________________________________
> > NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of
> 
> > this mailing list.
> >
> > KIM-discussion mailing list
> > [email protected]
> > http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
> >
> >
> > __________ NOD32 1992 (20070120) Information __________
> >
> > This message was checked by NOD32 antivirus system.
> > http://www.eset.com
> >
> > 
> 
> 



_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this 
mailing list.

KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com

Reply via email to