Re: output to BMP possible?

Jorg Heymans <[email protected]> Thu, 20 Nov 2003 11:01:47 +0100
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
tnx.. getting there :)

Now it's bumming out a few lines further:

BarcodeGenerator gen = 
BarcodeUtil.getInstance().createBarcodeGenerator(cfg, logger);


In barcodeutil :
createBarcodeGenerator(Configuration cfg, 
    Logger logger,BarcodeClassResolver classResolver)

...
            //First, check Configuration directly
             String type = cfg.getName();
             try {
                 cl = classResolver.resolve(type);
             } catch (ClassNotFoundException cnfe) {
                 cl = null;
             }

The type is null here. Drilling into the configuration object,  i can 
see that my data is present (below)

<?xml version="1.0" encoding="UTF-8"?>

   <barcode>
     <intl2of5>
       <height>20pt</height>
       <module-width>0.25mm</module-width>
       <wide-factor>3.5</wide-factor>
       <quiet-zone enabled="true">2mw</quiet-zone>
       <checksum>ignore</checksum>
       <human-readable>none</human-readable>
     </intl2of5>
   </barcode>


Maybe i need to substitute a few more libs?


Jeremias Maerki wrote:

> On 20.11.2003 10:04:08 Jorg Heymans wrote:
> 
>>Digging further, it seems that somewhere the servlet container gets a 
>>nosuchmethoderror on 
>>org.apache.avalon.framework.configuration.DefaultConfiguration.<init>(Ljava/lang/String;)V
>>
>>I'm using avalon-framework-20020627.jar, default with cocoon 2.0.4.
> 
> 
> Yup, that's too old. Please replace the avalon-framework.jar with the
> one from Krysalis Barcode. Cocoon will work with that as it's fully
> backwards-compatible.
> 
> 
>>It would be great if this would work, we could integrate it as a 
>>standard component (or block) in cocoon.
>>
>>Any thoughts?
>>
>>I did not get any further with the saxconfiguration. Doing something like
>>SAXConfigurationHandler ch = new SAXConfigurationHandler();
>>ch.setDocumentLocator(this.locator);
> 
> 
> Right here, you have to send the SAX events first so the Configuration
> is generated in the first place. SAXConfigurationHandler is a
> ContentHandler.
> 
> 
>>Configuration c = ch.getConfiguration();
>>
>>results in a nullpointerexception, the configuration returned is null.
> 
> 
> I hope this helps.
> 
> Jeremias Maerki
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> krysalis-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/krysalis-users
> 



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/