[Mulgara-dev] XSD Date/Time Corruption reproducible

David Moll DMoll at viewpointusa.com
Tue Jan 23 21:57:02 UTC 2007


Gentlemen,

Dave Smith and I have managed to reproduce the Date/Time corruption
issue that we are seeing.  Right now I have a test case that will always
be corrupted upon insertion into Mulgara.  Running the following query:

insert
<http://viewpointusa.com/test_ef084432-f2f1-4310-aa04-7a4505b09d29> 
	<http://www.viewpointusa.com/vss/elements/1.0/uploadedDate> 
	
'1981-04-26T02:56:00'^^<http://www.w3.org/2001/XMLSchema#dateTime> into
<rmi://192.168.10.134/server1#datetest> ;

Then running the standard: select $subject $predicate $object from
<rmi://192.168.10.134/server1#datetest> where $subject $predicate
$object;

The result is:
http://viewpointusa.com/test_ef084432-f2f1-4310-aa04-7a4505b09d29
http://www.viewpointusa.com/vss/elements/1.0/uploadedDate
"1981-04-26T03:56:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>.

Somehow, T02:56:00 becomes T03:56:00.  I have been trying to determine
where exactly this happens so that I can turn logging on for that
module.  Right now I have logging on for
org.mulgara.resolver.store.StatementStoreResolver and
org.mulgara.itql.ItqlInterpreter.

So, I started in ItqlInterpreter.java in the "outAInsertStatement"
method, which takes me to the private "insertStatements" method.  So
then I jump into DatabaseSession.java, in the "insert" method, which
leads to the private "execute" method.  Now I'm following the code into
the execute method of MulgaraTransaction.java, and then into the execute
method of ModifyModelOperation.java.  I get stuck in
ModifyModelOperation.doModify(), at line 245:

Resolver resolver =
operationContext.obtainResolver(operationContext.findModelResolverFactor
y(model));

Because the final call in this method is 

resolver.modifyModel(model, statements, insert);

and I haven't been able to figure out which resolver modifyModel is
being called on.  Although it appears to be StatementStoreResolver - but
the logging from StatementStoreResolver is not showing me where the
problem is.  What are the thoughts on the location and cause of this
issue?

~dave

I'll paste in the results of logging from my insertion command:

2007-01-23 16:45:56,268 DEBUG ItqlInterpreter - Executing command insert

	
<http://viewpointusa.com/test_ef084432-f2f1-4310-aa04-7a4505b09d29> 
	
<http://www.viewpointusa.com/vss/elements/1.0/uploadedDate> 
	
'1981-04-26T02:56:00'^^<http://www.w3.org/2001/XMLSchema#dateTime> 
		into <rmi://192.168.10.134/server1#datetest> ;
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Processing insert
command insert
http://viewpointusa.com/test_ef084432-f2f1-4310-aa04-7a4505b09d29
http://www.viewpointusa.com/vss/elements/1.0/uploadedDate '
1981-04-26T02:56:00 ' ^^ http://www.w3.org/2001/XMLSchema#dateTime into
rmi://192.168.10.134/server1#datetest 
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Inserting statements
into rmi://192.168.10.134/server1#datetest
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Current server is
rmi://192.168.10.134/server1, updating for
[rmi://192.168.10.134/server1]
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Finding statements in
expression
http://viewpointusa.com/test_ef084432-f2f1-4310-aa04-7a4505b09d29
http://www.viewpointusa.com/vss/elements/1.0/uploadedDate '
1981-04-26T02:56:00 ' ^^ http://www.w3.org/2001/XMLSchema#dateTime 
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Resolving
http://viewpointusa.com/test_ef084432-f2f1-4310-aa04-7a4505b09d29 to a
RDF node
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Resolved
http://viewpointusa.com/test_ef084432-f2f1-4310-aa04-7a4505b09d29 to RDF
nodehttp://viewpointusa.com/test_ef084432-f2f1-4310-aa04-7a4505b09d29
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Resolving
http://www.viewpointusa.com/vss/elements/1.0/uploadedDate to a RDF node
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Resolved
http://www.viewpointusa.com/vss/elements/1.0/uploadedDate to RDF
nodehttp://www.viewpointusa.com/vss/elements/1.0/uploadedDate
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Resolving '
1981-04-26T02:56:00 ' ^^ http://www.w3.org/2001/XMLSchema#dateTime to a
RDF node
2007-01-23 16:45:56,284 DEBUG ItqlInterpreter - Resolved '
1981-04-26T02:56:00 ' ^^ http://www.w3.org/2001/XMLSchema#dateTime to
RDF
node"1981-04-26T02:56:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>
2007-01-23 16:45:56,284 DEBUG StatementStoreResolver - Inserting
statement: [28 29 30] in 27
2007-01-23 16:45:58,377 DEBUG ItqlInterpreter - Completed inserting
statements into rmi://192.168.10.134/server1#datetest





More information about the Mulgara-dev mailing list