[Installation, Configuration & Deployment] - Thread Stalling on Scheduled Job
by CasaDelNorte
I'm experiencing a troublesome issue in production:
During one of our scheduled processing events, which grabs and processes chunks of 1000 rows, either the thread gets stucks, or the database driver, or the logger, or something. Basically, it just gets stuck. Future scheduled events are ignored (because the job is still open), and it takes either redeploying the application, or restarting JBoss, or rebooting the server to recover.
There's absolutely NOTHING in the logs. It's as is the thread goes quietly to sleep in nana land.
I know this is impossible to debug here, but I've been looking for a week.
Does ANYONE have any recommendations where to look? Or how to find out what's stalling the thread?
We're using JBoss 4.0.4.GA, Quartz 1.5.2, and JTDS 1.2.
Any and all suggestions are appreciated.
Larry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957776#3957776
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957776
19 years, 9 months
[JBossWS] - Marshalling and Unmarshalling objects within SOAP server
by peterhanlon
I have a document/literal soap service built using jbossws-1.0.1.GA. The server accepts objects of many different types, processes them then persists them to a database this all works as expected.
In order to simplify the persistance of the objects I would like to convert the objects into XML before they are persisted and convert them from XML back to objects when they are requested back from the soap service. Given that the JAXB layer used by the web service already knows about my objects and how to Marshal and Unmarshal the objects it seems sensible to reuse this functionality if possible.
I have tried variations on the code below but I always get an exception saying that it can't load the jaxb.properties file when I try to create a new instance of JAXBContext. I haven't used JAXB before but I can't see why this wouldn't work. If anyone has any ideas I would be really grateful.
@WebService
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
use=SOAPBinding.Use.LITERAL,
parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
public class test
{
@WebMethod
public Document store(Document msg){
try {
StringWriter XML= new StringWriter();
JAXBContext jc = JAXBContext.newInstance("uk.co.test.document");
Marshaller marshaller = jc.createMarshaller();
marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, new Boolean(true));
marshaller.marshal(msg, XML);
System.out.println(XML);
} catch (Exception e) {
e.printStackTrace();
}
return msg;
}
}
Regards
Pete
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957773#3957773
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957773
19 years, 9 months
[Beginners Corner] - Re: Deployment Error
by PeterJ
1) Do NOT post the same question to multiple forums!
2) The error message states:
Deployment FAILED reason: Invalid XML:
| file=jar:file:/C:/jboss-4.0.4.GA/server/default/tmp/deploy/tmp31156StringProcessor.jar!/META-INF/ejb-jar.xml@6:2;
| - nested throwable: (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.)
The key parts are the xml file name and the location of the error (line 6, char position 2). (You will, of course, want to fix the ejb-jar.xml file located within the original jar file, not the one in the tmp directory.)
3) You reformatted the xml file when you posted it (you should post it exactly as is and use the "CODE" brackets - paste the XML into the text box then highlight the XML text and click the Code button above the text entry area), so I cannot tell exactly what the problem is with it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957771#3957771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957771
19 years, 9 months