[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sleuthkit-developers
Subject:    Re: [sleuthkit-developers] Calling Sleuth Kit From JMS
From:       Milindu Sanoj Kumarage <agentmilindu () gmail ! com>
Date:       2014-11-14 1:46:18
Message-ID: CALVty79Lu1rxA9wNawDNmLeCHJ9fkMZrA1VYawQ-cJ-4GaKmGQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Great!! Thank to you and Stuart I could solve my problem :D Thanks a lot.
Now I see "SleuthkitJNI: loaded libtsk_jni" message, but gets following
error. I'll try to get it solved :)
Any ideas, why it could be?

*org.sleuthkit.datamodel.TskCoreException: Database Error (Can't open
database: unable to open database file)*



On Thu, Nov 13, 2014 at 7:44 PM, Brian Carrier <carrier@sleuthkit.org>
wrote:

> I think Stuart is on the right path with his comments.  Did you do a 'make
> install' with TSK? The JNI code assumes that the other TSK libraries are in
> their installed locations.
> 
> 
> On Nov 12, 2014, at 3:00 PM, Milindu Sanoj Kumarage <
> agentmilindu@gmail.com> wrote:
> 
> > Hi,
> > 
> > I'm trying to call Sleuth Kit from a JMS MessageListener. But I'm
> getting this error
> > 
> > java.lang.UnsatisfiedLinkError: /tmp/libtsk_jni.so: libtsk.so.10: cannot
> open shared object file: No such file or directory
> > 
> > I tried coping the libtsk_jni.so to /tmp but no difference. But I can
> call Sleuth Kit from from a Java console application. What could be the
> error?
> > 
> > 
> > 
> > Below is my MessageListener
> > 
> > public void onMessage(Message message) {
> > 
> > try {
> > 
> > String imagePath = "uploads/Cfreds001A001.dd";
> > 
> > try{
> > 
> > SleuthkitCase sk = SleuthkitCase.newCase(imagePath + ".db");
> > 
> > } catch (TskCoreException ex) {
> > 
> > }
> > 
> > } catch (JMSException ex) {
> > 
> > Logger.getLogger(WorkerBean.class.getName()).log(Level.SEVERE,
> null, ex);
> > 
> > } catch (InterruptedException ex) {
> > 
> > Logger.getLogger(WorkerBean.class.getName()).log(Level.SEVERE,
> null, ex);
> > 
> > }
> > 
> > 
> ------------------------------------------------------------------------------
> > Comprehensive Server Monitoring with Site24x7.
> > Monitor 10 servers for $9/Month.
> > Get alerted through email, SMS, voice calls or mobile push notifications.
> > Take corrective actions from your mobile device.
> > 
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk_______________________________________________
> 
> > sleuthkit-developers mailing list
> > sleuthkit-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers
> 
> 


[Attachment #5 (text/html)]

<div dir="ltr">Great!! Thank to you and Stuart I could solve my problem :D Thanks a \
lot. Now I see &quot;SleuthkitJNI: loaded libtsk_jni&quot; message, but gets \
following error. I&#39;ll try to get it solved :)<div>Any ideas, why it could \
be?</div><div><br><div><i>org.sleuthkit.datamodel.TskCoreException: Database Error \
(Can&#39;t open database: unable to open database \
file)</i></div></div><div><i><br></i></div><div><i><br></i></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 7:44 PM, \
Brian Carrier <span dir="ltr">&lt;<a href="mailto:carrier@sleuthkit.org" \
target="_blank">carrier@sleuthkit.org</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">I think Stuart is on the right path with his comments.   Did \
you do a &#39;make install&#39; with TSK? The JNI code assumes that the other TSK \
libraries are in their installed locations.<br> <div><div class="h5"><br>
<br>
On Nov 12, 2014, at 3:00 PM, Milindu Sanoj Kumarage &lt;<a \
href="mailto:agentmilindu@gmail.com">agentmilindu@gmail.com</a>&gt; wrote:<br> <br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m trying to call Sleuth Kit from a JMS MessageListener. But I&#39;m \
getting this error<br> &gt;<br>
&gt; java.lang.UnsatisfiedLinkError: /tmp/libtsk_jni.so: libtsk.so.10: cannot open \
shared object file: No such file or directory<br> &gt;<br>
&gt; I tried coping the libtsk_jni.so to /tmp but no difference. But I can call \
Sleuth Kit from from a Java console application. What could be the error?<br> \
&gt;<br> &gt;<br>
&gt;<br>
&gt; Below is my MessageListener<br>
&gt;<br>
&gt; public void onMessage(Message message) {<br>
&gt;<br>
&gt;      try {<br>
&gt;<br>
&gt;           String imagePath = &quot;uploads/Cfreds001A001.dd&quot;;<br>
&gt;<br>
&gt;               try{<br>
&gt;<br>
&gt;                    SleuthkitCase sk = SleuthkitCase.newCase(imagePath + \
&quot;.db&quot;);<br> &gt;<br>
&gt;               } catch (TskCoreException ex) {<br>
&gt;<br>
&gt;               }<br>
&gt;<br>
&gt;     } catch (JMSException ex) {<br>
&gt;<br>
&gt;         Logger.getLogger(WorkerBean.class.getName()).log(Level.SEVERE, null, \
ex);<br> &gt;<br>
&gt;     } catch (InterruptedException ex) {<br>
&gt;<br>
&gt;         Logger.getLogger(WorkerBean.class.getName()).log(Level.SEVERE, null, \
ex);<br> &gt;<br>
&gt; }<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------------<br>
 &gt; Comprehensive Server Monitoring with Site24x7.<br>
&gt; Monitor 10 servers for $9/Month.<br>
&gt; Get alerted through email, SMS, voice calls or mobile push notifications.<br>
&gt; Take corrective actions from your mobile device.<br>
&gt; <a href="http://pubads.g.doubleclick.net/gampad/clk?id=154624111&amp;iu=/4140/ostg.clktrk_______________________________________________" \
target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=154624111&amp;iu=/4140/ostg.clktrk_______________________________________________</a><br>
 &gt; sleuthkit-developers mailing list<br>
&gt; <a href="mailto:sleuthkit-developers@lists.sourceforge.net">sleuthkit-developers@lists.sourceforge.net</a><br>
 &gt; <a href="https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers</a><br>
 <br>
</blockquote></div><br></div>



------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk

_______________________________________________
sleuthkit-developers mailing list
sleuthkit-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sleuthkit-developers


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic