[Glass] xml pull parser for gemstone/glass

James Foster james.foster at gemtalksystems.com
Thu Nov 28 10:45:20 PST 2013


Hi Bob,

GemTools relies on things in $GEMSTONE/bin/extent0.seaside.dbf. If you want to connect to a simple $GEMSTONE/bin/extent0.dbf then you can use Topaz or GBS (with the proper license/keyfile). Also, if you are willing to use Windows you can use Jade [1] as it does not rely on special code being in the database already. You should be able to connect to any GemStone database with it.

James

[1] http://seaside.gemtalksystems.com/jade/Jade.zip


On Nov 28, 2013, at 5:48 PM, bobn at rogers.com wrote:

> I guess there is more going on with a GLASS login from Pharo then a native GS login VW. Running on the same machine as a VW image that logs in correctly, and using the same GS login parameters, the Pharo GemTools login errors out with...
> 
> a ArgumentTypeError occurred (error 2037), reason:classErrConstraintNotClass, The constraint aByteArray( ) was specified incorrectly for subclass creation.  For IdentityBags (NSCs), a constraint must be specified as a class; for all other classes, as an Array of pairs.
> 
> ...feels like I'm playing 'wack-o-mole' with Git, Pharo, GLASS, VW & native GS. I'll probably put this in as a low priority tech support question to GemTalk Systems on Monday, after their Thanksgiving weekend.
> 
> Bob
> 
> 
> On Thursday, November 28, 2013 8:52:46 AM, "bobn at rogers.com" <bobn at rogers.com> wrote:
> BTW: I am trying to get GemTools to work in my Pharo image (Pharo3.0 update: #30598) with the non-GLASS GS, but running...
> 
>   Gofer new
>     squeaksource: 'MetacelloRepository';
>     package: 'ConfigurationOfGemTools';
>     load.
>   (Smalltalk at: #ConfigurationOfGemTools) 
>         perform: #loadLatestVersion.
>   (Smalltalk at: #GemToolsHelpBrowser) open. 
> 
> ...but when #loadLatestVersion is sent I get a syntax error...
> 
> ffiPrintString: aString
> 	"FFITestLibrary ffiPrintString: 'Hello'"
> 	<cdecl: char'>' expected -> * 'ffiPrintString' (char *) module:'SqueakFFIPrims'>
> 	^self externalCallFailed
> 
> ...so now I'm hacking away with one-click GemTools Pharo image 
> 
> Bob
> 
> 
> On Thursday, November 28, 2013 8:15:02 AM, "bobn at rogers.com" <bobn at rogers.com> wrote:
> This is where I expose my ignorance: I don't know how to connect a Pharo image to a non-GLASS GS. 
> It's probably trivial, which makes it all the more embarrassing ;-)
> 
> Perhaps I should have asked a more general question: what are the options for parsing XML on GS and which one is recommended for simple files?
> 
> The XML in this case is my own data export from another GS repository. I could use VW to parse and load the data, but I'd like to makes this all work from a Topaz script. 
> 
> Bob
> 
> 
> On Thursday, November 28, 2013 1:03:57 AM, Johan Brichau <johan at yesplan.be> wrote:
> Bob,
> 
> AFAIK, the code should load in exactly the same way into a non-GLASS gemstone setup as well, providing you have Metacellopreview and Grease loaded.
> 
> But I'm a GLASS user, so I might miss a detail about the non GLASS?
> 
> Johan
> 
> On 27 Nov 2013, at 23:36, bobn at rogers.com wrote:
> 
>> Hello all,
>> I'm working on non-GLASS GS 3.1.0.4 (VW 9.1, GBS 7.6) application and could use XMLPullParser. What is the easiest way to get the code into GS?
>> I used Metacello to load the code into a Pharo image, and I'm sure that I can get the code in GS various ways, but it feels like I'm hacking ... there must be simple way (I've had my head buried in our application framework code; not enough time to learn new things).
>> 
>> Any suggestions?
>> 
>> Thanks,
>> Bob Nemec
>> 
>> 
>> On Sunday, November 24, 2013 3:40:07 AM, Johan Brichau <johan at yesplan.be> wrote:
>> Bruno,
>> 
>> I don’t know of any previously existing version of XMLPullParser for Gemstone/GLASS. This is why I started the github repository [1] for it.
>> It turns out that the code changes for GLASS are very minimal; even so small that the GLASS version will work in Pharo too. 
>> 
>> I now included load instructions in the README of the repo [1].
>> Mind that in [2], Dale gives more info on how to work with Smalltalk and Metacello on Github.
>> 
>> The question is if the small set of tests are representative to say anything about the full workings of the parser. There were some unimplemented messages being sent in the original code base, which gives me the impression it is a work in progress. So, we will have to see wether the GLASS and Pharo versions diverge or merge.
>> 
>> Cheers
>> Johan
>> 
>> [1] https://github.com/glassdb/XMLPullParser
>> [2] https://github.com/dalehenrich/metacello-work/blob/master/docs/GettingStartedWithGitHub.md
>> 
>> On 23 Nov 2013, at 16:10, BrunoBB <smalltalk at adinet.com.uy> wrote:
>> 
>>> Hi,
>>> 
>>> Which is the official Monticello repository for GLASS XMLPullParser ?
>>> 
>>> Or how i install XMLPullParser into GLASS from github ?
>>> 
>>> Regards,
>>> Bruno
>>> 
>>> 
>>> 
>>> --
>>> View this message in context: http://forum.world.st/Glass-xml-pull-parser-for-gemstone-glass-tp4724496p4724549.html
>>> Sent from the GLASS mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Glass mailing list
>>> Glass at lists.gemtalksystems.com
>>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>> 
>> 
>> _______________________________________________
>> Glass mailing list
>> Glass at lists.gemtalksystems.com
>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>> 
>> 
>> _______________________________________________
>> Glass mailing list
>> Glass at lists.gemtalksystems.com
>> http://lists.gemtalksystems.com/mailman/listinfo/glass
> 
> 
> 
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
> 
> 
> 
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
> 
> 
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20131128/7c2879e7/attachment-0001.html>


More information about the Glass mailing list