Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-128185

Fail to create new product and There is error "java.lang.NullPointerException"

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.3.X
    • Fix Version/s: None
    • Component/s: Control Menu

      Description

      Steps to Reproduce:*

      1. Login the bundle
      2. Go to commerce > Product management > Catalogs: one
      3. Add a new catalogs
      4. Go to commerce > Product management > Products
      5. Add a new Products > Simple > Name: test Catalogs: one
      6. Submit

      Actual Result:
      Fail to create new product

      2021-02-22 05:54:51.833 ERROR [http-nio-8080-exec-7][ExceptionMapper:31] java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NullPointerException
              at com.liferay.portal.vulcan.util.ActionUtil.addAction(ActionUtil.java:113)
              at com.liferay.headless.commerce.admin.catalog.internal.resource.v1_0.BaseProductResourceImpl.addAction(BaseProductResourceImpl.java:528)
              at com.liferay.headless.commerce.admin.catalog.internal.resource.v1_0.ProductResourceImpl._getActions(ProductResourceImpl.java:310)
              at com.liferay.headless.commerce.admin.catalog.internal.resource.v1_0.ProductResourceImpl._toProduct(ProductResourceImpl.java:372)
              at com.liferay.headless.commerce.admin.catalog.internal.resource.v1_0.ProductResourceImpl.postProduct(ProductResourceImpl.java:245)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179)
              at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
              at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201)
              at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104)
              at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
              at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
              at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
              at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
              at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)
              at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
              at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
              at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
              at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:216)
      

      Expected Result:

      Can be submit successfully.

      Affect testcases:
      LocalFile.CommerceSmoke#PublishSimpleProduct
      LocalFile.CPCommerceProducts#ProductPublishing
      LocalFile.CPCommercePriceLists#AssertPriceEntriesAreProductsInTheSameCatalogAsPriceList

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              melody.wu Melody Wu
              Participants of an Issue:
              Recent user:
              Melody Wu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                39 weeks, 6 days ago

                  Packages

                  Version Package