[jira] Created: (DIRSERVER-599) Can't compile long schema
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Directory Project > [jira] Created: (DIRSERVER-599) Can't compile long schema




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Created: (DIRSERVER-599) Can't compile long schema  
Endi S. Dewata (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-13-06 10:45 PM

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


Currently the schema plugin converts a schema into Java files, and if the sc
hema gets too long the Java file can't be compiled. Some applications might 
use a huge schema, for instance the default Active Directory schema contains
 more than 1000 attribute t
ypes. 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\clas
ses
[INFO] -----------------------------------------------------------------
-----------
[ERROR] BUILD FAILURE
[INFO] -----------------------------------------------------------------
-----------
[INFO] Compilation failure

c:\svn.apache.org\apacheds-1.0\core\target\generated-sources\org\apache\dire
ctory\server\core\schema
 \bootstrap\ActiveDirectoryAttributeTypeP
roducer.java:[52,16] code too la
rge

A workaround is that the schema can be split into several smaller schemas, t
his will produce smaller Java files which can be compiled just fine. From ex
periments it seems that the compiler will hit the limit when compiling 622 a
ttribute types. This will p
roduce more than 11k lines of  code in the produce() method in the generated
 Java file. A similar limit may also affect the max number of object class d
efinitions.


--
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:42 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register