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

SimpleXsdSchema not initialized property produces NullPointerException [SWS-1036] #1105

Closed
gregturn opened this issue Sep 11, 2018 · 3 comments
Assignees
Milestone

Comments

@gregturn
Copy link
Contributor

gregturn commented Sep 11, 2018

esfomeado opened SWS-1036 and commented

When creating a SimpleXsdSchema i got an NullPointerException.

 
@Bean
public DefaultWsdl11Definition defaultWsdl11Definition() throws Exception {
SimpleXsdSchema userschema = new SimpleXsdSchema();

...
}

Method threw 'java.lang.NullPointerException' exception. Cannot evaluate org.springframework.xml.xsd.SimpleXsdSchema.toString()


Affects: 3.0.3

Reference URL: spring-projects/spring-boot#14410

Issue Links:

Referenced from: pull request #116, and commits fdf638a, 2780c52

Backported to: 2.4.3

@gregturn
Copy link
Contributor Author

Greg Turnquist commented

Added a more meaningful error message.

Backported to 2.x branch.

@gregturn
Copy link
Contributor Author

esfomeado commented

This really doesn't solve the problem since I have registered as a Spring bean and the problem still occurs.

@gregturn
Copy link
Contributor Author

Greg Turnquist commented

Last fragment of code I showed you simply executing toString against a newly minted instance of SimpleXsdSchema. If you have made changes, please show me so we can deduce where the problem arises from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant