You are using java.util.logging.Logger and this logger has no error()
method.
Either use
Logger.log(Level, String);
Logger.log(Level, String, Throwable);
with one of the levels defined in java.util.logging.Level
or
Logger.severe(String);
... to your second question:
The logger is declared well.
If you change the logger declaration to
private final static Logger logger = Logger.getLogger(SaveOrder.class.getName());
then the logger will have another name. The name is used when you configure the logging system. I would suggest you to read the Java Logging Overview and come back when you have a particular question about the java logging system.