Troubleshooting: Previewing catalog attachments
Problem
When you click a catalog attachment
on the Show Attachments page, the catalog attachment does not display
in a Web browser. In addition, the following error is logged to the
SysyemOut.log file:
[2/21/06 16:00:33:902 CST] 00000053 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet PreviewServlet. Exception thrown : java.lang.NullPointerException
Solution
The catalog attachment file has a MIME type or file extension not registered with WebSphere Application Server.
Update the WebSphere Application Server configuration to enable the previewing of the file on the Show Attachments page:
- Open the WebSphere Integrated Solutions Console.
- Select .
- Click VT_instance_name_Preview.
- Click MIME Types.
- Click New.
- Type the new MIME type and its extensions and click OK. Repeat this step until have added MIME types for all new file extensions.
- Save your changes to the master configuration.
- Regenerate the Web server plug-in configuration:
- Select , then select your WebSphere Commerce Web server.
- Click Generate Plug-in, then click Propagate Plug-in.
- Restart your WebSphere Commerce Web server.
- Stop and restart WebSphere Commerce.