Re: [Virtuoso-users] Virtuoso-opensource Installation issue: glib?

2010-03-09 Thread Frederick Giasson

Hi Bill,

Bill: first, I did CC this message to the Virtuoso Users List since it 
is mostly related to Virtuoso building questions.


Virtuoso mailing list: this is a message from Bill Anderson that has 
some issues installing VOS.



Hi all, I'm relatively new to construtscs and last week I had an
almost complete installation working. This week I started over and I'm
having an unusual error with the virtuoso-opensource install.
  

Good

I'm building a VMware Fusion VM starting with Ubuntu 9.10. I've
successfully installed everything, including
virtuoso-opensource-5.0.13. However I ran into two interesting
problems when running iodbctest, one of which I've solved, the second
remains.
  

Ok

The first error was a BAD LOGIN for iodbctest, but I was able to login
to Virtuoso/conductor. I discovered that the ubuntu install created a
separate entry in the /etc/hosts file for the hostname ubuntu with
IP address 127.0.1.1 . When I added the hostname ubuntu to the
127.0.0.1 localhost entry this error went away. Is this is some
interesting side effect of the Ubuntu install that needs to be
documented?
  
This is strange. First time I see this while installing Ubuntu. All my 
previous Ubuntu installation were made with 127.0.0.1 by default. I am 
wondering why you got this.


Otherwise, if fixing this as an impact on iodctest, then I guess it has 
to do with the way the software as been created since I cannot see why 
it had an impact on your problem.



The second error is illustrated below, and I don't know what the
problem or solution is. (Perhaps reinstall some version of glib2.0 and
rebuild virtuoso-opensource?) Any suggestions appreciated.

-Bill Anderson

=

wla101@ubuntu:~$ sudo /usr/bin/iodbctest
DN=structwsf-triples-store;UID=dba;PW=dba
[sudo] password for wla101:
iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0607.1008

(process:3862): GLib-GObject-CRITICAL **:
/build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization
assertion failed, use IA__g_type_init() prior to this function

(process:3862): GLib-CRITICAL **: g_once_init_leave: assertion
`initialization_value != 0' failed

(process:3862): GLib-GObject-CRITICAL **:
/build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization
assertion failed, use IA__g_type_init() prior to this function

(process:3862): GLib-GObject-CRITICAL **:
/build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization
assertion failed, use IA__g_type_init() prior to this function

(process:3862): GLib-GObject-CRITICAL **:
/build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization
assertion failed, use IA__g_type_init() prior to this function

(process:3862): GLib-GObject-CRITICAL **: g_type_add_interface_static:
assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(process:3862): GLib-GObject-CRITICAL **:
/build/buildd/glib2.0-2.22.3/gobject/gtype.c:2458: initialization
assertion failed, use IA__g_type_init() prior to this function

(process:3862): GLib-GObject-CRITICAL **: g_type_add_interface_static:
assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
^C
wla101@ubuntu:~$
  



This is for the Virtuoso team, any ideas?


Thanks,


Fred



[Virtuoso-users] Posting a query file to the Virtuoso facets Web services REST interface using Jersey

2010-03-09 Thread Monika Solanki

Hello,

Does anyone have any experience with this. I  am not able to do a POST 
of the query file using Jersey. The server keeps throwing 500.

Code below:

{
   ClientConfig config = new DefaultClientConfig();
   Client client = Client.create(config);
   client.addFilter(new LoggingFilter());
   System.out.println(test);
   WebResource service = client.resource(getBaseURI());
   File f = new File(/home/monika/post.xml);
   System.out.println(f.exists());
   String 
response=service.type(MediaType.TEXT_XML).accept(MediaType.TEXT_XML).post(String.class,f);

   System.out.println(response.toString());
   }

   private static URI getBaseURI() {
   return UriBuilder.fromUri(
   http://lod.openlinksw.com/fct/service;).build();
   }
  
//curl -H Content-Type: text/xml -d @post.xml


}


Monika