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
Closed
Assignees
Milestone

Comments

@gregturn
Copy link
Member

@gregturn 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:

  • #1106 Make SimpleXsdSchema give a more productive error message
    ("is duplicated by")

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

Backported to: 2.4.3

@gregturn
Copy link
Member Author

@gregturn gregturn commented Sep 11, 2018

Greg Turnquist commented

Added a more meaningful error message.

Backported to 2.x branch.

@gregturn
Copy link
Member Author

@gregturn gregturn commented Sep 12, 2018

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
Member Author

@gregturn gregturn commented Sep 12, 2018

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant