<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Getting error while creating test set (Thread)</title><description>&#xD;
&#xD;
&#xD;
Hi,&#xD;
&#xD;
    I am trying to create a testset using soap web services. I am using 5.0 version of soap services. Here goes the code which I am using to create the testset.            RemoteTestSet testSet = new RemoteTestSet();         testSet.setTestSetFolderId(316);       testSet.setProjectId(11);      testSet.setName("Test Set 26112016");      testSet.setTestSetFolderId(9255);      try {        testSet = spira.testSet_Create(testSet);        System.out.println("New TestSet created " + testSet.getTestSetId());      }      catch (RemoteException e) {        e.printStackTrace();      }      I am getting an exception saying "Nullable object must have a value."I am pasting the full stack trace       AxisFault   faultCode: {http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher}InternalServiceFault   faultSubcode:    faultString: Nullable object must have a value.   faultActor:    faultNode:    faultDetail:    	 {http://schemas.datacontract.org/2004/07/System.ServiceModel}ExceptionDetail:   Nullable object must have a value.     at System.Nullable`1.get_Value()     at Inflectra.SpiraTest.Web.Services.v5_0.SoapService.TestSet_Create(RemoteTestSet remoteTestSet)     at SyncInvokeTestSet_Create(Object , Object[] , Object[] )     at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[] outputs)     at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc rpc)     at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc rpc)     at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc rpc)     at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)  System.InvalidOperationException      Nullable object must have a value.   	 at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)   	 at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)   	 at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)   	 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)   	 at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)   	 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)   	 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)   	 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)   	 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)   	 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)   	 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)   	 at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)   	 at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)   	 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)   	 at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)   	 at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)   	 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)   	 at org.apache.axis.client.Call.invokeEngine(Call.java:2784)   	 at org.apache.axis.client.Call.invoke(Call.java:2767)   	 at org.apache.axis.client.Call.invoke(Call.java:2443)   	 at org.apache.axis.client.Call.invoke(Call.java:2366)   	 at org.apache.axis.client.Call.invoke(Call.java:1812)   	 at com.inflectra.www.SpiraTest.Services.v5_0.BasicHttpBinding_ISoapServiceStub.testSet_Create(BasicHttpBinding_ISoapServiceStub.java:12702)   	 at com.transcendsys.tools.ant.spira.TestArtifactRetrieval.testSet_Creation(TestArtifactRetrieval.java:129)   	 at com.transcendsys.tools.ant.spira.TestArtifactRetrieval.main(TestArtifactRetrieval.java:143)      Any help would be highly appreciated.      Thanks,  Abhijit    &#xD;
&#xD;
&#xD;
&#xD;
</description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spiratest/issues-questions/1581.aspx</link><item><guid isPermaLink="false">threadId=1581</guid><author>Abhijit Banerjee (abanerjee@onenetwork.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">test sets</category><category domain="http://www.inflectra.com/kronodesk/thread/tag"> suspect</category><title>Getting error while creating test set</title><description>&#xD;
&#xD;
&#xD;
Hi,&#xD;
&#xD;
    I am trying to create a testset using soap web services. I am using 5.0 version of soap services. Here goes the code which I am using to create the testset.            RemoteTestSet testSet = new RemoteTestSet();         testSet.setTestSetFolderId(316);       testSet.setProjectId(11);      testSet.setName("Test Set 26112016");      testSet.setTestSetFolderId(9255);      try {        testSet = spira.testSet_Create(testSet);        System.out.println("New TestSet created " + testSet.getTestSetId());      }      catch (RemoteException e) {        e.printStackTrace();      }      I am getting an exception saying "Nullable object must have a value."I am pasting the full stack trace       AxisFault   faultCode: {http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher}InternalServiceFault   faultSubcode:    faultString: Nullable object must have a value.   faultActor:    faultNode:    faultDetail:    	 {http://schemas.datacontract.org/2004/07/System.ServiceModel}ExceptionDetail:   Nullable object must have a value.     at System.Nullable`1.get_Value()     at Inflectra.SpiraTest.Web.Services.v5_0.SoapService.TestSet_Create(RemoteTestSet remoteTestSet)     at SyncInvokeTestSet_Create(Object , Object[] , Object[] )     at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[] outputs)     at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc rpc)     at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc rpc)     at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc rpc)     at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)  System.InvalidOperationException      Nullable object must have a value.   	 at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)   	 at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)   	 at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)   	 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)   	 at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)   	 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)   	 at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)   	 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)   	 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)   	 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)   	 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)   	 at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)   	 at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)   	 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)   	 at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)   	 at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)   	 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)   	 at org.apache.axis.client.Call.invokeEngine(Call.java:2784)   	 at org.apache.axis.client.Call.invoke(Call.java:2767)   	 at org.apache.axis.client.Call.invoke(Call.java:2443)   	 at org.apache.axis.client.Call.invoke(Call.java:2366)   	 at org.apache.axis.client.Call.invoke(Call.java:1812)   	 at com.inflectra.www.SpiraTest.Services.v5_0.BasicHttpBinding_ISoapServiceStub.testSet_Create(BasicHttpBinding_ISoapServiceStub.java:12702)   	 at com.transcendsys.tools.ant.spira.TestArtifactRetrieval.testSet_Creation(TestArtifactRetrieval.java:129)   	 at com.transcendsys.tools.ant.spira.TestArtifactRetrieval.main(TestArtifactRetrieval.java:143)      Any help would be highly appreciated.      Thanks,  Abhijit    &#xD;
&#xD;
&#xD;
&#xD;
</description><pubDate>Sat, 26 Nov 2016 20:38:11 -0500</pubDate><a10:updated>2016-12-01T08:46:57-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1581.aspx</link></item><item><guid isPermaLink="false">messageId=2829</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>&#xD;
Hi Abhijit  You most likely are missing some of the required fields, I believe you need to also ad</title><description>&#xD;
Hi Abhijit  You most likely are missing some of the required fields, I believe you need to also add:   TestSetStatusId = (1 = Not Started)   TestRunTypeId = (1 = Manual, 2 = Automated)   Regards  Adam&#xD;
&#xD;
</description><pubDate>Tue, 29 Nov 2016 14:58:18 -0500</pubDate><a10:updated>2016-11-29T14:58:18-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1581.aspx#reply2829</link></item><item><guid isPermaLink="false">messageId=2833</guid><author>Abhijit Banerjee (abanerjee@onenetwork.com)</author><title>&#xD;
Thanks Adam.It's working fine now.&#xD;
&#xD;
</title><description>&#xD;
Thanks Adam.It's working fine now.&#xD;
&#xD;
</description><pubDate>Thu, 01 Dec 2016 08:46:57 -0500</pubDate><a10:updated>2016-12-01T08:46:57-05:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1581.aspx#reply2833</link></item></channel></rss>