You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Angus Salkeld (JIRA)" <ji...@apache.org> on 2011/03/21 21:48:06 UTC
[jira] [Updated] (QPID-3159) qmfgen -2 crashes
[ https://issues.apache.org/jira/browse/QPID-3159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Angus Salkeld updated QPID-3159:
--------------------------------
Attachment: 0001-Fix-crash-in-qmfgen-2.patch
Fix for the bug
> qmfgen -2 crashes
> -----------------
>
> Key: QPID-3159
> URL: https://issues.apache.org/jira/browse/QPID-3159
> Project: Qpid
> Issue Type: Bug
> Components: python tools
> Affects Versions: 0.10
> Environment: Fedora 14
> Reporter: Angus Salkeld
> Fix For: Future
>
> Attachments: 0001-Fix-crash-in-qmfgen-2.patch
>
>
> I have:
> cat schema-1.xml
> <schema package="org.foobar">
> <class name="apple">
> <method name="rott" desc="rott">
> <arg name="speed" dir="I" type="uint32"/>
> <arg name="review" dir="O" type="sstr"/>
> </method>
> </class>
> </schema>
> Then I run "qmf-gen -2 schema-1.xml"
> Traceback (most recent call last):
> File "/usr/bin/qmf-gen", line 80, in <module>
> gen.makeV2PackageFile("V2Package.cpp", package, vars=vargs)
> File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 467, in makeV2PackageFile
> stream = template.expand (schema)
> File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 100, in expand
> self.expandLine (line, stream, object)
> File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 88, in
> expandLine
> self.handler.substHandler (object, stream, tagObject, tagName)
> File "/usr/lib/python2.7/site-packages/qmfgen/generate.py", line 392, in
> substHandler
> eval (call)
> File "<string>", line 1, in <module>
> File "/usr/lib/python2.7/site-packages/qmfgen/schema.py", line
> 1734, in genV2ClassDefines
> if stat.unit:
> UnboundLocalError: local variable 'stat' referenced before assignment
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org