Inflectra Customer Forums: Getting error while creating test set (Thread) Hi, 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 en-US(C) Copyright 2006-2024 Inflectra Corporation.support@inflectra.com/Computers/Software/Project_Management//Computers/Software/Quality_Assurance/KronoDesksupport@inflectra.comhttp://www.inflectra.com/kronodesk/forums/threads120/Support/Forum/spiratest/issues-questions/1581.aspxthreadId=1581Abhijit Banerjee (abanerjee@onenetwork.com)Getting error while creating test set Hi, 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 Sat, 26 Nov 2016 20:38:11 -05002016-12-01T08:46:57-05:00/Support/Forum/spiratest/issues-questions/1581.aspxmessageId=2829David J (support1@inflectra.com) Hi Abhijit You most likely are missing some of the required fields, I believe you need to also ad 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 Tue, 29 Nov 2016 14:58:18 -05002016-11-29T14:58:18-05:00/Support/Forum/spiratest/issues-questions/1581.aspx#reply2829messageId=2833Abhijit Banerjee (abanerjee@onenetwork.com) Thanks Adam.It's working fine now. Thanks Adam.It's working fine now. Thu, 01 Dec 2016 08:46:57 -05002016-12-01T08:46:57-05:00/Support/Forum/spiratest/issues-questions/1581.aspx#reply2833