[Glass] Some XML packages not loading under 3.4.0

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Tue Nov 7 04:07:27 PST 2017


Hi Monty,

Thanks a lot for taking care of XML support. You know, one of my worst
dependencies in GemStone is XML... why? Because of SIXX (I do need SIXX in
GemStone) I need to stick with a VERY OLD xml implementation...and even
worst, for Pharo, I must use a new one. So it's a real pain.

SIXX can be loaded in GemStone via a Baseline like below and it contains
137 tests.


Metacello new
baseline: 'SIXX';
repository: 'github://glassdb/SIXX:master/repository';
load.


As you seem to be an expert on this topic and you already maintain a lot of
related packages, do you think there is a chance you help us update SIXX to
use the latest parser and writer?


Thanks a lot in advance,


On Tue, Nov 7, 2017 at 6:23 AM, monty via Glass <
glass at lists.gemtalksystems.com> wrote:

>
> Should be fixed now. There's a change in how the GS compiler handles
> literal arrays from 3.3 to 3.4, and I was still on 3.3 and so I didn't see
> this sooner.
>
>
>
> *Sent:* Wednesday, November 01, 2017 at 8:08 AM
> *From:* "Marten Feldtmann via Glass" <glass at lists.gemtalksystems.com>
> *To:* "via Glass" <glass at lists.gemtalksystems.com>
> *Subject:* [Glass] Some XML packages not loading under 3.4.0
> I get a problem when loading the following the package (this works under
> 3.3.6):
>
> GsDeployer deploy: [
>   Metacello new
>     baseline: 'ZincHTTPComponents';
>     repository: 'github://GsDevKit/zinc:gs_master/repository';
>     onLock: [:ex | ex honor ];
>     load: 'Zinc-SSO-OpenID-Core' ].
>
>
>
>
> Error message:
>
>
>
> '
> --transcript--'Loaded -> Collections-BitmapCharacterSet-monty.25 ---
> http://smalltalkhub.com/mc/PharoExtras/BitmapCharacterSet/main --- cache'
> --transcript--'Loaded -> Collections-OrderPreservingDictionary-monty.33
> --- http://smalltalkhub.com/mc/PharoExtras/OrderPreservingDictionary/main
> --- cache'
> --transcript--'Loaded -> Collections-OrderPreservingDictionary-GemstoneCompatibility-monty.1
> --- http://smalltalkhub.com/mc/PharoExtras/OrderPreservingDictionary/main
> --- cache'
> --transcript--'Loaded -> XML-Parser-monty.421 ---
> http://www.smalltalkhub.com/mc/PharoExtras/XMLParser/main --- cache'
> --transcript--'Loaded -> XML-Parser-GemstoneCompatibility-monty.25 ---
> http://www.smalltalkhub.com/mc/PharoExtras/XMLParser/main --- cache'
> --transcript--'Evaluated -> 3.2.7 [ConfigurationOfXMLParser] >>
> initializeClassesForGSBaseline321'
> --transcript--'Loaded -> XML-Writer-Core-monty.73 ---
> http://smalltalkhub.com/mc/PharoExtras/XMLWriter/main --- cache'
> --transcript--'Loaded -> XML-Writer-GemstoneCompatibility-monty.7 ---
> http://smalltalkhub.com/mc/PharoExtras/XMLWriter/main --- cache'
> --transcript--'Loaded -> XML-Writer-Tests-monty.37 ---
> http://smalltalkhub.com/mc/PharoExtras/XMLWriter/main --- cache'
> --transcript--'Loaded -> Collections-Tests-OrderPreservingDictionary-monty.27
> --- http://smalltalkhub.com/mc/PharoExtras/OrderPreservingDictionary/main
> --- cache'
> --transcript--'Warning: The following definitions had errors while
> loading.  Press Proceed to try to load them again (they may work on a
> second pass):
>   XMLParserTest>>testEntityReferenceInternalDeclaration
>   XMLParserTest>>testEntityReferenceUnterminatedInEntityValue
> '
> ERROR 2318 , a UserDefinedError occurred (error 2318), reason:halt,
> Compile error in Class: #'XMLParserTest' method:
> testEntityReferenceInternalDeclaration
>            #('<!DOCTYPE root [
>                            <!ENTITY % name "root">
>                            <!ENTITY % contentModel "EMPTY">
>                            <!ELEMENT %name; %contentModel;>
>                    ]><root/>',
>  *                           ^1
> *******
>                    '<!DOCTYPE root [
>                            <!ENTITY % name "value">
>                            <!ENTITY % name2 "%name;">
>                    ]><root/>'
>                    '<!DOCTYPE root [
>                            <!ENTITY % name "value">
>                            <!ENTITY name2 "%name;">
>                    ]><root/>')
>                    do: [:each |
>                            self
>                                    should: [SAXHandler parse: each]
>                                    raise: XMLWellFormednessException].
>            self
>     (UserDefinedError)
> topaz > exec iferr 1 : where
> ==> 1 UserDefinedError (AbstractException) >> _signalWith: @6 line 25
> 2 UserDefinedError (AbstractException) >> signal @2 line 47
> 3 XMLParserTest class (Object) >> error:        @6 line 7
> 4 XMLParserTest class (Behavior) >> compileMethod:category: @10 line 16
> 5 MCPlatformSupport class >> compile:source:classified:withStamp: @5 line
> 5
> 6 MCMethodDefinition >> load                    @3 line 3
> 7 MCMethodDefinition (MCDefinition) >> loadOver: @2 line 2
> 8 [] in MCPackageLoader >> basicLoad            @67 line 18
> 9 MessageNotUnderstood (AbstractException) >> _executeHandler: @8 line 11
> 10 MessageNotUnderstood (AbstractException) >> _signalWith: @1 line 1
> 11 MessageNotUnderstood (AbstractException) >> signal @2 line 47
> 12 MCMethodDefinition (Object) >> doesNotUnderstand: @10 line 10
> 13 MCMethodDefinition (Object) >> _doesNotUnderstand:args:envId:reason:
> @8 line 13
> 14 [] in MCPackageLoader >> basicLoad            @62 line 14
> 15 ExecBlock0 (ExecBlock) >> on:do:              @3 line 44
> 16 [] in MCPackageLoader >> basicLoad            @57 line 15
> _______________________________________________ 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
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20171107/a934c8f3/attachment-0001.html>


More information about the Glass mailing list