Problem: 8.1 Java API : Can't retrieve z and m values from a shape
This problem is addressed in ArcGIS 8.1 Service Pack 1 and later releases of ArcSDE. Click on the link in Related Information, below; click on ArcSDE and under version 8.1, select ArcGIS Service Pack 1. Follow download instructions.
The SeShape.getAllPoints() method returns an array of SDEPoints containing the x, y, z, and m values of the shape. However, the SDEPoint.Z() & SDEPoint.M() methods return an "invalid shape" exception.
Known issue in ArcSDE Java API v8.1 Final.
Solution or Workaround
Install ArcGIS Service Pack 1. See the Related Information section to download this pack.