[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 "SleuthkitJNI: loaded libtsk_jni" message, but gets \
following error. I'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'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"><<a href="mailto:carrier@sleuthkit.org" \
target="_blank">carrier@sleuthkit.org</a>></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 'make install' 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 <<a \
href="mailto:agentmilindu@gmail.com">agentmilindu@gmail.com</a>> wrote:<br> <br>
> Hi,<br>
><br>
> I'm trying to call Sleuth Kit from a JMS MessageListener. But I'm \
getting this error<br> ><br>
> java.lang.UnsatisfiedLinkError: /tmp/libtsk_jni.so: libtsk.so.10: cannot open \
shared object file: No such file or directory<br> ><br>
> 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> \
><br> ><br>
><br>
> Below is my MessageListener<br>
><br>
> public void onMessage(Message message) {<br>
><br>
> try {<br>
><br>
> String imagePath = "uploads/Cfreds001A001.dd";<br>
><br>
> try{<br>
><br>
> SleuthkitCase sk = SleuthkitCase.newCase(imagePath + \
".db");<br> ><br>
> } catch (TskCoreException ex) {<br>
><br>
> }<br>
><br>
> } catch (JMSException ex) {<br>
><br>
> Logger.getLogger(WorkerBean.class.getName()).log(Level.SEVERE, null, \
ex);<br> ><br>
> } catch (InterruptedException ex) {<br>
><br>
> Logger.getLogger(WorkerBean.class.getName()).log(Level.SEVERE, null, \
ex);<br> ><br>
> }<br>
><br>
</div></div>> ------------------------------------------------------------------------------<br>
> Comprehensive Server Monitoring with Site24x7.<br>
> Monitor 10 servers for $9/Month.<br>
> Get alerted through email, SMS, voice calls or mobile push notifications.<br>
> Take corrective actions from your mobile device.<br>
> <a href="http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk_______________________________________________" \
target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk_______________________________________________</a><br>
> sleuthkit-developers mailing list<br>
> <a href="mailto:sleuthkit-developers@lists.sourceforge.net">sleuthkit-developers@lists.sourceforge.net</a><br>
> <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