Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

When I try to run the code below

try
{
    fmeSession = FMEObjects.createSession();            
    feature = fmeSession.createFeature();
    return true;
}
catch (FMEException fe) 
{
    System.out.println("Error Create Feature: " + fe.getFMEStackTrace());
    return false;
}

I get this message:

Error Create Feature: (....\foundation\security\stfsecurity.h:578)

What might be the reason for this? Please help me.

share|improve this question
add comment

1 Answer 1

It's definitely a licensing issue; probably (hard to map the line number accurately without knowing the version of FME you are running) corresponding to this message:

FME temporary license has expired.  Please contact sales@safe.com or your distributor to purchase FME Suite.

You could confirm this by running a workspace using fme.exe and examining the log, or possibly just by starting Workbench.

Update:

In FME 2010 (final release) the corresponding message should be:

No FME Floating Licenses are available.  Contact your distributor to purchase additional licenses.

Perhaps you are right on the edge of your license limit, and can't run your code at the same time Workbench is open.

Try this to make sure we really know what the error message is:

System.out.println("Error Create Feature: " + fe.getMessage());
share|improve this answer
    
I am using FME 2010. And I am able to start workbench. –  Mandar Mar 12 '12 at 9:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.