Video Screencast Help

Unable to create the new product. Object reference not set to an instance of an object

Created: 24 Oct 2012 • Updated: 24 Oct 2012 | 4 comments
Robin W's picture

Hello,

I've got a problem when I want to save a new managed software product. The following message is displayed in the console: "There was a problem saving the software product. check the Altiris logs for further details."

 Info from the log file:

source="Altiris.NS.Services.CoreServices.SoftwareService.SaveNewSoftwareProduct"
module="w3wp.exe"
process="w3wp"
pid="2576"
thread="173"
tickCount="2350578"

Unable to create the new product (Ofifce Viewer 2010)

( Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
   at Altiris.NS.Services.CoreServices.SoftwareService.SaveNewSoftwareProduct(SoftwareComponent product, FaultDetail& fault) )
( Exception logged from:
   at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
   at Altiris.NS.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception)
   at Altiris.NS.Services.CoreServices.SoftwareService.SaveNewSoftwareProduct(SoftwareComponent product, FaultDetail& fault)
   at SyncInvokeSaveNewSoftwareProduct(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.ProcessMessage4(MessageRpc& rpc)
   at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
   at System.ServiceModel.Dispatcher.ChannelHandler.DispatchAndReleasePump(RequestContext request, Boolean cleanThread, OperationContext currentOperationContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.HandleRequest(RequestContext request, OperationContext currentOperationContext)
   at System.ServiceModel.Dispatcher.ChannelHandler.AsyncMessagePump(IAsyncResult result)
   at System.ServiceModel.Diagnostics.Utility.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)
   at System.ServiceModel.AsyncResult.Complete(Boolean completedSynchronously)
   at System.ServiceModel.Channels.InputQueue`1.AsyncQueueReader.Set(Item item)
   at System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(Item item, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.InputQueue`1.EnqueueAndDispatch(T item, ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.InputQueueChannel`1.EnqueueAndDispatch(TDisposable item, ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, ItemDequeuedCallback dequeuedCallback, Boolean canDispatchOnThisThread)
   at System.ServiceModel.Channels.SingletonChannelAcceptor`3.Enqueue(QueueItemType item, ItemDequeuedCallback dequeuedCallback)
   at System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context, ItemDequeuedCallback callback)
   at System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state)
   at System.ServiceModel.PartialTrustHelpers.PartialTrustInvoke(ContextCallback callback, Object state)
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequestWithFlow(Object state)
   at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke2()
   at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.WorkItem.Invoke()
   at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ProcessCallbacks()
   at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.CompletionCallback(Object state)
   at System.ServiceModel.Channels.IOThreadScheduler.CriticalHelper.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
   at System.ServiceModel.Diagnostics.Utility.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
   at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
 )
( Extra Details:  Type=System.NullReferenceException Src=Altiris.NS.Services.CoreServices )]]></event>

Does anyone had the same problem?

Comments 4 CommentsJump to latest comment

andykn101's picture

Make sure the name isn't the same as one of the pre-defined Products, Go to Manage > Software Catalog and select "Include pre-defined software  products" at the bottom of the "Managed software products" pane on the right to get the full list.

Also make sure you have put in a Manufacturer and version in the top boxes of the product, I don't know if they're compulsory but it's worth a try.

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

Robin W's picture

Thank you for your answer but I already found an article about the duplicate software products, however this seems not to be the issue : http://www.symantec.com/business/support/index?page=content&id=TECH186711

When I open a predefined managed software product and click the save button, this error message is also displayed. All required fields are definied.

Edit: repairing the software management solution did not solve the problem.

andykn101's picture

Rights? Try logging in as the Altiris Service account ("Application Identity")

Authorised Symantec Consultant (ASC) with Endpoint Management Limited, an Authorised Symantec Delivery Provider based in the UK.

Connect Etiquette: Please "Mark as Solution" posts that fix your problem.

Robin W's picture

Hello,

Same problem with the application identity. What I have noticed so far:

From the moment that I save the software product and receive the error message, the creation of the software product is cancelled. As soon as the scheduled task "NS.Nightly schedule to associate Software component to software product" has been executed the product is displayed under the managed software (strange but true?!).

When I open a new managed software product and review the identify inventory tab, the filter criteria are blank. If multiple software components should have been associated with the product, only one software component is displayed as a result but the filter criteria are not defined anymore.

Seems to be something is wrong or missing during the association between a managed software product and the software components/releases. (I refer to the error in the log file)

Question: Is it save to completely uninstall the software management solution and reinstall it all over again? Otherwise I'll have to open a new case with Symantec.

Regards,

Robin