03-13-06 10:45 PM
[ http://issues.apache.org/jira/brows...237
0221 ]
Alex Karasulu commented on DIRSERVER-599:
-----------------------------------------
Probably a velocity buffer issue. Can you take a look at how this can be ad
justed and get back to me? The fix should be easy.
> Can't compile long schema
> -------------------------
>
> Key: DIRSERVER-599
> URL: http://issues.apache.org/jira/browse/DIRSERVER-599
> Project: Directory ApacheDS
> Type: Bug
> Components: schema-plugin
> Versions: 1.0-RC1
> Reporter: Endi S. Dewata
> Attachments: activeDirectory.schema
>
> Currently the schema plugin converts a schema into Java files, and if the schema g
ets too long the Java file can't be compiled. Some applications might use a huge sch
ema, for instance the default Active Directory schema contains more than 1000 attrib
ute
types. Compiling such schema will produce the following error:
> [INFO] Generating activeDirectory schema.
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> Compiling 14 source files to c:\svn.apache.org\apacheds-1.0\core\target\cl
asses
> [INFO] ---------------------------------------------------------------
-------------
> [ERROR] BUILD FAILURE
> [INFO] ---------------------------------------------------------------
-------------
> [INFO] Compilation failure
> c:\svn.apache.org\apacheds-1.0\core\target\generated-sources\org\apache\di
rectory\server\core\schema
> \bootstrap\ActiveDirectoryAttributeTypeP
roducer.java:[52,16] code too
large
> A workaround is that the schema can be split into several smaller schemas, this wi
ll produce smaller Java files which can be compiled just fine. From experiments it s
eems that the compiler will hit the limit when compiling 622 attribute types. This w
ill
produce more than 11k lines of code in the produce() method in the generate
d Java file. A similar limit may also affect the max number of object class
definitions.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[ Post a follow-up to this message ]
|