|
[
Permlink
| « Hide
]
Endi S. Dewata added a comment - 14/Mar/06 03:12 AM
Attached is a schema containing 622 attribute type definitions.
Endi S. Dewata made changes - 14/Mar/06 03:12 AM
Probably a velocity buffer issue. Can you take a look at how this can be adjusted and get back to me? The fix should be easy.
Hi Alex, I don't think this is a Velocity issue because at this point the Java files have been successfully generated by Velocity. The error happens during compilation, it seems javac can't compile a method with more than 11k lines of code. One possible solution is by changing the template to split the produce() method after certain number of attribute types or object classes. Another way is by storing the parsed schema data somewhere else and use a loop to read it. A better way might be the schema parsing should be done in the runtime instead of compile time.
I ran into this issue to for an external schema I imported into the AD build. The problem is the 64k bytecode limit per method:
http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html As noted on the dev list I use runtime schema conversion when talking to remote live LDAP systems (acting as a proxy) but in this case I only had a .schema file and haven't adapted my code to work off a .schema file rather then LDAP schema search results.
Alex Karasulu made changes - 27/Aug/06 02:54 PM
won't fix: we have a workaround (break up large schemas). This is fine temporarily until we revamp the schema subsystem in 1.1.
Alex Karasulu made changes - 27/Aug/06 02:54 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||