Ask a Question

ReadyAPI org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid boolean value

SOLVED
678
Regular Contributor

ReadyAPI org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid boolean value

I am getting below error frequently - can any one help here 

 

  ERROR: org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid boolean value 'M'
org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid boolean value 'M'
at org.apache.xmlbeans.impl.values.XmlObjectBase$ValueOutOfRangeValidationContext.invalid(XmlObjectBase.java:314)
at org.apache.xmlbeans.impl.values.JavaBooleanHolder.validateLexical(JavaBooleanHolder.java:48)
at org.apache.xmlbeans.impl.values.JavaBooleanHolder.set_text(JavaBooleanHolder.java:38)
at org.apache.xmlbeans.impl.values.XmlObjectBase.update_from_wscanon_text(XmlObjectBase.java:1166)
at org.apache.xmlbeans.impl.values.XmlObjectBase.check_dated(XmlObjectBase.java:1305)
at org.apache.xmlbeans.impl.values.JavaBooleanHolder.getBooleanValue(JavaBooleanHolder.java:57)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.isShared(WsdlDataSourceTestStep.java:295)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.a(WsdlDataSourceTestStep.java:689)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.prepare(WsdlDataSourceTestStep.java:541)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:158)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:1)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:130)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

18 REPLIES 18
richie
Community Hero

Hey @678,

Without knowing anything about your tests or code, i'd guess looking at the exception you have a boolean type attribute and it appears you're trying to pass it an invalid value of 'M'

Cheers,

richie
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
nmrao
Community Hero

Boolean can take either a true or false as value, and hope you know that. M is not a boolean value.


Regards,
Rao.
678
Regular Contributor

i checked all my groovy scripts where i am not used any where as boolen value = M 

678
Regular Contributor

not only invalid boolean value 'M' 

 

i am getting few other same error like 

 

ERROR: org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid boolean value 'c40b'

ERROR: org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: Invalid boolean value 'rtio'

 

 

richie
Community Hero

Hey @678 

 

The exception response you're getting is pretty specific - you've definitely got some sort of problem where you have a boolean attribute somewhere and it doesn't like the values it's getting.

 

Is the error occurring on specific tests? All tests? Specific Test Steps?  What is the test step that this is occurring on actually doing?  Is it a groovy step? or SOAP/REST request?

 

Those values  'rtio',  'c40b', 'M' are pretty specific - so your test as it executes is reading off those values from somewhere.

 

This should be straight forward to solve if you can provide a bit more info - and the fact that you have multiple instances on this leads me to believe you've got the same mistake in multiple tests.

 

thanks man,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
678
Regular Contributor

not able to find these values on my entire project i have almost more than 500 test cases with Rest Requests and some groovy scripts 

richie
Community Hero

Can you not identify the specific tests  that generate the exception?

 

Have you actually got 500 tests in one test suite or have you ordered them a little?  If you have 500 tests in one test suite well thats a little bit of a problem - you might try tagging to execute only certain tests to help identify where the exception occurs.

 

Other option (which is a little dodgy) - you can view the project .xml file in something with an XML parser (XMLSpy etc.) and do a string search for the relevant values that are failing ('M', etc.) if all your data is persisted within the project file, although this is a lot more of a headache if you have a composite project.

 

If you have separate test data files (so not contained wihtin your project file) - you could do a string search using Windows Explorer to trawl through the contents of your files to find these values that are causing the problem.

 

Either way - its going to take a little work to find the problem - but if you search, you WILL find the problem.  Only other suggestion I've got is you publish you project file so forum members can search it for you.

 

Cheers,

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
678
Regular Contributor

i did string search on my datasource file has one column name has a "displayaccount" 

 

as i see one error like invalid bollean "play" 

 

like that i see "M" fron one column name "ManageAccount" 

 

how to fix this 

richie
Community Hero

Hey 678,

@Nastya_Khovrina. I mistakenly hit the 'Accept as Solution' button on this ticket cos i waa tired, wasn't concentrating and typing the answer out on my phone. Is it possible to undo marking this as solved as this hasn't been as yet. Thanks

@678
I'm not actually understanding from your description what the problem is.
I read your description like you've found a couple of columns in your datasource with invalid values and you want guidance on fixing this. I'm assuming that's not actually correct cos fixing it would just require changimg the values....hence the reasom why i don't understand.

Can you please clarify your last post?

Cheers,

richie
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
cancel
Showing results for 
Search instead for 
Did you mean: