Unable to run qsac-standalone-0.4.jar on win7

4 views
Skip to first unread message

Arman

unread,
Sep 22, 2010, 8:05:19 AM9/22/10
to skua-discuss
Hello,
I am trying to run the standalone version on win7 but unfortuneatly it
gives me an error.
How to overcome this problem?
========== SNIP BEGIN ===============

c:\temp>"e:\Program Files (x86)\Java\jdk1.6.0_21\bin\java.exe" -jar
qsac-standal
one-0.4.jar
INFO 2010-09-22 13:52:01,749 Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mo
rtbay.log) via org.mortbay.log.Slf4jLog
INFO 2010-09-22 13:52:01,752 Found JettySchemeServer.properties
Quaestor starting on http://localhost:8080/
INFO 2010-09-22 13:52:01,761 JettySchemeServer 0.4
INFO 2010-09-22 13:52:01,840 docbase=jar:file:/C:/temp/qsac-
standalone-0.4.jar!/
Resources
INFO 2010-09-22 13:52:01,862 Classpath=qsac-standalone-0.4.jar
INFO 2010-09-22 13:52:43,856 Loaded main script from qsac.scm with
initialiser i
nitialise-qsac
INFO 2010-09-22 13:52:44,114 chatter:Persistence-directory parameter
is #<java j
ava.lang.String qsac-persistence>
INFO 2010-09-22 13:52:45,293 chatter:rdf:ingest-from-stream/language:
base= lang
uage=#<java java.lang.String TURTLE> -> #<java java.lang.String
TURTLE>
INFO 2010-09-22 13:52:45,477 chatter:rdf:ingest-from-stream/language:
error read
ing
Error at rdf-error-handler: Error: can't read : Lexical error at line
1, column
70. Encountered: "q" (113), after : "\"c:\\temp\\"

WARN 2010-09-22 13:52:45,488 Scheme exception:
sisc.interpreter.SchemeException:
((message . #<java javax.servlet.ServletException
javax.servlet.ServletExceptio
n: Top-level error: Error at rdf:ingest-from-stream/language:
(SC_BAD_REQUEST .
Error reading
Error: Error at rdf-error-handler: Error: can't read : Lexical error
at line 1,
column 70. Encountered: "q" (113), after : "\"c:\\temp\\"
Logger:)
>))

c:\temp>
========== SNIP END =================

Thanks Arman.


-------------------
eScience team at AIP, Potsdam, germany
-------------------

Norman Gray

unread,
Sep 23, 2010, 10:15:33 AM9/23/10
to skua-d...@googlegroups.com

Arman, hello.

On 2010 Sep 22, at 14:05, Arman wrote:

> Hello,
> I am trying to run the standalone version on win7 but unfortuneatly it
> gives me an error.

Thanks for reporting this.

> Error: Error at rdf-error-handler: Error: can't read : Lexical error
> at line 1,
> column 70. Encountered: "q" (113), after : "\"c:\\temp\\"
> Logger:)
>> ))

It looks as if there's some inconsistency, or confusion, between different escaping contexts. I haven't tested qsac on Windows before, so... thank you!

I've found a location for the problem, I think, but I'm not _completely_ sure what the problem is in detail. Can I ask you to try again with the jar file at <http://nxg.me.uk/temp/qsac-standalone-r501.jar>?

You should get the same result, but this time with a little more logging, which might explain things.

Best wishes,

Norman


--
Norman Gray : http://nxg.me.uk

Arman Khalatyan

unread,
Sep 23, 2010, 10:23:43 AM9/23/10
to skua-d...@googlegroups.com
Well the things became better, At least the server running few seconds then it crushes....
it still failing due to the path.
I think you should use c:/temp/ rather than c:\\temp\\ for paths...

========== ERROR ==================================
C:\temp>"c:\Program Files (x86)\Java\jre6\bin\java.exe" -jar qsac-standalone-r50
1.jar --port=8888
INFO 2010-09-23 16:19:18,460 Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mo
rtbay.log) via org.mortbay.log.Slf4jLog
INFO 2010-09-23 16:19:18,463 Found JettySchemeServer.properties
Quaestor starting on http://localhost:8888/
INFO 2010-09-23 16:19:18,473 JettySchemeServer r501
INFO 2010-09-23 16:19:18,554 docbase=jar:file:/C:/temp/qsac-standalone-r501.jar!
/Resources
INFO 2010-09-23 16:19:18,576 Classpath=qsac-standalone-r501.jar
INFO 2010-09-23 16:19:59,410 Loaded main script from qsac.scm with initialiser i
nitialise-qsac
INFO 2010-09-23 16:19:59,672 chatter:Persistence-directory parameter is #<java j
ava.lang.String qsac-persistence>
INFO 2010-09-23 16:20:00,566 chatter:rdf:ingest-from-string/turtle: "[] <http://
ns.eurovotech.org/quaestor#persistenceDirectory> "C:\temp\qsac-persistence".", w
ith base #<java java.lang.String >
INFO 2010-09-23 16:20:00,797 chatter:rdf:ingest-from-stream/language: base=<> la
nguage=#<java java.lang.String TURTLE> -> #<java java.lang.String TURTLE>
INFO 2010-09-23 16:20:00,998 chatter:rdf:ingest-from-stream/language: error read
ing stream <#<java java.lang.String java.io.StringReader@1ae7fff>> with base URI
 <>
Error at rdf-error-handler: Error: can't read source "#<java java.lang.String ja
va.io.StringReader@1ae7fff>" with base <>: Lexical error at line 1, column 70.
Encountered: "q" (113), after : "\"C:\\temp\\"

WARN 2010-09-23 16:20:01,011 Scheme exception: sisc.interpreter.SchemeException:
 ((message . #<java javax.servlet.ServletException javax.servlet.ServletExceptio
n: Top-level error: Error at rdf:ingest-from-stream/language: (SC_BAD_REQUEST .
Error reading stream <#<java java.lang.String java.io.StringReader@1ae7fff>> wit
h base URI <>
Error: Error at rdf-error-handler: Error: can't read source "#<java java.lang.St
ring java.io.StringReader@1ae7fff>" with base <>: Lexical error at line 1, colum
n 70.  Encountered: "q" (113), after : "\"C:\\temp\\"
Logger:)
>))

C:\temp>
============ END SNIP =================================


 Arman.


--
You received this message because you are subscribed to the Google Groups "skua-discuss" group.
To post to this group, send email to skua-d...@googlegroups.com.
To unsubscribe from this group, send email to skua-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/skua-discuss?hl=en.


Norman Gray

unread,
Sep 23, 2010, 11:57:20 AM9/23/10
to skua-d...@googlegroups.com

Arman, hello.

On 2010 Sep 23, at 16:23, Arman Khalatyan wrote:

> Well the things became better, At least the server running few seconds then
> it crushes....

Thanks for this -- I'll study this and see if I can work out how to fix this.

I made no functional changes to this version -- only added a little more output to confirm where things were going wrong.

> it still failing due to the path.
> I think you should use c:/temp/ rather than c:\\temp\\ for paths...

Ah, but the thing is that I'm carefully not using "c:\\temp\\" for anything, but relying on Java's get-me-a-temp-path functionality.

The problem (as I rather suspected, but as this confirms) comes about because this temporary directory ends up being constructed as "C:\temp\qsac-persistence", which is then parsed by something else, which (somewhat unexpectedly to me) regards the backslashes as escapes, in context. The "\t" is OK, but it's the "\q" that produces a 'lexical error'.

Hmm: simply escaping the backslashes seems a bit kludgy to me. But...

I probably won't have much time for this this week, but I hope to get back to you next week. Shout, if I haven't.

Arman Khalatyan

unread,
Sep 23, 2010, 12:00:17 PM9/23/10
to skua-d...@googlegroups.com
Thanks for your explanations.
Do you have some web site with skua. I would like to see how it works and what one can do with that?
Thanks
Arman.


Norman Gray

unread,
Sep 23, 2010, 12:21:59 PM9/23/10
to skua-d...@googlegroups.com

On 2010 Sep 23, at 17:57, Norman Gray wrote:

> Hmm: simply escaping the backslashes seems a bit kludgy to me. But...

But a moment's more reflection convinces me that I'm being nuts -- this is obviously the correct thing to do. Try <http://nxg.me.uk/temp/qsac-standalone-r508.jar>. That works for me, but I can't test it on windows, so you get to do the honours!

> Do you have some web site with skua. I would like to see how it works and
> what one can do with that?

Once you finally get the thing running, then <http://localhost:8080/tutorial.html> should lead you through doing some interesting things with it.

Arman Khalatyan

unread,
Sep 24, 2010, 4:51:40 AM9/24/10
to skua-d...@googlegroups.com
Thanks...
Nice I try it on linux it works. I did not try older versions only r508.

It fails on windows 7, here is output...

=================SNIP================
C:\temp>"c:\Program Files (x86)\Java\jre6\bin\java.exe" -jar qsac-standalone-r50
8.jar --port=8888
INFO 2010-09-24 10:39:53,926 Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mo
rtbay.log) via org.mortbay.log.Slf4jLog
INFO 2010-09-24 10:39:53,930 Found JettySchemeServer.properties
Quaestor starting on http://localhost:8888/
INFO 2010-09-24 10:39:53,941 JettySchemeServer r508
INFO 2010-09-24 10:39:54,078 docbase=jar:file:/C:/temp/qsac-standalone-r508.jar!
/Resources
INFO 2010-09-24 10:39:54,115 Classpath=qsac-standalone-r508.jar
INFO 2010-09-24 10:40:35,606 Loaded main script from qsac.scm with initialiser i
nitialise-qsac
INFO 2010-09-24 10:40:35,919 chatter:Persistence-directory parameter is #<java j
ava.lang.String qsac-persistence>
INFO 2010-09-24 10:40:37,811 chatter:rdf:ingest-from-string/turtle: "[] <http://
ns.eurovotech.org/quaestor#persistenceDirectory> "C:\\temp\\qsac-persistence".",
 with base #<java java.lang.String >
