Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introspection with BeanUtils started failing against java.awt.Window [SPR-12434] #17039

Closed
spring-projects-issues opened this issue Nov 13, 2014 · 3 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Sriram Moorthy opened SPR-12434* and commented

Hi,

We have an application with Swing app as client and a web app running on tomcat server providing the application related services. We are in the process of upgrading from spring 2.5 to 4.1.0 version. The application changes are complete and it works fine with in eclipse environment. When we deploy the app on Tomcat server and access the app from the Swing client (downloaded via Java Web Start / JNLP) we were able to login to the application browse few application screens. But on few screens we get the following exception. As soon as the exception appears the window closes on the client side. On the server log there are no issues. This is blocking us from upgrading the application. I read few Jira Issue logs which suggest to upgrade to 3.1.1 but i am moving to more advanced version. Please provide your suggestions.

Server : Linux
Code compiled on java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b04)
Java HotSpot(TM) 64-Bit Server

Client JRE : 1.7.0_51 on Windows 7 platform

Exception Details:
Caused by: java.beans.IntrospectionException: Type mismatch between indexed and non-indexed methods: null - public void java.awt.Window.setLocation(int,int)
at org.springframework.beans.PropertyDescriptorUtils.findIndexedPropertyType(ExtendedBeanInfo.java:596)
at org.springframework.beans.SimpleIndexedPropertyDescriptor.<init>(ExtendedBeanInfo.java:364)
at org.springframework.beans.SimpleIndexedPropertyDescriptor.<init>(ExtendedBeanInfo.java:350)
at org.springframework.beans.ExtendedBeanInfo.<init>(ExtendedBeanInfo.java:99)
at org.springframework.beans.ExtendedBeanInfoFactory.getBeanInfo(ExtendedBeanInfoFactory.java:46)
at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:270)
... 56 more
11 Nov 22:27:22,951 OpenWindow - OpenWindow::ForceShutdownWindow
11 Nov 22:27:22,952 OpenWindow - Primary Task


Affects: 3.2.12, 4.0.8, 4.1 GA

Backported to: 4.0.9, 3.2.13

@spring-projects-issues
Copy link
Collaborator Author

Stéphane Nicoll commented

Please provide more details about your application. You can attach a debugger where that exception is thrown and provide more information about the type that we're trying to match.

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

I can't make this fail on Oracle JDK 8 update 25... but our ExtendedBeanInfo code does look fragile there. I'm making it more defensive, ignoring invalid bean properties analogous to the JavaBeans Introspector itself. (Since java.awt.Window does have an invalid 'location' property with incompatible setter methods which simply isn't meant to follow the JavaBeans rules).

This will be available in the upcoming 4.1.3, 4.0.9 and 3.2.13 snapshots. Please give it an early try and let me know whether it works for you now!

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Sriram Moorthy commented

Thank you, will check with the new release and provide you a feedback.

@spring-projects-issues spring-projects-issues added type: bug A general bug status: backported An issue that has been backported to maintenance branches in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.1.3 milestone Jan 11, 2019
This was referenced Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: backported An issue that has been backported to maintenance branches type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants