[SWS-1036] SimpleXsdSchema not initialized property produces NullPointerException Created: 11/Sep/18  Updated: 12/Sep/18  Resolved: 11/Sep/18

Status: Closed
Project: Spring Web Services
Component/s: XML
Affects Version/s: 3.0.3
Fix Version/s: 2.4.3, 3.0.4

Type: Bug Priority: Minor
Reporter: esfomeado Assignee: Greg Turnquist
Resolution: Complete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SWS-1037 Make SimpleXsdSchema give a more prod... Closed
Reference URL: https://github.com/spring-projects/spring-boot/issues/14410
Pull Request URL: https://github.com/spring-projects/spring-ws/pull/116

 Description   

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()



 Comments   
Comment by Greg Turnquist [ 11/Sep/18 ]

Added a more meaningful error message.

Backported to 2.x branch.

Comment by esfomeado [ 12/Sep/18 ]

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

Comment by Greg Turnquist [ 12/Sep/18 ]

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.

Generated at Tue Feb 25 18:44:20 UTC 2020 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.