[JBossWS] - Exception with JBoss-4.0.5-SP1 and JBossWS-1.0.3-SP1 but not
by lafr
Running the identical code on the current checkout of Branch_4_0 gives me an exception not seen with our current production version JBoss-4.0.4-GA.
2006-11-20 21:46:32,954 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/mbi-ws/mbi2e-lafr-sb2000-ipc/core].[MessageServiceWS]] Servlet.service() for servlet MessageServiceWS threw exception
| java.lang.ExceptionInInitializerError
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:164)
| at org.jboss.ws.soap.attachment.ContentHandlerRegistry.<clinit>(ContentHandlerRegistry.java:51)
| at org.jboss.ws.xop.XOPUnmarshallerImpl.<clinit>(XOPUnmarshallerImpl.java:59)
| at org.jboss.ws.jaxb.JBossXBUnmarshallerImpl.unmarshal(JBossXBUnmarshallerImpl.java:60)
| at org.jboss.ws.jaxrpc.encoding.JAXBDeserializer.deserialize(JAXBDeserializer.java:92)
| at org.jboss.ws.soap.SOAPContentElement.getObjectValue(SOAPContentElement.java:235)
| at org.jboss.ws.binding.EndpointInvocation.transformPayloadValue(EndpointInvocation.java:233)
| at org.jboss.ws.binding.EndpointInvocation.getRequestParamValue(EndpointInvocation.java:103)
| at org.jboss.ws.binding.EndpointInvocation.getRequestPayload(EndpointInvocation.java:117)
| at org.jboss.ws.server.ServiceEndpointInvokerJSE.invokeServiceEndpoint(ServiceEndpointInvokerJSE.java:94)
| at org.jboss.ws.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:115)
| at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:209)
| at org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
| at org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.lang.IllegalArgumentException: failed to parse:image/bmp, image/x-bmp, image/x-windows-bmp
| at java.awt.datatransfer.DataFlavor.<init>(DataFlavor.java:292)
| at javax.activation.ActivationDataFlavor.<init>(ActivationDataFlavor.java:81)
| at org.jboss.ws.soap.attachment.ImageDataContentHandler.buildFlavors(ImageDataContentHandler.java:77)
| at org.jboss.ws.soap.attachment.ImageDataContentHandler.<clinit>(ImageDataContentHandler.java:63)
|
But we don't use any attachments.
What's wrong here or what did change here?
How to avoid this error?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987414#3987414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987414
19Â years, 7Â months
[Performance Tuning] - Re: Slow remote database connection
by doktora
Hi,
While I tried to dig deeper into this, a couple of days after it started happening, it stopped... without me doing anything. I was just going through the logs.
I've restarted all servers and I cannot replicate the problem. It must have been some sort of caching problem.
For my own assurance, I've consequently gone through the design of my application and removed unneeded EAGER joins. I saw that those could cause a lot of unnecessary table look-ups.
It is indeed strange for the same to happen with a stored procedure. I would suggest going through the JBoss logs at the exact location/time when you call the stored procedure.
For fetching one entity from my DB, JBoss dumped over 1MB of log data in its log file. It seems daunting to look at all of this stuff at first, but you get the hang of it.
Good luck,
let me know how it goes.
doktora
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987411#3987411
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987411
19Â years, 7Â months
[Messaging, JMS & JBossMQ] - EJB3 MDB
by artemgolubev
Hi,
My MDB bean does not get messages.
On deployment it writes:
INFO [EJBContainer] STARTED EJB: com.nexplore.messagebus.ShoppingCartDispatcher ejbName: queue/ShoppingCartDispatcher
WARN [MessagingContainer] Could not find the queue destination-jndi-name=queue/ShoppingCartDispatcher
WARN [MessagingContainer] destination not found: queue/ShoppingCartDispatcher reason: javax.naming.NameNotFoundException: ShoppingCartDispatcher not bound
WARN [MessagingContainer] creating a new temporary destination: queue/ShoppingCartDispatcher
INFO [ShoppingCartDispatcher] Bound to JNDI name: queue/ShoppingCartDispatcher
INFO [EJB3Deployer] Deployed: file:/C:/Apps/JBoss405/server/nexplore/deploy/mb-ejb.jar
MDB:
@MessageDriven(name="queue/ShoppingCartDispatcher",
activationConfig={
@ActivationConfigProperty(
propertyName="destination",
propertyValue="queue/ShoppingCartDispatcher"),
@ActivationConfigProperty(
propertyName="destinationType",
propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(
propertyName="messageSelector",
propertyValue="MessageFormat = 'Version 3.4'"),
@ActivationConfigProperty(
propertyName="acknowledgeMode",
propertyValue="Auto-acknowledge")})
public class ShoppingCartDispatcher implements MessageListener {
@EJB private ShoppingCartLocal shoppingCart;
public void onMessage(Message msg) {
try {
System.out.println("OK");
} catch (Exception e) {
...
}
}
}
Sender:
public @Stateless class ShoppingCartSenderBean implements ShoppingCartSender {
@Resource(mappedName="ConnectionFactory")
private ConnectionFactory connectionFactory;
@Resource(mappedName="queue/ShoppingCartDispatcher")
private Queue queue;
public void sendPayment(String item, String amount) throws JMSException {
Connection connect = connectionFactory.createConnection();
Session session = connect.createSession(true, 0);
ObjectMessage msg = session.createObjectMessage();
MessageProducer producer = session.createProducer(queue);
PayDTO pay = new PayDTO();
pay.setItem(item);
pay.setAmount(new BigDecimal(amount));
msg.setObject(pay);
producer.send(msg);
connect.close();
}
}
I can not find out what is the problem?
May be MDB annotation is incorrect?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987405#3987405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987405
19Â years, 7Â months
[Installation, Configuration & Deployment] - Error loading/compiling rules in weblogic
by paramsevak
I am trying to load/compile and run rules within a weblogic J2ee Container and am unfortunately running into a problem where no exceptions are being thrown and the server is forcefully shutdown. I am able to get it working, even with the JANINO compiler, outside of the j2ee container.
The following is a code snippet I am trying to run from within a action in the J2ee container
PaymentRulesService paymentService = new PaymentRulesService();// LookupService.getPaymentRulesService( data.getServletContext() );
PackageBuilderConfiguration pkgBuilderCfg = new PackageBuilderConfiguration();
pkgBuilderCfg.setJavaLanguageLevel("1.4");
pkgBuilderCfg.setCompiler(1);
PackageBuilder builder = new PackageBuilder(pkgBuilderCfg);
builder.addPackageFromDrl((new InputStreamReader(new FileInputStream("c:\\Sample.drl"))) );
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage( builder.getPackage() );
paymentService.setRuleBase(ruleBase);
ArrayList objectArray = new ArrayList();
//go !
Message message = new Message();
message.setMessage( "Hello World" );
message.setStatus( Message.HELLO );
objectArray.add( message );
String ruleResult = paymentService.firePaymentRules( objectArray );
I have colored the line where the error occurs in red. Also the following is the drl file. It is a slight modification of the Hello World example.
package com.sample.rules.resource
import com.sample.DroolsTest.Message;
global java.lang.String PAYMENT_RESULT;
rule "Hello World"
when
m : Message( status == Message.HELLO, message : message )
then
System.out.println( message );
m.setMessage( "Goodbye cruel world" );
m.setStatus( Message.GOODBYE );
PAYMENT_RESULT = "Goodbye cruel world";
modify( m );
end
rule "GoodBye"
no-loop true
when
m : Message( status == Message.GOODBYE, message : message )
then
System.out.println( message );
m.setMessage( message+" tests" );
PAYMENT_RESULT = message+" tests";
end
I have tried to keep everything simple. It is extremely strange how this works perfectly fine when I run this outside of weblgic.
Any Help is greatly appreciated.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987402#3987402
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987402
19Â years, 7Â months