Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Maximo Anywhere 7631 - 404 error upon attachment download

    Posted Wed October 07, 2020 09:27 AM
    Edited by System Admin Tue August 22, 2023 04:43 PM
    Hi,

    You receive a 404 error when uploading or downloading an attachment

    1. I have checked this technote and web.xml in the MaximoAnywhere.war has the attachment servlet. 

    2. One difference I have observed is that, the web.xml in the MaximoAnywhere-2.4.war has the attachment servlet but the below xml section is missing.

    <multipart-config>
    <!-- defaults to no location -->
    <location/>
    <!-- defaults to 5MB -->
    <max-file-size>5242880</max-file-size>
    <!-- defaults to 6MB -->
    <max-request-size>6291456</max-request-size>
    <!-- default to 1MB -->
    <file-size-threshold>1048576</file-size-threshold>
    </multipart-config>

    3. Also, running the URL http://<hostname>:<port>/MaximoAnywhere/anywhereAttachment
    returns the response

    Error 404: javax.servlet.ServletException: java.io.FileNotFoundException: SRVE0190E: File not found: /anywhereAttachment

    4. I have also confirmed the timestamps in the worklight console, they check out pretty good.

    5. Mobilefirst version is 7.1.0.00-20190329-1256

    6. WorkExecution App build is successful. And the app is built for Android 28 API. (https://www.ibm.com/support/pages/building-maximo-anywhere-applications-android-28-api)

    Please suggest what could be done to resolve this. Thanks!



    ------------------------------
    Samvid Shivram
    ------------------------------


    #MaximoAnywhere
    #AssetandFacilitiesManagement
    #Maximo


  • 2.  RE: Maximo Anywhere 7631 - 404 error upon attachment download

    Posted Fri October 09, 2020 05:12 AM
    Hi Samvid,

    I would make sure that your Websphere plugin-cfg.xml also contains the context root of anywhereAttachment

    If not then you would need to generate and propagate the webserver plugin

    Thanks
    Chris


    ------------------------------
    Christopher Kung
    ------------------------------



  • 3.  RE: Maximo Anywhere 7631 - 404 error upon attachment download

    Posted Mon October 12, 2020 10:53 AM
    Samvid,  errr. just a sanity check here.... You are running WebSphere 7.x? The MaximoAnywhere-2.4 is for WAS 7.x only.  I f you are running WAS 8 or higher then the you need to use the MaximoAnywhere.war. Also you MF version seems out of synch.  What does the rest of your product stack look like?

    ------------------------------
    Bradley K. Downing , MBA
    IBM Certified Adv. Deployment Prof. Maximo v7.6.1
    IBM
    Bakersfield CA
    ------------------------------



  • 4.  RE: Maximo Anywhere 7631 - 404 error upon attachment download

    Posted Mon November 09, 2020 01:30 AM
    Hi Bradley,
    Thanks for your reply. Yes, we are running WebSphere 8.x. 

    As you suggested for WAS 8.x, I checked the web.xml inside MaximoAnywhere.war. It has the necessary attachment servlet.


    Also your MF version seems out of synch - May I know why do you say this?

    System info from maximo and worklight console is copied below for your reference.



    System Information

    App Server
    IBM WebSphere Application Server 8.5.5.17

    Version
    Tivoli's process automation engine 7.6.0.8 Build 20170512-0100 DB Build V7608-63
    IBM TPAE Integration Framework 7.6.0.8 Build 20170510-2330 DB Build V7608-43
    TPAE OSLC Object Structure 7.6.3.1 Build 20200603_010812-0400 DB Build V7631-04
    IBM Maximo Asset Management Scheduler 7.6.5.0 Build 20170512-0100 DB Build V7650-98
    IBM Maximo Anywhere 7.6.3.1 Build 20200603_010844-0400 DB Build V7631-05
    IBM Maximo Asset Management Work Centers 7.6.0.2 Build 20170509-0906 DB Build V7602-57
    IBM Maximo Asset Management 7.6.0.8 Build 20170512-0100 DB Build V7604-01

    Server OS Windows Server 2012 R2 6.3
    Server DB Oracle 11.2 (Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the OLAP option)

    (c) Copyright IBM Corp. 2017


    MaximoAnywhere > Support Information
    Server version: 7.1.0.00.20190329-1256
    Project WAR version: 7.1.0.00.20190211-0925
    Adapter name: Inspection_NotificationGenericAdapter, Size: 1.8 KB, Version: 7.1.0.00.20190211-0925
    Adapter name: OSLCGenericAdapter, Size: 4.59 KB, Version: 7.1.0.00.20190211-0925
    Adapter name: OSLCSpatialAdapter, Size: 5.71 KB, Version: 7.1.0.00.20190211-0925
    Adapter name: WorkExecution_NotificationGenericAdapter, Size: 1.83 KB, Version: 7.1.0.00.20190211-0925
    Application: ServiceRequest-iphone-7.6.3.1, Size: 8.93 MB, Version: 7.1.0.00.20190211-0925
    Application: ServiceRequest-iphone-7.6.3, Size: 8.71 MB, Version: 7.1.0.00.20171101-1704
    Application: ServiceRequest-iphone-7.6.2, Size: 8.93 MB, Version: 7.1.0.00.20171101-1704
    Application: ServiceRequest-android-7.6.3.1, Size: 8.91 MB, Version: 7.1.0.00.20190211-0925
    Application: ServiceRequest-android-7.6.3, Size: 13.38 MB, Version: 7.1.0.00.20190329-1256
    Application: ServiceRequest-android-7.6.2, Size: 8.91 MB, Version: 7.1.0.00.20171101-1704
    Application: WorkExecution-android-7.6.3.1, Size: 10.36 MB, Version: 7.1.0.00.20190211-0925
    Application: WorkExecution-android-7.6.3, Size: 10.28 MB, Version: 7.1.0.00.20190329-1256
    Application: WorkExecution-android-7.6.2, Size: 10.36 MB, Version: 7.1.0.00.20171101-1704
    Application: WorkExecution-iphone-7.6.3.1, Size: 10.38 MB, Version: 7.1.0.00.20190211-0925
    Application: WorkExecution-iphone-7.6.3, Size: 10.3 MB, Version: 7.1.0.00.20190329-1256
    Application: WorkExecution-iphone-7.6.2, Size: 10.38 MB, Version: 7.1.0.00.20171101-1704

    ------------------------------
    >>>>>>>>>>>>>>>
    Samvid Shivram
    Sigma IT
    <<<<<<<<<<<<<<<
    ------------------------------



  • 5.  RE: Maximo Anywhere 7631 - 404 error upon attachment download

    Posted Tue October 13, 2020 03:42 AM
    Hi Samvid,

    Is attached doc working for Maximo?

    https://www.ibm.com/support/pages/setting-attached-documents


    Do you have "mxe.oslc.restwebappurl" system property configured with a hostname (with domain name), port number?
    For example:  
    http://host_with_domain_name:port/maxrest/oslc/

    Technotes:
    https://www.ibm.com/support/pages/cannot-upload-attachment-anywhere-application-maximo-desktop
    https://www.ibm.com/support/pages/404-error-when-uploading-attachments-maximo-anywhere

    ------------------------------
    May On
    Tech Support
    IBM
    ------------------------------



  • 6.  RE: Maximo Anywhere 7631 - 404 error upon attachment download

    Posted Mon November 09, 2020 01:53 AM
    Hi May,

    Thanks for your reply. The attachments were working before I built the AW apps for Android28 API. Let me cross-check the configuration in my Maximo environment with the links shared by you.

    ------------------------------
    >>>>>>>>>>>>>>>
    Samvid Shivram
    Sigma IT
    <<<<<<<<<<<<<<<
    ------------------------------



Global message icon