Dear colleagues,

I'm experiencing two type of run-time issues after upgrading my development environment to RHEL 6.2, using Jython 2.7a2 and IBM Java 6 64 bits
 
[claudef@oc2615188332 tmp]$ jython
Jython 2.7a2 (default:9c148a201233, May 24 2012, 15:49:00)
[IBM J9 VM (IBM Corporation)] on java1.6.0

1. Looks like there is issue with this piece of code, more precisely its in the jarray class used in dynamic classloader

   def addURL (self, u):
            DEBUG = 0    
        ##################################
        # Purpose: Call this with u= URL for
        #       the new Class/jar to be loaded
        #################################  
        parameters = jarray.array([URL], javaClass)                                 # <== the error seems to be here
        print ("CFA Debug parameters: ") + str(parameters)
        sysloader =  javaClassLoader.getSystemClassLoader()
        sysclass = URLClassLoader
        method = sysclass.getDeclaredMethod("addURL", parameters)
        ...
 
Runtime trace:
[claudef@oc2615188332 tmp]$ jython testHacker.py
Debug CFA - URL: file:/opt/projectzero/workspace/ERCmail/lib/activation.jar
Debug CFA parameters: array(java.lang.Class, [<type 'java.net.URL'>])
ClassPathHacker Load .jar Erro:getDeclaredMethod(): 2nd arg can't be coerced to java.lang.Class[]

Is there a bypass solution available, or is this a known bug waiting for correction ? Under 2.5 this code worked smooth for Linux and Windows.

2. The Linux console prompt often goes into "echo mode off" after executing a jython program via a console prompt. To enable it again, I need to type a "reset". Is there some setup or fix available?

Thanks in advance for your support.

Regards,
Claude

Claude Falbriard
Certified IT Specialist L2 - Middleware
AMS Hortolāndia / SP - Brazil
phone:    +55 19 9837 0789
cell:         +55 13 8117 3316
e-mail:    claudef@br.ibm.com