Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 72014 invoked from network); 29 Apr 2006 17:52:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Apr 2006 17:52:09 -0000 Received: (qmail 63387 invoked by uid 500); 29 Apr 2006 17:52:06 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 63340 invoked by uid 500); 29 Apr 2006 17:52:06 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 63326 invoked by uid 99); 29 Apr 2006 17:52:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Apr 2006 10:52:06 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Apr 2006 10:52:05 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E479A7142DD for ; Sat, 29 Apr 2006 17:51:38 +0000 (GMT) Message-ID: <18962385.1146333098932.JavaMail.jira@brutus> Date: Sat, 29 Apr 2006 17:51:38 +0000 (GMT+00:00) From: "Kent Tong (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-600) Axis can't perform reflection on updated .class file with hotupdate In-Reply-To: <23221051.1145678646605.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXIS2-600?page=comments#action_12377109 ] Kent Tong commented on AXIS2-600: --------------------------------- This problem seems to have gone away in 1.0 RC4, after I deleted c:\tomcat\webapps\Axis2\WEB-INF\lib\commons-logging-1.0.4.jar. I had to delete it to avoid the ThreadDeath exception as described in Tomcat FAQ (http://tomcat.apache.org/faq/misc.html#threadDeath). > Axis can't perform reflection on updated .class file with hotupdate > ------------------------------------------------------------------- > > Key: AXIS2-600 > URL: http://issues.apache.org/jira/browse/AXIS2-600 > Project: Apache Axis 2.0 (Axis2) > Type: Bug > Components: deployment > Versions: 0.95 > Environment: Win XP, Tomcat 5.5.7. > Reporter: Kent Tong > Assignee: Deepal Jayasinghe > > 1) Enable hotupdate by editing axis2.xml. > 2) Add some code to the service implementation code. For example, from: > public class SimpleService { > public OMElement echo(OMElement e) { > return e; > } > } > To: > public class SimpleService { > public OMElement echo(OMElement e) { > OMAbstractFactory.getOMFactory(); > return e; > } > } > 3) Update the .aar. > 4) Tomcat will throw an exception when trying to redeploy the service (using reflection). The exception may be a EOFException, ZipException or an ArrayIndexOutOfBoundsException. Two sample stack traces are shown below for the first two exceptions. They're all similar. Suggesting the SchemaGenerator may be reading some outdated class data. > - Undeploying Web service test.aar > - Error in schema generating Error looking for paramter names in bytecode: unexpected end of file > java.io.EOFException: Error looking for paramter names in bytecode: unexpected end of file > at org.apache.axis2.wsdl.builder.bytecode.ClassReader.skipFully(ClassReader.java:173) > at org.apache.axis2.wsdl.builder.bytecode.ParamReader.readCode(ParamReader.java:100) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.axis2.wsdl.builder.bytecode.ClassReader.readAttributes(ClassReader.java:368) > at org.apache.axis2.wsdl.builder.bytecode.ParamReader.(ParamReader.java:86) > at org.apache.axis2.wsdl.builder.bytecode.ParamReader.(ParamReader.java:39) > at org.apache.axis2.wsdl.builder.bytecode.ChainedParamReader.(ChainedParamReader.java:33) > at org.apache.axis2.wsdl.builder.bytecode.MethodTable.(MethodTable.java:28) > at org.apache.axis2.wsdl.builder.SchemaGenerator.(SchemaGenerator.java:90) > at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:165) > at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:78) > at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:86) > at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:128) > at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:428) > at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195) > at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:195) > at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:145) > at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:187) > at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(SchedulerTask.java:61) > at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68) > at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) > - Undeploying Web service test.aar > - Error in schema generating ZIP_Read: error reading zip file > java.util.zip.ZipException: ZIP_Read: error reading zip file > at java.util.zip.ZipFile.read(Native Method) > at java.util.zip.ZipFile.access$1500(ZipFile.java:35) > at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:559) > at java.io.FilterInputStream.read(FilterInputStream.java:111) > at java.io.FilterInputStream.read(FilterInputStream.java:90) > at org.apache.axis2.wsdl.builder.bytecode.ClassReader.getBytes(ClassReader.java:74) > at org.apache.axis2.wsdl.builder.bytecode.ParamReader.(ParamReader.java:39) > at org.apache.axis2.wsdl.builder.bytecode.ChainedParamReader.(ChainedParamReader.java:33) > at org.apache.axis2.wsdl.builder.bytecode.MethodTable.(MethodTable.java:28) > at org.apache.axis2.wsdl.builder.SchemaGenerator.(SchemaGenerator.java:90) > at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:165) > at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:78) > at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:86) > at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:128) > at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:428) > at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195) > at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:195) > at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:145) > at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:187) > at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(SchedulerTask.java:61) > at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68) > at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76) > at java.util.TimerThread.mainLoop(Timer.java:512) > at java.util.TimerThread.run(Timer.java:462) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira