[jBPM Users] - Re: Connection time out during Configuration.setResource
by hidman78
Thx. I was behind a proxy and it was'nt able to connect to http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd.
I don't understand why it has to, but it is working by removing it or with direct internet connexion.
Now I have different problems
1)
jobexecutor import in my hibernate config seems to create the following error
org.jbpm.api.JbpmException: no command executor available in job executor
| at org.jbpm.pvm.internal.jobexecutor.JobExecutor.start(JobExecutor.java:78)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jbpm.pvm.internal.util.ReflectUtil.invoke(ReflectUtil.java:267)
| at org.jbpm.pvm.internal.wire.operation.InvokeOperation.apply(InvokeOperation.java:39)
| at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:229)
| at org.jbpm.pvm.internal.wire.WireContext.performInitialization(WireContext.java:537)
| at org.jbpm.pvm.internal.wire.WireContext.processPendingInitializations(WireContext.java:568)
| at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:454)
| at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:441)
| at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:421)
| at org.jbpm.pvm.internal.wire.WireContext.initializeEagerObjects(WireContext.java:287)
| at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:272)
| at org.jbpm.pvm.internal.cfg.JbpmConfiguration.buildProcessEngine(JbpmConfiguration.java:132)
| at javaclass.DAO.BillDAO.findByExample(BillDAO.java:41)
| at javaclass.action.ListBillAction.execute(ListBillAction.java:29)
| at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
| at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
| at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
| at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
| at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
| at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
| at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
| at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
| at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
| at java.lang.Thread.run(Unknown Source)
But as I don't use it I deleted the line (I think there is a problem behind it but I could't find it)
2) Now i'm getting a new error on :
ProcessInstance processinstance = executionService.startProcessInstanceByKey("taskformExample");
| java.lang.NullPointerException
| at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)
| at javaclass.DAO.BillDAO.findByExample(BillDAO.java:45)
| at javaclass.action.ListBillAction.execute(ListBillAction.java:29)
| at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
| at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
| at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
| at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
| at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
| at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
| at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
| at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
| at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
| at java.lang.Thread.run(Unknown Source)
taskformExample appear in the console and seems to be good.
stack variables :
processEngine JbpmConfiguration (id=77)
| authenticatedUserIdThreadLocal ThreadLocal<T> (id=481)
| impl null
| isConfigured true
| processEngineWireContext WireContext (id=484)
| transactionWireDefinition WireDefinition (id=489)
| userCommandService null
| userProvidedEnvironmentObjectsThreadLocal ThreadLocal<T> (id=492)
executionService ExecutionServiceImpl (id=80)
| commandService null
I think the problem come from commandService that is null, but I don't know why.
I didn't change the other files.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253691#4253691
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253691
15 years, 4 months
[JBoss Remoting Users] - Re: Weird port number on connection fail
by ron.sigal@jboss.com
Actually, that number, strange as it seems, is fine. Normally, that number would be the port where the bisocket://10.33.32.22:1810191292/callback? ...
callback server (on the client side) would be listening, but the bisocket transport doesn't open a port on the client, so this number is just a unique value to distinguish this InvokerLocator from any other InvokerLocators.
When a callback client (on the server side), which JBossMessaging uses to sends messages to a consumer, wants a new socket, it writes a message to the client, and the exception you're seeing means that that process failed. It could be a problem with the connection over which that message is written, but it's more likely that there's a problem on the client side. Take a look at your client side logs. If you see a complaint from ConnectionValidator about a failed connection, try increasing the values of
| <attribute name="validatorPingPeriod" isParam="true">10000</attribute>
| <attribute name="validatorPingTimeout" isParam="true">5000</attribute>
|
in your $JBOSS_HOME/server/$CONFIG/jboss-messaging.sar/remoting-bisocket-service.xml. That will reduce the likelihood of spurious connection failures on a busy network or between busy hosts.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253689#4253689
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253689
15 years, 4 months
[Performance Tuning] - Re: JBoss Performance Tuning
by h2kinfosys
Hi Tony,
Hi Peter and other folks,
It is very good thread and your input is really great help.
I have few questions.
Before my questions, I want you to know about the environment.
Our Environment is : RHEL ( redhat enter prise Linux) 5.0, JBoss 5.x, Oracle 11G RAC. etc.. No Web UI for this app.
I heard that in latest versions, Some of the values can be dynamically changed based on the load, even if you set the value to default.
Q1) For Load balancing: is it good to use APache load balancer or the hardware load balancer ? for the JBoss 5.1.0 as App Server ?
Q2) What are the important parameters in DB, Linux, JBoss, JVM, need to change to tune the performance?
Q3) WHat are the in built tools we can use the anlyze the performance on top the LoadRunner(to apply concurrent users stress the load). ?
I understand that the values are based on the application behaviour and based on the load. Here I want to know more details about which value and where we need to change based on the specific analysis..
For example, threads are waiting, then we can increase the Max thread size..
I hope I am giving clear details of my issue.
Thank you,
Manohar
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253685#4253685
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253685
15 years, 4 months
[JBoss Web Services Users] - having trouble specifying namespace
by rsobchak
I have a web service on JBoss-4.2.3.GA using JBossWS-native-3.0.3.GA. The web service is currently not specifying a namespace.
I am having problems specifying the namespace.
The interface is defined as follows
| @WebService(name = "MyWebService")
| @SOAPBinding(style = Style.DOCUMENT, use=Use.LITERAL, parameterStyle=ParameterStyle.WRAPPED)
|
| public interface MyWebService
| {
| public void myMethod(String param1);
| }
|
The implementation is defined as follows
| @WebService(serviceName = "MyEndpointService",
| portName = "MyEndpointPort",
| endpointInterface = "com.myCompany.MyWebService")
| @WebContext(contextRoot = "/myCompany", urlPattern = "/myWebService")
| @Stateless
|
| public class myEJB
| {
| public void myMethod(String param1)
| {
| }
| }
|
This deploys and creates a single WSDL in the default (i.e. package) namespace.
When I attempt to specify the targetNamespace, the WSDL is broken into two with one importing the other.
The code with the namespace is as follows
| @WebService(name = "MyWebService",
| targetNamespace="http://com.myCompany")
| @SOAPBinding(style = Style.DOCUMENT, use=Use.LITERAL, parameterStyle=ParameterStyle.WRAPPED)
|
| public interface MyWebService
| {
| public void myMethod(String param1);
| }
|
| @WebService(serviceName = "MyEndpointService",
| portName = "MyEndpointPort",
| targetNamespace="http://com.myCompany"
| endpointInterface = "com.myCompany.MyWebService")
| @WebContext(contextRoot = "/myCompany", urlPattern = "/myWebService")
| @Stateless
|
| public class myEJB
| {
| public void myMethod(String param1)
| {
| }
| }
|
The resulting WSDL looks like this
| <definitions name="MyEndpointService" targetNamespace="http://com.myCompany/" xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:jaxws="http://java.sun.com/xml/ns/jaxws" xmlns:ns1="http://default.package/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:tns="http://com.myCompany/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <import location="http://hostname:8080/myCompany/myWebService?wsdl&resource=MyWebService_Po..." namespace="http://default.package/" />
| <service name="MyEndpointService">
| <port binding="ns1:MyWebServiceBinding" name="MyEndpointPort">
| <soap:address location="http://hostname:8080/myCompany/myWebService" />
| </port>
| </service>
| </definitions>
|
According to the java doc on WebService annotation specifying the same targetNamespace on the interface and implemenation would result in one WSDL
in the same namespace. Am I missing something?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253682#4253682
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253682
15 years, 4 months
[Beginner's Corner] - Re: Technology questions
by wondermike
Hi, the users should all be stored in MySQL tables, the users table will not be just [username|password|property1|property2], it'll rather be [username] togehter with another table [username|property-key|property-value] where one of the property-keys will be the password. Another property-key will be the user level, which decides what rights the user will have (start processes via the child executors, create new users, etc.), so application behaves depending on users' rights. From that point of view, ldap won't be suited for my needs, so I think, in my case, there's no other way than using MySQL.
Although the LoggedIn interceptor in the Hotel Booking example looks very simple to implement, the mechanisms described under http://docs.jboss.com/seam/2.2.0.GA/reference/en-US/html/security.html#d0... look VERY ROBUST and not too difficult to implement.
The whole thing will become something like a control panel for websites, mail servers, database servers, etc. I've seen several existing products and they all have their disadvantages, so I will implement my own ideas on that.
The cool thing about the whole thing - having postponed the choice of the tools and even of the programming language gave me a lot of time to think about the functionality and the work flows.
BTW, I've been playing around with jbossws and it seems to be THE thing for me. :) Also very cool - JBossWS - Authentication is well described in the wiki doc.
Thanks,
Regards
Michael
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253672#4253672
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253672
15 years, 4 months