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

List:       dart
Subject:    RE: [Dart] Dart Server Creation and MySQL
From:       "Blezek, Daniel J (GE, Research)" <blezek () crd ! ge ! com>
Date:       2007-06-20 17:53:39
Message-ID: 86EDF07DE71B444F9B0FA7F8EC8C12D50162C0C0 () CINMLVEM12 ! e2k ! ad ! ge ! com
[Download RAW message or body]

Hi Ben,
 
  You've come to the right place.  This is a huge oversight on our
part...  Dart uses two database schemas, one for the server which holds
a smattering of information like usernames/email/passwords and one for
each project.  The MySQL support was apparently never tested on the
Server database.  The most simple thing for you to do would be to use
Derby for the Server database, and MySQL for the project.  This has been
tested, though not extensively.  I've fixed the problem you describe
below, and it's likely enough to warrent a 1.0.10 release.  If you are
building from scratch, just update and rebuild, otherwise I'll try to
get a 1.0.10 release out in 2 weeks or so.
 
Thanks,
-dan
 


________________________________

	From: dart-bounces+blezek=crd.ge.com@public.kitware.com
[mailto:dart-bounces+blezek=crd.ge.com@public.kitware.com] On Behalf Of
Ben Snider
	Sent: Wednesday, June 20, 2007 1:06 PM
	To: dart@public.kitware.com
	Subject: [Dart] Dart Server Creation and MySQL 
	
	

	So I'm using Dart 1.0.9 with Java 1.6, Centos 5, and MySQL 5 and
following the instructions in the manual I try to create a Dart server
with a MySQL database.
	
	java -jar $DART/DartServer.jar --createserver TestServer -d
mysql
	
	I then get the following, snipped for the relevant parts. I
don't know where to go from here and I have found next to nothing in
terms of Googling.
	
	[main] INFO dart.DartServer  - Starting DartServer version
1.0.8: $Id: Version.java 410 2006-12-19 21:22:04Z blezek $ db version
1.2
	[main] INFO dart.DartServer  - JVM java.class.version: 50.0
	[main] INFO dart.DartServer  - JVM java.vendor: Sun Microsystems
Inc.
	[main] INFO dart.DartServer  - JVM java.vendor.url:
http://java.sun.com/ <http://java.sun.com/> 
	[main] INFO dart.DartServer  - JVM java.version: 1.6.0_01
	[main] INFO dart.DartServer  - JVM os.arch: i386
	[main] INFO dart.DartServer  - JVM os.name: Linux
	[main] INFO dart.DartServer  - JVM os.version: 2.6.18-8.el5
	[main] INFO dart.DartServer  - Initialized log4j from
jar:file:/usr/local/dart/DartServer.jar!/dart/Resources/Server/log4j.pro
perties
<file:/usr/local/dart/DartServer.jar!/dart/Resources/Server/log4j.proper
ties> 
	[main] INFO dart.server.Server  - Creating new Server:
TestServer TestServer mysql
	[main] ERROR freemarker.runtime  -
	Expression now is undefined on line 6, column 35 in
dart/Resources/Server/ServerSchema.sql.
	The problematic instruction:
	----------
	==> ${now} [on line 6, column 33 in
dart/Resources/Server/ServerSchema.sql]
	----------
	
	Java backtrace for programmers:
	----------
	freemarker.core.InvalidReferenceException: Expression now is
undefined on line 6, column 35 in
dart/Resources/Server/ServerSchema.sql.
	        at
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
	        at
freemarker.core.Expression.getStringValue(Expression.java:118)
	        at
freemarker.core.Expression.getStringValue(Expression.java:93)
	        at
freemarker.core.DollarVariable.accept(DollarVariable.java:76)
	        at
freemarker.core.Environment.visit(Environment.java:196)
	        at
freemarker.core.MixedContent.accept(MixedContent.java:92)
	        at
freemarker.core.Environment.visit(Environment.java:196)
	        at
freemarker.core.Environment.process(Environment.java:176)
	        at
