eirikt
unread,Apr 8, 2009, 5:26:09 AM4/8/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Deuce-STM
When I am not including '-Dorg.deuce.transaction.global=true' I always
get:
java.lang.NoSuchMethodError:
com.mycompany.training.stm.model.Account.getBalance(Lorg/deuce/
transaction/Context;)I
at
com.mycompany.training.stm.command.FragilePaymentTransfer.execute
(FragilePaymentTransfer.java:18)
at
com.mycompany.training.stm.command.DeuceSTMFragilePaymentTransfer.execute
(DeuceSTMFragilePaymentTransfer.java:19)
at
com.mycompany.training.stm.command.DeuceSTMFragilePaymentTransfer.execute
(DeuceSTMFragilePaymentTransfer.java)
at
com.mycompany.training.stm.command.PaymentTransferTask.doConcurrentTask
(PaymentTransferTask.java:17)
...
My Account class is a POJO of type:
public interface Account {
void deposit(int amount);
void withdraw(int amount);
String getAccountNumber();
int getBalance();
}
Account classes have no Deuse annotations present in neither interface
nor implementation class.
The transactional service is:
import org.deuce.Atomic;
import com.mycompany.training.stm.model.Account;
public class DeuceSTMFragilePaymentTransfer extends
FragilePaymentTransfer {
public DeuceSTMFragilePaymentTransfer(Account fromAccount, Account
toAccount, int amount) {
super(fromAccount, toAccount, amount);
}
@Override @Atomic public void execute() {
super.execute();
}
}
I am using org.deuce:deuceAgent:jar:1.0b5
I have tried most combinations of -Dorg.deuce.transaction.contextClass
and Deuce annotation settings, but the same thing happens.
Regards
Eirik T