Skip to main content
12-Amethyst
August 17, 2023
Solved

Windchill startup issue

  • August 17, 2023
  • 1 reply
  • 1970 views
I am using Windchill PDMLink Release 11.2 and Datecode with CPS 11.2.1.8

Users unable to perform any operation in windchill. Search, create objects etc. Error in MS is tandardRequestDispatcher.dispatchRequest :: Runtime failure(s)
java.lang.NullPointerException
at wt.access.AccessSelector.getQuerySpec(AccessSelector.java:346)
.
Also if we stop a MS process, it is unable to come up with error
NullPointerException
    Best answer by paj1

    Actions.xml files are fine. A clean restart of the application worked and application is now up and running.

    However we still dont know the RCA.
    Any idea what would have caused this temporary issue?

    1 reply

    HelesicPetr
    22-Sapphire II
    22-Sapphire II
    August 18, 2023

    Hi @paj1

     

    can you provide full error from log? with the rows around?  

     

    If you search for the error on the PTC knowlage base you could have found following article with your error

     

    CS381889 - Post upgrade unable to start the Windchill PDMLink 12.1

     

    PetrH

    paj112-AmethystAuthor
    12-Amethyst
    August 18, 2023

    Hi @HelesicPetr ,

     

    Error is MS logs is.

    java.lang.NullPointerException
    at wt.access.AccessSelector.getQuerySpec(AccessSelector.java:346)
    at wt.access.AccessSelector.getQuerySpec(AccessSelector.java:312)
    at wt.access.StandardAccessControlManager.getPolicyAcl(StandardAccessControlManager.java:2342)
    at wt.access.StandardAccessControlManager.getPolicyAcl(StandardAccessControlManager.java:4270)
    at wt.access.StandardAccessControlManager._hasAccess(StandardAccessControlManager.java:10719)
    at wt.access.StandardAccessControlManager.checkAccess(StandardAccessControlManager.java:7980)
    at wt.access.StandardAccessControlManager.checkAccess(StandardAccessControlManager.java:416)
    at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


    Also MS startup fails with error: 
    [NmActionService.initXml] com.ptc.netmarkets.util.misc.StandardNmActionService.xmlInit - Started InitializeXML With stax Parsing
    FATAL [main] wt.method.server - MethodServerMain abort
    wt.util.WTRuntimeException: java.lang.NullPointerException; nested exception is:
    java.lang.NullPointerException
    at wt.access.AccessSelector.getQuerySpec(AccessSelector.java:346)
    at wt.access.AccessSelector.getQuerySpec(AccessSelector.java:312)
    at wt.access.StandardAccessControlManager.getPolicyAcl(StandardAccessControlManager.java:2342)
    at wt.access.StandardAccessControlManager.getPolicyAcl(StandardAccessControlManager.java:4270)
    at wt.access.StandardAccessControlManager._hasAccess(StandardAccessControlManager.java:10719)
    at wt.access.StandardAccessControlManager.hasAccess(StandardAccessControlManager.java:536)
    at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)

    HelesicPetr
    22-Sapphire II
    22-Sapphire II
    August 18, 2023

    Hi @paj1 

    Check if you have any customization actions in customAction.xml or customActionModel.xml

     

    It seems that the the "com.ptc.netmarkets.util.misc.StandardNmActionService.xml" can not read some xml definition for Actions. There could be some xml parsing trouble, 

     

    Try to check the xmls if they are correct. 

     

    PetrH