freemarker.template.Template.process(Template.java:231)
	        at dart.server.Server.Server.java:550)
	        at dart.server.Server.createServer(Server.java:516)
	        at dart.DartServer.main(DartServer.java:103)
	[main] ERROR dart.server.Server  - Faild to generate schema
	


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Dart Server Creation and MySQL</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial 
color=#0000ff size=2>Hi Ben,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial 
color=#0000ff size=2>&nbsp; You've come to the right place.&nbsp; This is a huge 
oversight on our part...&nbsp; Dart uses two database schemas, one for the 
server which holds a smattering of information like usernames/email/passwords 
and one for each project.&nbsp; The MySQL support was apparently never tested on 
the Server database.&nbsp; The most simple thing for you to do would be to use 
Derby for the Server database, and MySQL for the project.&nbsp; This has been 
tested, though not extensively.&nbsp; I've fixed the problem you describe below, 
and it's likely enough to warrent a 1.0.10 release.&nbsp; If you are building 
from scratch, just update and rebuild, otherwise I'll try to get a 1.0.10 
release out in 2 weeks or so.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial 
color=#0000ff size=2>-dan</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=750391617-20062007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> 
  dart-bounces+blezek=crd.ge.com@public.kitware.com 
  [mailto:dart-bounces+blezek=crd.ge.com@public.kitware.com] <B>On Behalf Of 
  </B>Ben Snider<BR><B>Sent:</B> Wednesday, June 20, 2007 1:06 PM<BR><B>To:</B> 
  dart@public.kitware.com<BR><B>Subject:</B> [Dart] Dart Server Creation and 
  MySQL <BR></FONT><BR></DIV>
  <DIV></DIV><!-- Converted from text/plain format -->
  <P><FONT size=2>So I'm using Dart 1.0.9 with Java 1.6, Centos 5, and MySQL 5 
  and following the instructions in the manual I try to create a Dart server 
  with a MySQL database.<BR><BR>java -jar $DART/DartServer.jar --createserver 
  TestServer -d mysql<BR><BR>I then get the following, snipped for the relevant 
  parts. I don't know where to go from here and I have found next to nothing in 
  terms of Googling.<BR><BR>[main] INFO dart.DartServer&nbsp; - Starting 
  DartServer version 1.0.8: $Id: Version.java 410 2006-12-19 21:22:04Z blezek $ 
  db version 1.2<BR>[main] INFO dart.DartServer&nbsp; - JVM java.class.version: 
  50.0<BR>[main] INFO dart.DartServer&nbsp; - JVM java.vendor: Sun Microsystems 
  Inc.<BR>[main] INFO dart.DartServer&nbsp; - JVM java.vendor.url: </FONT><A 
  href="http://java.sun.com/"><FONT 
  size=2>http://java.sun.com/</FONT></A><BR><FONT size=2>[main] INFO 
  dart.DartServer&nbsp; - JVM java.version: 1.6.0_01<BR>[main] INFO 
  dart.DartServer&nbsp; - JVM os.arch: i386<BR>[main] INFO dart.DartServer&nbsp; 
  - JVM os.name: Linux<BR>[main] INFO dart.DartServer&nbsp; - JVM os.version: 
  2.6.18-8.el5<BR>[main] INFO dart.DartServer&nbsp; - Initialized log4j from 
  jar:</FONT><A 
  href="file:/usr/local/dart/DartServer.jar!/dart/Resources/Server/log4j.properties"><FONT \
  size=2>file:/usr/local/dart/DartServer.jar!/dart/Resources/Server/log4j.properties</FONT></A><BR><FONT \
  size=2>[main] INFO dart.server.Server&nbsp; - Creating new Server: TestServer 
  TestServer mysql<BR>[main] ERROR freemarker.runtime&nbsp; -<BR>Expression now 
  is undefined on line 6, column 35 in 
  dart/Resources/Server/ServerSchema.sql.<BR>The problematic 
  instruction:<BR>----------<BR>==&gt; ${now} [on line 6, column 33 in 
  dart/Resources/Server/ServerSchema.sql]<BR>----------<BR><BR>Java backtrace 
  for programmers:<BR>----------<BR>freemarker.core.InvalidReferenceException: 
  Expression now is undefined on line 6, column 35 in 
  dart/Resources/Server/ServerSchema.sql.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.core.Expression.getStringValue(Expression.java:118)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.core.Expression.getStringValue(Expression.java:93)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.core.DollarVariable.accept(DollarVariable.java:76)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.core.Environment.visit(Environment.java:196)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.core.MixedContent.accept(MixedContent.java:92)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.core.Environment.visit(Environment.java:196)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.core.Environment.process(Environment.java:176)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  freemarker.template.Template.process(Template.java:231)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at 
  dart.server.Server.Server.java:550)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  at 
  dart.server.Server.createServer(Server.java:516)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
  at dart.DartServer.main(DartServer.java:103)<BR>[main] ERROR 
  dart.server.Server&nbsp; - Faild to generate 
schema<BR></FONT></P></BLOCKQUOTE></BODY></HTML>



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

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