Automation Exception - Unspecified Error (File/Folder Permissions)


Hello Folks, Today I was working with ARCGIS Server Java ADF. I was trying to create a shapefile out of the XY component file(LAT,Long). In that process
I declared and tried to instantiate the IWorkspaceFactory and IFeatureWorkspace class like I did with the ARCGIS Engine Java ADF. But as usual I got exception that "Automated Exception : Class not Registered". I Quickly realized that in the arcgis server we should instantiate the objects on the server. I used the magic line "serverContext.createObject(shapefileWorkspaceFactory.getClsid())" like this..
IServerContext serverContext = agsContext.getServerContext();
IWorkspaceFactory WSFactory =
new IWorkspaceFactoryProxy(
serverContext.createObject(ShapefileWorkspaceFactory.getClsid()));

IFeatureWorkspace opFeatureWorkspace =
new IFeatureWorkspaceProxy(WSFactory.openFromFile(wsDir, 0));


Even after this I'm getting "Automated Exception - Unspecified error". Have you
ever faced the situation having the keys in your pocket and search for it?? Oh man
I was in the same situation ..I knew that something really really trivial mistake is
behind this exception.Finally I found the reason, When we create the wsDir we
should edit the permissions on it and grant write permission to the arcgis user
with which we are accessing the arcgis server object.

I've also seen many ESRI forum Questions in which people try to register the DLL
files manually using regserv32 when they get the "Automated Exception - Class not

Registered". Most of the times the reason will be when you try to Instantiate a
class not on the server i.e instantiating the object without passing the magic sentence serverContext.createObject((Place the class name).getClsid()) as an argument to the
class constructor.

I'm going to start working with Microsoft Visual Studio 2005 and ARCGIS server .Net
ADF ...I havent heard of this combination till now.we will see how it works.

Until then Bye..




ARCSDE on Microsoft SQL server 2005.




As part of my work today I installed the ARCSDE on Microsoft SQL server 2005.

Install Log

Installing MS SQL server 2005 - No Problems
Installing ARCSDE 9.1 - No Problems

When I started post installing the ARCSDE for some reasong installation of data repository hangsup although the SDE database is created. It happend like that for five times and everytime I manually delete the SDE database(half-baked) from the MS SQL server and restart the post installation wizard. but suddenly it worked sixth time and took just some 20 seconds.Its really strange.If anyone knows the reason why, I'd be the most happiest person to know.

Secondly one screen popups and asks about the operating system, Database server installed etc etc .. It has Microsoft SQL server 2000 but it dont have MSSQL server 2005 ! what am I supposed to do ? I just selected MSSQL server 2000...as I dont have anyother alternative..


Next , dont act quick creating another database manually ..ARCSDE 9.1 is completely a different game.If you create another database manually and setup permissions and Start connecting with arccatalogue or try to access that in someother way you will endup in nowhere..

WHY :- In the new arcsde we can have multiple databases as long as we have multiple ArcSDE services running - each 'connected' to a single database and each listening on a different port. but in the old model we had a single service listening on a single port but capable of 'connecting' to multiple databases. So in ARCSDE 9.1 we should use ARCSDE post install wizard everytime we creat a new spatial database.

Ok folks..Next comes I tried to connect to the spatial database that is on a remote server thru ARCCATALOGUE...Everything went fine until I Press the "TEST CONNECTION" Button. It started giving me "Cant find the server" ...why? I entered the service name instead of entering the Port number in the service text box which sounds wierd but it worked. The correct way todo is





After all this I tried Copying a personal geodatabase as an ArcSDE geodatabase and it started giving an error 'The application is not licensed to create or modify schema for this type of data Failed to execute (CopyFeatures).

So finally I found out on ESRI technical articles that

Error Message
This error occurs while using ArcView ArcCatalog to export data to an ArcSDE geodatabase:

"The application is not licensed to modify or create schema for this type of data."

Cause
ArcGIS Desktop full read-write and transactional access to a geodatabase is not available in the ArcView environment.

Solution or Workaround

Use ArcInfo or ArcEditor to export the data to an ArcSDE geodatabase.


Atlast I succeeded .This is my ARCSDE story until now and wait for tommorows update ...:)