I'm trying to get an imageFile field to display the image in a ListGrid. Here is my datasource. The ListGrid that uses this as it's data source shows the image name with the View and Download icons whether I have the showFileInline tag set in the data source or not. I'm not defining any fields for the grid, just setting the data source and letting it dictate the grid fields.
And a related issue is that, when I click the View icon, nothing happens. The server console shows the following each time I click the View icon.
If I click the download icon I get this error.
I've also tried it in Firefox and the behavior is basically the same except that clicking either the View or Download icons gets this error.
Code:
<DataSource ID="ProductContent" dataFormat="iscServer" serverType="sql" dbName="as400" tableName="ProductContent"> <fields> <field name="DPRPRD" title="Product" type="text" length="7" primaryKey="true" canEdit="false"/> <field name="NAME" title="Name" type="text" length="256"/> <field name="IMAGE" title="Image" type="imageFile" maxFileSize="204800" showFileInline="true"/> <field name="DESCRIPTION" title="Description" type="text" length="2048"/> </fields> </DataSource>
Code:
=== 2009-12-30 20:41:11,981 [0-12] INFO RequestContext - URL: '/ipgui/sc/IDACall/base_media.jpeg', User-Agent: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10': Safari with Accept-Encoding header === 2009-12-30 20:41:11,982 [0-12] WARN RPCManager - client/server version mismatch. Client is version: SC_SNAPSHOT-2009-12-17, server is version: 7.2_20091029 - mixing different client/server versions is generally not supported. If you've installed a more recent client version, try clearing the browser cache and reloading the page. === 2009-12-30 20:41:11,983 [0-12] DEBUG XML - Parsed XML from (in memory stream): 1ms === 2009-12-30 20:41:11,984 [0-12] DEBUG RPCManager - Processing 1 requests. === 2009-12-30 20:41:11,984 [0-12] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{DPRPRD:"#301987", download_fieldname:"IMAGE", download_filename:"base_media.jpeg"}, operationConfig:{dataSource:"ProductContent", operationType:"viewFile"}, appID:"builtinApplication", operation:"ProductContent_viewFile", oldValues:{DPRPRD:"#301987", download_fieldname:"IMAGE", download_filename:"base_media.jpeg"} } === 2009-12-30 20:41:11,985 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile] No userTypes defined, allowing anyone access to all operations for this application === 2009-12-30 20:41:11,985 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile] No public zero-argument method named '_ProductContent_viewFile' found, performing generic datasource operation === 2009-12-30 20:41:11,985 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile, builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application === 2009-12-30 20:41:11,985 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile, builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation === 2009-12-30 20:41:11,986 [0-12] INFO SQLDataSource - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Performing fetch operation with criteria: {DPRPRD:"#301987",download_fieldname:"IMAGE",download_filename:"base_media.jpeg"} values: {DPRPRD:"#301987",download_fieldname:"IMAGE",download_filename:"base_media.jpeg"} === 2009-12-30 20:41:11,986 [0-12] WARN SQLWhereClause - [builtinApplication.ProductContent_viewFile, builtinApplication.null] no column name for field named: download_fieldname, field2ColumnMap: {IMAGE_filename:"IMAGE_filename", NAME:"NAME", IMAGE_date_created:"IMAGE_date_created", DESCRIPTION:"DESCRIPTION", IMAGE:"IMAGE", DPRPRD:"DPRPRD", IMAGE_filesize:"IMAGE_filesize"} === 2009-12-30 20:41:11,986 [0-12] WARN SQLWhereClause - [builtinApplication.ProductContent_viewFile, builtinApplication.null] no column name for field named: download_filename, field2ColumnMap: {IMAGE_filename:"IMAGE_filename", NAME:"NAME", IMAGE_date_created:"IMAGE_date_created", DESCRIPTION:"DESCRIPTION", IMAGE:"IMAGE", DPRPRD:"DPRPRD", IMAGE_filesize:"IMAGE_filesize"} === 2009-12-30 20:41:11,986 [0-12] WARN SQLDataSource - [builtinApplication.ProductContent_viewFile, builtinApplication.null] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause === 2009-12-30 20:41:11,986 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] DriverManager fetching connection for as400 via jdbc url jdbc:as400:iwave;naming=system;prompt=false;user=IPGUI;password=IPGUI;libraries=*LIBL === 2009-12-30 20:41:11,986 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Passing JDBC URL only to getConnection === 2009-12-30 20:41:12,682 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Returning pooled Connection === 2009-12-30 20:41:12,682 [0-12] INFO SQLDriver - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Executing SQL query on 'as400': SELECT ProductContent.IMAGE_filename, ProductContent.NAME, ProductContent.IMAGE_date_created, ProductContent.DESCRIPTION, ProductContent.IMAGE, ProductContent.DPRPRD, ProductContent.IMAGE_filesize FROM ProductContent WHERE (ProductContent.DPRPRD='#301987' AND ('1'='1') AND ('1'='1')) === 2009-12-30 20:41:13,484 [0-12] INFO DSResponse - [builtinApplication.ProductContent_viewFile, builtinApplication.null] DSResponse: List with 1 items === 2009-12-30 20:41:13,485 [0-12] INFO DSResponse - [builtinApplication.ProductContent_viewFile] DSResponse: Map with 7 keys === 2009-12-30 20:41:13,489 [0-12] INFO RequestContext - URL: '/ipgui/sc/IDACall/base_media.jpeg', User-Agent: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10': Safari with Accept-Encoding header === 2009-12-30 20:41:13,490 [0-12] WARN RPCManager - client/server version mismatch. Client is version: SC_SNAPSHOT-2009-12-17, server is version: 7.2_20091029 - mixing different client/server versions is generally not supported. If you've installed a more recent client version, try clearing the browser cache and reloading the page. === 2009-12-30 20:41:13,491 [0-12] DEBUG XML - Parsed XML from (in memory stream): 1ms === 2009-12-30 20:41:13,501 [0-12] DEBUG RPCManager - Processing 1 requests. === 2009-12-30 20:41:13,501 [0-12] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{DPRPRD:"#301987", download_fieldname:"IMAGE", download_filename:"base_media.jpeg"}, operationConfig:{dataSource:"ProductContent", operationType:"viewFile"}, appID:"builtinApplication", operation:"ProductContent_viewFile", oldValues:{DPRPRD:"#301987", download_fieldname:"IMAGE", download_filename:"base_media.jpeg"} } === 2009-12-30 20:41:13,501 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile] No userTypes defined, allowing anyone access to all operations for this application === 2009-12-30 20:41:13,501 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile] No public zero-argument method named '_ProductContent_viewFile' found, performing generic datasource operation === 2009-12-30 20:41:13,502 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile, builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application === 2009-12-30 20:41:13,502 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile, builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation === 2009-12-30 20:41:13,502 [0-12] INFO SQLDataSource - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Performing fetch operation with criteria: {DPRPRD:"#301987",download_fieldname:"IMAGE",download_filename:"base_media.jpeg"} values: {DPRPRD:"#301987",download_fieldname:"IMAGE",download_filename:"base_media.jpeg"} === 2009-12-30 20:41:13,502 [0-12] WARN SQLWhereClause - [builtinApplication.ProductContent_viewFile, builtinApplication.null] no column name for field named: download_fieldname, field2ColumnMap: {IMAGE_filename:"IMAGE_filename", NAME:"NAME", IMAGE_date_created:"IMAGE_date_created", DESCRIPTION:"DESCRIPTION", IMAGE:"IMAGE", DPRPRD:"DPRPRD", IMAGE_filesize:"IMAGE_filesize"} === 2009-12-30 20:41:13,503 [0-12] WARN SQLWhereClause - [builtinApplication.ProductContent_viewFile, builtinApplication.null] no column name for field named: download_filename, field2ColumnMap: {IMAGE_filename:"IMAGE_filename", NAME:"NAME", IMAGE_date_created:"IMAGE_date_created", DESCRIPTION:"DESCRIPTION", IMAGE:"IMAGE", DPRPRD:"DPRPRD", IMAGE_filesize:"IMAGE_filesize"} === 2009-12-30 20:41:13,503 [0-12] WARN SQLDataSource - [builtinApplication.ProductContent_viewFile, builtinApplication.null] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause === 2009-12-30 20:41:13,503 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] DriverManager fetching connection for as400 via jdbc url jdbc:as400:iwave;naming=system;prompt=false;user=IPGUI;password=IPGUI;libraries=*LIBL === 2009-12-30 20:41:13,503 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Passing JDBC URL only to getConnection === 2009-12-30 20:41:14,223 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Returning pooled Connection === 2009-12-30 20:41:14,223 [0-12] INFO SQLDriver - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Executing SQL query on 'as400': SELECT ProductContent.IMAGE_filename, ProductContent.NAME, ProductContent.IMAGE_date_created, ProductContent.DESCRIPTION, ProductContent.IMAGE, ProductContent.DPRPRD, ProductContent.IMAGE_filesize FROM ProductContent WHERE (ProductContent.DPRPRD='#301987' AND ('1'='1') AND ('1'='1')) === 2009-12-30 20:41:14,917 [0-12] INFO DSResponse - [builtinApplication.ProductContent_viewFile, builtinApplication.null] DSResponse: List with 1 items === 2009-12-30 20:41:14,918 [0-12] INFO DSResponse - [builtinApplication.ProductContent_viewFile] DSResponse: Map with 7 keys === 2009-12-30 20:41:14,923 [0-12] INFO RequestContext - URL: '/ipgui/sc/IDACall/base_media.jpeg', User-Agent: 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10': Safari with Accept-Encoding header === 2009-12-30 20:41:14,924 [0-12] WARN RPCManager - client/server version mismatch. Client is version: SC_SNAPSHOT-2009-12-17, server is version: 7.2_20091029 - mixing different client/server versions is generally not supported. If you've installed a more recent client version, try clearing the browser cache and reloading the page. === 2009-12-30 20:41:14,926 [0-12] DEBUG XML - Parsed XML from (in memory stream): 2ms === 2009-12-30 20:41:14,927 [0-12] DEBUG RPCManager - Processing 1 requests. === 2009-12-30 20:41:14,927 [0-12] DEBUG RPCManager - Request #1 (DSRequest) payload: { criteria:{DPRPRD:"#301987", download_fieldname:"IMAGE", download_filename:"base_media.jpeg"}, operationConfig:{dataSource:"ProductContent", operationType:"viewFile"}, appID:"builtinApplication", operation:"ProductContent_viewFile", oldValues:{DPRPRD:"#301987", download_fieldname:"IMAGE", download_filename:"base_media.jpeg"} } === 2009-12-30 20:41:14,928 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile] No userTypes defined, allowing anyone access to all operations for this application === 2009-12-30 20:41:14,928 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile] No public zero-argument method named '_ProductContent_viewFile' found, performing generic datasource operation === 2009-12-30 20:41:14,928 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile, builtinApplication.null] No userTypes defined, allowing anyone access to all operations for this application === 2009-12-30 20:41:14,928 [0-12] DEBUG AppBase - [builtinApplication.ProductContent_viewFile, builtinApplication.null] No public zero-argument method named '_null' found, performing generic datasource operation === 2009-12-30 20:41:14,928 [0-12] INFO SQLDataSource - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Performing fetch operation with criteria: {DPRPRD:"#301987",download_fieldname:"IMAGE",download_filename:"base_media.jpeg"} values: {DPRPRD:"#301987",download_fieldname:"IMAGE",download_filename:"base_media.jpeg"} === 2009-12-30 20:41:14,929 [0-12] WARN SQLWhereClause - [builtinApplication.ProductContent_viewFile, builtinApplication.null] no column name for field named: download_fieldname, field2ColumnMap: {IMAGE_filename:"IMAGE_filename", NAME:"NAME", IMAGE_date_created:"IMAGE_date_created", DESCRIPTION:"DESCRIPTION", IMAGE:"IMAGE", DPRPRD:"DPRPRD", IMAGE_filesize:"IMAGE_filesize"} === 2009-12-30 20:41:14,929 [0-12] WARN SQLWhereClause - [builtinApplication.ProductContent_viewFile, builtinApplication.null] no column name for field named: download_filename, field2ColumnMap: {IMAGE_filename:"IMAGE_filename", NAME:"NAME", IMAGE_date_created:"IMAGE_date_created", DESCRIPTION:"DESCRIPTION", IMAGE:"IMAGE", DPRPRD:"DPRPRD", IMAGE_filesize:"IMAGE_filesize"} === 2009-12-30 20:41:14,929 [0-12] WARN SQLDataSource - [builtinApplication.ProductContent_viewFile, builtinApplication.null] derived query: SELECT $defaultSelectClause FROM $defaultTableClause WHERE $defaultWhereClause === 2009-12-30 20:41:14,929 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] DriverManager fetching connection for as400 via jdbc url jdbc:as400:iwave;naming=system;prompt=false;user=IPGUI;password=IPGUI;libraries=*LIBL === 2009-12-30 20:41:14,929 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Passing JDBC URL only to getConnection === 2009-12-30 20:41:15,627 [0-12] DEBUG PoolableSQLConnectionFactory - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Returning pooled Connection === 2009-12-30 20:41:15,627 [0-12] INFO SQLDriver - [builtinApplication.ProductContent_viewFile, builtinApplication.null] Executing SQL query on 'as400': SELECT ProductContent.IMAGE_filename, ProductContent.NAME, ProductContent.IMAGE_date_created, ProductContent.DESCRIPTION, ProductContent.IMAGE, ProductContent.DPRPRD, ProductContent.IMAGE_filesize FROM ProductContent WHERE (ProductContent.DPRPRD='#301987' AND ('1'='1') AND ('1'='1')) === 2009-12-30 20:41:16,342 [0-12] INFO DSResponse - [builtinApplication.ProductContent_viewFile, builtinApplication.null] DSResponse: List with 1 items === 2009-12-30 20:41:16,343 [0-12] INFO DSResponse - [builtinApplication.ProductContent_viewFile] DSResponse: Map with 7 keys
Code:
Safari can’t open the page “http://localhost:8888/ipgui/sc/IDACall/base_media.jpeg?isc_rpc=1&isc_v=SC_SNAPSHOT-2009-12-17&isc_tnum=15” because the network connection was reset. This problem can occur if either the server or the network connection is busy. Wait for a few minutes, and then try again.
Code:
The connection was reset The connection to the server was reset while the page was loading. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If you are unable to load any pages, check your computer's network connection. * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
Comment