Treatment of chronic pancreatitis