Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash on CDISC ODM 1.3.1 schema #6

Open
thyresias opened this issue Jul 22, 2011 · 1 comment
Open

crash on CDISC ODM 1.3.1 schema #6

thyresias opened this issue Jul 22, 2011 · 1 comment

Comments

@thyresias
Copy link

require 'rxsd'
xsd_uri = 'http://evs.nci.nih.gov/ftp1/CDISC/schema/foundation/ODM1-3-1-foundation.xsd'
schema = RXSD::Parser.parse_xsd :uri => xsd_uri
classes = schema.to :ruby_classes

undefined method to_class_builder' for "xs:anyURI":String (NoMethodError) C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/extension.rb:88:into_class_builder'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/simple_content.rb:68:in to_class_builder' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/complex_type.rb:81:into_class_builder'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/element.rb:131:in to_class_builder' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/element.rb:127:into_class_builder'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:71:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:70:ineach'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:70:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/group.rb:82:into_class_builders'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/group.rb:78:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/choice.rb:74:into_class_builders'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/choice.rb:73:in each' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/choice.rb:73:into_class_builders'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:79:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:78:ineach'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:78:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/complex_type.rb:112:into_class_builder'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/element.rb:131:in to_class_builder' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/element.rb:127:into_class_builder'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:71:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:70:ineach'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:70:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/complex_type.rb:112:into_class_builder'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/element.rb:131:in to_class_builder' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/element.rb:127:into_class_builder'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:71:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:70:ineach'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/sequence.rb:70:in to_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/complex_type.rb:112:into_class_builder'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/element.rb:140:in to_class_builder' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/schema.rb:105:into_class_builders'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/schema.rb:104:in each' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/xsd/schema.rb:104:into_class_builders'
C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/translator.rb:44:in all_class_builders' C:/ruby/lib/ruby/gems/1.8/gems/rxsd-0.5.1/lib/rxsd/translator.rb:54:into'

@vigneshwaranr
Copy link

Similar error for me too:

/var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/xsd/extension.rb:88:in `to_class_builder': undefined method `to_class_builder' for "tns:BaseRequest":String (NoMethodError)
from /var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/xsd/complex_content.rb:69:in `to_class_builder'
from /var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/xsd/complex_type.rb:83:in `to_class_builder'
from /var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/xsd/element.rb:135:in `to_class_builder'
from /var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/xsd/schema.rb:105:in `to_class_builders'
from /var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/xsd/schema.rb:104:in `each'
from /var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/xsd/schema.rb:104:in `to_class_builders'
from /var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/translator.rb:44:in `all_class_builders'
from /var/lib/gems/1.8/gems/rxsd-0.5.2/lib/rxsd/translator.rb:54:in `to'
from tst.rb:9

Please help me fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants