Bug 214212 Problem occurs when set the masterpage margin with ems/exs/pixcel units.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/DimensionPropertyType.java
( (DimensionValue) value ).getMeasure( ), getDefaultUnit(
							module, defn ) );
		}
		if ( value instanceof Integer )
			return fromDouble( module, defn, ( (Integer) value ).intValue( ) );
		if ( value instanceof Double )
			return fromDouble( module, defn, ( (Double) value ).doubleValue( ) );
		if ( value instanceof BigDecimal )
			return fromDouble( module, defn, ( (BigDecimal) value )
					.doubleValue( ) );
		logger.log( Level.SEVERE, "invalid dimension value type:" + value ); 
		throw new PropertyValueException( value,
				PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE,
				IPropertyType.DIMENSION_TYPE );
	}
	/**
	 * Gets the default unit of the property. If the property defines a default
	 * unit , then return it, otherwise return the application unit defined on
	 * session.
	 * 
	 * @param module
	 *            the report design
	 * @param defn
	 *            the property definition
	 * @return the default unit
	 */
	private String getDefaultUnit( Module module, PropertyDefn defn )
	{
		String unit = defn.getDefaultUnit( );
		if ( !StringUtil.isBlank( unit ) )