INFO 2010-09-24 10:40:38,048 chatter:rdf:ingest-from-stream/language: base=<> la
nguage=#<java java.lang.String TURTLE> -> #<java java.lang.String TURTLE>
INFO 2010-09-24 10:40:38,238 chatter:rdf:ingest-from-stream/language: read strea
m OK
INFO 2010-09-24 10:40:38,596 chatter:rdf:create-persistent-model-factory: create
d persistence directory #<java java.io.File C:\temp\qsac-persistence>
INFO 2010-09-24 10:40:38,632 chatter:make-persistence-file: location=#<java java
.lang.String C:\temp\qsac-persistence\urn:__whiteboard>  file=#<java java.lang.S
tring C:\temp\qsac-persistence\urn:__whiteboard.rdf> (exists? #<java boolean fal
se>)
WARN 2010-09-24 10:40:39,926 Scheme exception: sisc.interpreter.SchemeException:
 ((message . #<java javax.servlet.ServletException javax.servlet.ServletExceptio
n: Top-level error: com.hp.hpl.jena.assembler.exceptions.AssemblerException: cau
ght: Failed to create BlockMgrFile
  doing:
    root: 3ef095e6:12b42e6b1ea:-7ffc with type: http://jena.hpl.hp.com/2008/tdb#
GraphTDB assembler class: class com.hp.hpl.jena.tdb.assembler.TDBGraphAssembler

>))

C:\temp>
=====================================

cheers Arman,



Norman Gray

unread,
Sep 24, 2010, 5:26:33 PM9/24/10
to skua-d...@googlegroups.com

Arman, hello.

On 2010 Sep 24, at 10:51, Arman Khalatyan wrote:

> Nice I try it on linux it works.

That's something, at least!

> WARN 2010-09-24 10:40:39,926 Scheme exception:
> sisc.interpreter.SchemeException:
> ((message . #<java javax.servlet.ServletException
> javax.servlet.ServletExceptio
> n: Top-level error: com.hp.hpl.jena.assembler.exceptions.AssemblerException:
> cau
> ght: Failed to create BlockMgrFile
> doing:
> root: 3ef095e6:12b42e6b1ea:-7ffc with type:
> http://jena.hpl.hp.com/2008/tdb#
> GraphTDB assembler class: class
> com.hp.hpl.jena.tdb.assembler.TDBGraphAssembler

OK, that's a bit deeper down. I can't spot what's going wrong here (I don't _think_ it's the same problem), so I think I'll have to find myself a windows box somewhere, and do some digging.

All the best,

Norman Gray

unread,
Oct 5, 2010, 12:32:54 PM10/5/10
to skua-d...@googlegroups.com

Arman, hello.

On 2010 Sep 24, at 22:26, Norman Gray wrote:

> I can't spot what's going wrong here (I don't _think_ it's the same problem), so I think I'll have to find myself a windows box somewhere, and do some digging.

I think I've found the problem (actually two, only one of which was my fault!).

Can you try <http://www.astro.gla.ac.uk/users/norman/temp/qsac-standalone-r509.jar>. That should run on Windows (and does run, on the one Windows XP machine I've got access to).

If so, I'll release this as qsac 0.4.1.

Thanks for the report, and your help tracking things down. Best wishes,

Arman Khalatyan

unread,
Oct 6, 2010, 5:02:43 AM10/6/10
to skua-d...@googlegroups.com
NiCE!
It works now. Thank you.

Another question could you please send an example batch script that will make several demo sends to skua? like in your tutorial? It will be useful to check what I need to see.

Cheers arman.

Norman Gray

unread,
Oct 6, 2010, 9:29:00 AM10/6/10
to skua-d...@googlegroups.com

Arman, hello.

On 2010 Oct 6, at 10:02, Arman Khalatyan wrote:

> It works now. Thank you.

Excellent.

> Another question could you please send an example batch script that will
> make several demo sends to skua? like in your tutorial? It will be useful to
> check what I need to see.

I'm not sure I follow you. If you cut and paste the examples on the tutorial page, at a shell prompt, that should work through the various bits of functionality. How would the script you envisage add to this?

All the best,

Reply all
Reply to author
Forward
0 new messages