A NullPointerException occurs when using the Import feature in 360Univ.

Symptom

You click Import on 360Univ and receive error: "StackTrace: java.lang.NullPointerException".

Environment

  • 360Suite Web Platform 2021.2
  • SAP BusinessObjects Business Intelligence 4.1
  • SAP BusinessObjects Business Intelligence 4.2
  • SAP BusinessObjects Business Intelligence 4.3

Steps to reproduce

1. Click Import tab on 360Univ.
2. Select Source File > File System.
3. Click upload File and select the updated Excel file.
4. Click Import.
5. Select Yes at the Confirmation message screen.
6. The error occurs:
"StackTrace: java.lang.NullPointerException
at com.gbs.three60.suite.gui.beans.univ.UnivToolBean.importUniv(UnivToolBean.java:150) 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.el.parser.AstValue.invoke(AstValue.java:247) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267) at org.jboss.weld.module.web.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:40) at org.jboss.weld.module.web.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50) at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:89) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:148)
..."


Cause

This issue is a bug.
It will be fixed in the Web Platform release 2021.3.

Resolution

1. Stop the Web Platform Tomcat service.
2. Open C:\Program Files (x86)\360.suite430\apache-tomcat-9.0.33\webapps\360.suite\WEB-INF\web.xml file with your favourite editor and before the </web-app> end tag:
    1. </context-param>
              <context-param>
              <param-name>primefaces.UPLOADER</param-name>
              <param-value>native</param-value>
          </context-param>

3. Open C:\Program Files (x86)\360.suite430\apache-tomcat-9.0.33\webapps\360.suite\META-INF\context.xml file and override its content with this:

    1. <?xml version="1.0" encoding="UTF-8"?>
      <Context allowCasualMultipartParsing="true">
          <Resource name="BeanManager" auth="Container"
              type="javax.enterprise.inject.spi.BeanManager"
              factory="org.jboss.weld.resources.ManagerObjectFactory" />
      </Context>
4. Start Tomcat service.


Keywords

import, export, universe objects, business layer

Product

Product or Product version
  • 360Suite Web Platform 2021.2


Languages

  • English US
  • English UK
  • French

Last updated almost 3 years ago