You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2011/09/27 17:40:41 UTC

DO NOT REPLY [Bug 51899] New: java.lang.Error: Unresolved compilation problem when using a large file

https://issues.apache.org/bugzilla/show_bug.cgi?id=51899

             Bug #: 51899
           Summary: java.lang.Error: Unresolved compilation problem when
                    using a large file
           Product: Tomcat 7
           Version: 7.0.21
          Platform: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: brouleau21@gmail.com
    Classification: Unclassified


Created attachment 27612
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27612
original broken jsp and its generated _jsp.java and two (incomplete) working
versions (.jsp and _jsp.java) all in a zip file

I have this file (see included file) that generates the exception:
java.lang.Error: Unresolved compilation problem without any further
informtaion.

The original jsp file is 144,158 bytes.
The generated _jsp.java file is 259,684 bytes.

If I remove one (fairly small) section, then the file loads without any
problem. Putting it back and removing another part of the file also works fine.
I have included the original broken jsp and its generated _jsp.java and two
(incomplete) working versions (.jsp and _jsp.java) all in a zip file

That happens on:
Tomcat Version: Apache Tomcat/7.0.21
JVM Version: 1.6.0_27-b07
OS Name: Windows Server 2008 v6.0 / amd64

The (almost) exact same files works fine on:
Tomcat Version: Apache Tomcat/6.0.29
JVM Version: 1.6.0_21
OS Name: Windows Server 2008 R2 (6.1) (64 bits)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51899] java.lang.Error: Unresolved compilation problem when using a large file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51899

--- Comment #3 from Christopher Schultz <ch...@christopherschultz.net> 2011-09-27 18:13:17 UTC ---
Ant is not a compiler. You must have used a compiler that scrapes-by and missed
the per-method bytecode limitation. Tomcat uses the Eclipse compiler by default
which may have other kinds of optimizations (or not) available that result in
more bytecode.

You can configure Tomcat to use the compiler of your choice (see the
documentation in conf/web.xml for JspServlet). If you find a compiler that can
compile your huge JSP, go ahead and use that instead of Eclipse.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51899] java.lang.Error: Unresolved compilation problem when using a large file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51899

brouleau <br...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #2 from brouleau <br...@gmail.com> 2011-09-27 17:09:54 UTC ---
I toke the generated _jsp.java and compiled it successfully using Ant 1.8.2, so
the java size limitation is NOT an issue here.

I did put the files as examples and you would require a good part of my project
in order to compile this successfully. Sorry for that, but that is the only
example I had.

Thanks

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51899] java.lang.Error: Unresolved compilation problem when using a large file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51899

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Konstantin Kolinko <kn...@gmail.com> 2011-09-27 18:24:05 UTC ---
(In reply to comment #3)
> You can configure Tomcat to use the compiler of your choice ..

Or can configure JspServlet to generate a different java file.

You may try to set mappedfile init parameter to the value of false.

http://tomcat.apache.org/tomcat-7.0-doc/jasper-howto.html

While you may have more luck with some combination of options, the Java
platform limits (or actually class file format limits) are always there and
nothing can be done with that.


Re-closing as INVALID.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 51899] java.lang.Error: Unresolved compilation problem when using a large file

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51899

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
         OS/Version|                            |All

--- Comment #1 from Mark Thomas <ma...@apache.org> 2011-09-27 17:06:17 UTC ---
The JSP is too large. There are limits imposed by the Java Language
specification that I suspect this JSP is breaking. I tried to get the Java file
to compile to confirm this but there are just way too many compilation errors
to fix.

The JSP generation has changed slightly between 6.0.x and 7.0.x and is probably
what has sent this JSP over the edge.

There are various ways to reduce the size of the generated file. The users
mailing list can provide advice on that if required.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org