× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
tariqrahiman reported 2009-12-17T19:22:44Z  · last modified 2009-12-30T21:32:04Z

JavaException: java.lang.String cannot be cast to java.util.Map


Priority Low
Complexity Unknown
Component Open API - General
Version 09.0

ADS 8.5 dev5.9

AQArchive -- Manifest

void manifest(String manifestFile,
              Map attributeMap,
              Map> sectionMap)
              throws Exception

specified a attributeMap instead of a sectionMap and got the java exception..

Catch the below exception in the code when a attributeMap is used in place of a sectionMap

JavaException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map

importPackage(java.util);
var test_data_dir = "c:\\archive\\";
test_manifest();
// --- manifest() ---

function test_manifest() {
 var attrMap = new HashMap();
  attrMap.put("m-name-1", "TARIQ");
  var dest_base = test_data_dir + "manifest\\";
   exec_manifest(dest_base + "manifest_none.MF",attrMap , attrMap );

}

function exec_manifest(manifestFile, attrMap, sectionMap) {
    try {
        aqua.println("manifest: creating [" + manifestFile + "]...");
        aqua.archive.manifest(manifestFile, attrMap, sectionMap);
        aqua.println("manifest: done.");
    } catch(ex) {
        aqua.println("manifest: failed - " + ex.toString());
    }
}

Issue #3352

Closed
Fixed
Resolved 2009-12-30T21:32:04Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017