Trying to use Process Control in session bean
Hi,
In Workshop, I have a session bean that is <i>trying</i> to call a method on a business process control. (The control was created in a process project and then moved to a control project to make it visible.)
The problem, in the example below, is that 'myControl' never gets set. So how do we access controls in EJBs? (I thought there was some Workshop magic that would implement this initialization.)
Thanks for any help!!
- Rob
// Event.ejb
* @common:control
private controls.getEventsPControl myControl;
* @ejbgen:remote-method
public String getEvent() {
return myControl.getEvent();
}
We're running SP4. Here's the session bean code snippet in a readable format. Again, 'myControl' is null. How do I set it?
Thanks for any ideas..
- Rob
// Event.ejb
* @common:control
private controls.getEventsPControl myControl;
* @ejbgen:remote-method
public String getEvent() {
return myControl.getEvent();
}
Similar Messages
-
When playing a home video DVD (created on my Panasonic DVD/Hard Disc recorder) using the Mac DVD Player, I tried to use the "Controls, Use current frame as jacket picture" facility to create a printable image but with no success. I assume that any file created by this action would be stored somewhere in a common format but cannot find any such file. Can anybody point me in the right direction?
Hi Sinious,
Interesting to know about 10.8 and Flash. I'll hold off upgrading until they work together. Currently using 10.6.8 at home and same on the Universtity's computers.
Haven't verified on Windows but shall do later in the week if I can get access to a Windows machine.
Both the Flash player and the Projector come up not full screen, and if I leave it that way then things work OK as long as I don't make the video full screen (using the full screen button on the skin).
However if I make the swf or projector full-screen (by using CMD-F or the menu option) then when I click on the menu item to take me to the page with the video on it, instead of a page with a smallish video and back button I get a black screen with no obvious controls. If I then press Escape I get my normal screen back and I am in the page that should have the video but there is not video and the back button does not work. So something wierd is going on here.
If I make a file without any videos with a similar navigation structure everyting works ok except that when I go full screen I lose the finger cursor when I roll over my buttons (which is also wierd). -
Calling Data Control from Session bean
Is it possible to use workshop data control from with in Session bean.
If the client code is located in the same "deployment unit" (e.g. EAR
file) as the EJBs, then you can pass the data by reference.
Serialization is required when crossing between deployment units. This
is required to support redeployment.
Hyung-Jin Kim wrote:
I recently downloaded WL6.0 and I noticed that when a
session bean returns data to its client, the data is
always serialized back the client -- EVEN it the client
is on the same machine. Ideally, I would prefer that a
reference to the data simply be returned to the client.
Does the serialization occur because WL6.0 put session
beans in its own ClassLoader or does the serialization occur
because of the way WL6.0 compiles the RMI stubs? Thanks
for your response.
-hjk -
Errors when trying to use WebBrowser control
Hi,
I am trying to use the WebBrowser control on a winForm. When I do, I initially get a an error relating to the thread being required to be in a Single Threaded Apartment. (cannot be instantiated because the current thread is not in a single-threaded
apartment) So I add it to a single threaded apartment which fixes that issue.
However when I try to run it again, the next error I get is (Controls created on one thread cannot be parented to a control on a different thread). So I add the control to the form in the thread context of the form using a
SyncContext, but this makes no difference so I use BeginInvoke. Not only does this not work but it freezes the form I am trying to load with the WebBrowser.Any
Any ideas why this is acting in this fashion?
Below is my final attempt at getting the web Browser to work:
Many thanks for any suggestions!
Public Sub New()
Dim t As New Threading.Thread(AddressOf InitBrowser)
t.SetApartmentState(Threading.ApartmentState.STA)
t.Start()
End Sub
Private browser As WebBrowser
Private Sub InitBrowser()
browser = New WebBrowser()
browser.Width = 500
browser.Height = 500
' this didn't work
'_syncContext.Send(Sub(x)
' Me.Controls.Add(browser)
' browser.Navigate("http://www.google.com")
' End Sub, Nothing)
If Me.InvokeRequired Then
Me.BeginInvoke(Sub()
Me.Controls.Add(browser)
browser.Navigate("http://www.google.com")
End Sub)
Else
Me.Controls.Add(browser)
browser.Navigate("http://www.google.com")
End If
End Sub
@ntHi Carl, Thanks for your time.
Below is the initial simple, unthreaded code, but when I try to run it I get this error :-
"ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment."
Const TOP_MARGIN = 50
Const SIDE_MARGIN = 3
Me._browser = New WebBrowser() ' breaks here
_browser.Top = TOP_MARGIN
_browser.Left = SIDE_MARGIN
_browser.Height = CInt(Me.Height - (TOP_MARGIN * 2))
_browser.Width = CInt(Me.Width - (SIDE_MARGIN * 2))
_browser.ScrollBarsEnabled = False
so I wrap it in the STA thread which fixes that issue, as below:
Dim browserThread = New Thread(Sub() InstantiateBrowser())
browserThread.SetApartmentState(ApartmentState.STA)
browserThread.Start()
While browserThread.IsAlive
Application.DoEvents()
End While
Me.Controls.Add(_browser) ' breaks here'
_browser.Navigate(_preparationURL)
End Sub
Private Sub InstantiateBrowser()
Const TOP_MARGIN = 50
Const SIDE_MARGIN = 3
Me._browser = New WebBrowser()
_browser.Top = TOP_MARGIN
_browser.Left = SIDE_MARGIN
_browser.Height = CInt(Me.Height - (TOP_MARGIN * 2))
_browser.Width = CInt(Me.Width - (SIDE_MARGIN * 2))
_browser.ScrollBarsEnabled = False
End Sub
But now that is Apartment threaded, it is not being created on the same thread as the form, so when I try to add the browser to the forms controls collection I get the error below:
"Controls created on one thread cannot be parented to a control on a different thread."
I then tried rejoining the thread with a syncContext but that did not help. Any ideas on this?
Many thanks
@nt -
Can i use " this " keyword in session bean.
Hi,
I am working with session beans, in my business logic i need to use " this" keyword,
but is it possible to use " this" keyword in EJB bean?.you can.
do it ! -
Transactional error when using JMS from stateless session bean
I get a transaction exception when committing a bean method responsible for sending to a JMS topic. This happens only occasionally when two separate threads invoke this method "at the same time".
The scenario:
Two separate threads running two different instances of a stateless session bean (slsb A). This ejb (slsb A) has an injected slsb B which is communicating with the the topic.
Both instances of slsb A are utilising the same instance of slsb B.
The CMT transactions for the two threads start in slsb A from methods with transaction attribute "RequiresNew". All nested methods are to other slsbs and have the transaction attribute "Required". The method in slsb B which sends the message is closing both the session and the connection to the topic.
I'm running Glassfish version 9.1_02 (build b04-fcs) and JMS implementation OpenMQ version 4.1.
Stacktrace (glassfish log):
[#|2008-09-09T13:00:40.515+0200|SEVERE|sun-appserver9.1|javax.resourceadapter.mqjmsra.outbound.connection|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=108e8418-71a6-4d8b-a94d-9e1edc885891;|commitTransaction (XA) on JMSService:jmsdirect failed for connectionId:5754505514139844608 and onePhase:false due to unkown JMSService server error.|#]
[#|2008-09-09T13:00:40.515+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.core.transaction|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe;commit;_RequestID=108e8418-71a6-4d8b-a94d-9e1edc885891;|JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [commit] operation.|#]
[#|2008-09-09T13:00:40.531+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;SubscriptionBean;|EJB5018: An exception was thrown during an ejb invocation on [SubscriptionBean]|#]
[#|2008-09-09T13:00:40.531+0200|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8080-1;|
javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [commit] operation. vmcid: 0x0 minor code: 0 completed: No
javax.transaction.SystemException: org.omg.CORBA.INTERNAL: JTS5031: Exception [org.omg.CORBA.INTERNAL: vmcid: 0x0 minor code: 0 completed: Maybe] on Resource [commit] operation. vmcid: 0x0 minor code: 0 completed: No
at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:321)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.commit(J2EETransactionManagerImpl.java:1030)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:397)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3792)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3585)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:127)
at $Proxy130.requestNewSubscription(Unknown Source)
at com.abeldrm.kms.core.services.subscription.SubscriptionWSBean.requestNewSubscription(SubscriptionWSBean.java:94)
at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:189)
at $Proxy129.requestNewSubscription(Unknown Source)
at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.webservice.InvokerImpl.invoke(InvokerImpl.java:81)
at com.sun.enterprise.webservice.EjbInvokerImpl.invoke(EjbInvokerImpl.java:82)
at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)
at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:329)
at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218)
at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129)
at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:113)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:87)
at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:226)
at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:114)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
IMQ broker log:
[09/Sep/2008:13:00:40 CEST] ERROR CommitTransaction: commit failed. Connection ID: 5754505514139844608, Transaction ID: 0:
com.sun.messaging.jmq.jmsserver.util.BrokerException: Unknown Transaction 0
at com.sun.messaging.jmq.jmsserver.data.protocol.ProtocolImpl.commitTransaction(ProtocolImpl.java:630)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQDirectService.commitTransaction(IMQDirectService.java:1735)
at com.sun.messaging.jms.ra.DirectXAResource.commit(DirectXAResource.java:201)
at com.sun.jts.jtsxa.OTSResourceImpl.commit(OTSResourceImpl.java:114)
at com.sun.jts.CosTransactions.RegisteredResources.distributeCommit(RegisteredResources.java:795)
at com.sun.jts.CosTransactions.TopCoordinator.commit(TopCoordinator.java:2111)
at com.sun.jts.CosTransactions.CoordinatorTerm.commit(CoordinatorTerm.java:403)
at com.sun.jts.CosTransactions.TerminatorImpl.commit(TerminatorImpl.java:249)
at com.sun.jts.CosTransactions.CurrentImpl.commit(CurrentImpl.java:623)
at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:309)
at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.commit(J2EETransactionManagerImpl.java:1030)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:397)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3792)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3585)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)
at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:127)
at $Proxy130.requestNewSubscription(Unknown Source)
at com.abeldrm.kms.core.services.subscription.SubscriptionWSBean.requestNewSubscription(SubscriptionWSBean.java:94)
at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
at com.sun.ejb.containers.WebServiceInvocationHandler.invoke(WebServiceInvocationHandler.java:189)
at $Proxy129.requestNewSubscription(Unknown Source)
at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.enterprise.webservice.InvokerImpl.invoke(InvokerImpl.java:81)
at com.sun.enterprise.webservice.EjbInvokerImpl.invoke(EjbInvokerImpl.java:82)
at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
at com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)
at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:329)
at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218)
at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129)
at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:113)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:87)
at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:226)
at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:155)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:114)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Have anyone any idea why this should fail?
Regards,
JonI would suggest opening a case with [email protected] FWIW, I recall seeing
something like this in WLS 6.0. I believe it is fixed in WLS 6.1
-- Rob
Chris Dupuy wrote:
> Btw, this occurs when I create an stateful session bean that ends up
> throwing an exception and setRollbackOnly() is called. From that point
> forward, my logs fill with this message.
>
> Chris
>
> "Chris Dupuy" <[email protected]> wrote in message
> news:[email protected]..
> > anyone know what this means, and what you can do about it?
> >
> >
> > <Error> <ConnectionManager> <atossd03> <cbeyondServer> <ExecuteThread:
> '14'
> > for queue: 'd
> > efault'> <> <> <000000> <Closing:
> 'weblogic.rjvm.t3.T3JVMConnection@488831'
> > because of: 'Server received a message over an uniniti
> > alized connection: 'JVMMessage from: 'null' to:
> >
> '5825313123619479267S:10.6.6.40:[8000,8000,8001,8001,8000,8001,-1]:cbeyond:c
> > beyond
> > Server' cmd: 'CMD_REQUEST', QOS: '101', responseId: '2', invokableId: '1',
> > flags: 'JVMIDs Not Sent, TX Context Not Sent', abbrev o
> > ffset: '204'''>
> >
> >
> >
-
Error encountered while trying to use EJB control in a Platform Domain
Hi,
I've configured a Weblogic Platform domain and installed all the application EJB's
thru a JAR file. When I try to access these EJB's from within Web Logic Workshop
using the EJB Control, I am able to find the Home and the Remote interfaces and
those boxes are populated correctly when I select the JNDI name from the Browse
button. But when I click on the "Create" button in EJB Control dialog box, I get
the following error
"The EJB Home interface selected in Step 3 cannot be loaded. The client interfaces
for the selected EJB must be present as individual classes in the WEB-INF\classes
directory of this project or the EJB's client JAR file must be present in the
WEB-INF\lib directory".
I copied my EJB Jar file to the WEB-INF\lib folder also. But still it gives the
same error message. Please let me know if I am missing something. Your help is
greatly appreciated.
Thanks
VikramHi Pat,
I've restarted the complete Platform Domain Weblogic instance and it worked.
Thanks for your help.
Vikram
"Pat Bumpus" <[email protected]> wrote:
>
Hi,
I'm using a workshop domain from WebLogic Platform 7.0 SP1.
When you move the EJB classes (as a jar file) into the WEB-INF/lib directory,
then you need to redeploy the web application. In your last note you
mentioned
redeploying the EJB, but not the web app. Have you tried redeploying
the web
app, after you move the EJB jar file into WEB-INF/lib?
pat
"Vikram" <[email protected]> wrote:
Hi Pat,
Thanks for replying back immediately. I tried to redeploy the EJB and
copy the
client EJB classes to the WEB-INF\lib folder but still it doesn't work.
I've also
tried using some of the standard EJB's like "BEA_commerce.CategoryManager"
which
are part of the Platform domain and I am still getting the same error.
Are you working on a Weblogic Platform Domain or Weblogic workshop domain.
Just
wanted to confirm. Appreciate your help.
Thanks
Vikram
"Pat Bumpus" <[email protected]> wrote:
Hi,
After you copied the EJB into the WEB-INF/lib directory, did you redeploy
the
web application? I got a similar thing to work. Instead of movingthe
whole
EJB into WEB-INF/lib, I had ejbc create an EJB client jar and I moved
that into
my WEB-INF/lib directory. Then I redeployed the web application toload
the classes
and it worked.
pat
"Vikram" <[email protected]> wrote:
Hi,
I've configured a Weblogic Platform domain and installed all the application
EJB's
thru a JAR file. When I try to access these EJB's from within Web
Logic
Workshop
using the EJB Control, I am able to find the Home and the Remote interfaces
and
those boxes are populated correctly when I select the JNDI name from
the Browse
button. But when I click on the "Create" button in EJB Control dialog
box, I get
the following error
"The EJB Home interface selected in Step 3 cannot be loaded. The client
interfaces
for the selected EJB must be present as individual classes in theWEB-INF\classes
directory of this project or the EJB's client JAR file must be present
in the
WEB-INF\lib directory".
I copied my EJB Jar file to the WEB-INF\lib folder also. But stillit
gives the
same error message. Please let me know if I am missing something.
Your
help is
greatly appreciated.
Thanks
Vikram -
Error 1172 trying to use mx.controls.List class
I am trying to write code in Action Script in Flex Builder 3
but I am having trouble using some of the classes in the mx
package. When I import like this:
import mx.managers.PopUpManager;
import mx.controls.List;
import flash.display.SimpleButton;
The SimpleButton imports just fine but for PopUpManager and
List, I get these errors:
1172: Definition mx.managers:PopUpManager could not be found.
1172: Definition mx.controls:List could not be found.
Other controls in the mx package seem to be available such as
mx.managers.IFocusManager (along with three other interfaces in
mx.managers.
Why is only part of the mx package available?Hi,
I had a similar issue with the flash.desktop package. It
turned out I was running Flex Builder 3 Beta 2, not Flex Builder 3
Beta 3. I uninstalled Flex Builder, the Flex sdks & the Air
sdks & re-installed all the latest, that resolved the problem.
Hope this is some help. -
LabVIEW crashes when trying to use VISA controls
When I try and place VISA controls onto the front panel or a constant into the block diagram LabVIEW crashes and says that LabVIEW.exe caused an error and that LabVIEW must be restarted. Is there some setup required in order to use VISA or is there something wrong with LabVIEW?
I saw something that sounded exactly like this myself on two PC that where running some kind of "Eveidence Eleminator" software that got its hooks into everything.
I never did get it running on those two machines.
I saw something similar when trying to access a serial port that was hanging off of a USB gizmo.
We downloaded the latest and greatest version of the driver for the USB to serail device
and
upadted NI-VISA to the latest and greatest.
Then everything worked.
It was just like you mentioned, LV looks fine right up until you drop a VISA control.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Trying to use grid control to get historic file system information
Hi.
I need to get the file system historical information for a year. I need to be able to say how in the past year such and such a file system has increased in space etc.
I am using OEM Grid Control. I have been trying to find this information this way:
Home/Local File Systems/click on specific file system and then View Data for one year.
Trouble is, this bview is more visual than statistical. I need hard figures!
Is this the right way? Should I try another approach? This must be a common request?
Oracle 10.2.0
DA
Thank you.Querying the tables/views inside OEM Grid Control (GC) Repository - the database - may help. By default, GC stores information into tables owned by SYSMAN and aggregates the information on a pre-defined schedule, like first week, first month, first year, etc depends on the definition. So you might not find some details of the historical information.
Try mgmt$metric_daily to get the numbers. You would need target_guid from mgmt$target to pinpoint the server.
Not sure 100% all details you are looking for, which will determine the metrics to query. But anyway here is a simple example. Hope it helps. The Oracle documentation has more details.
SELECT metric_name,metric_column,
TO_DATE(TO_CHAR(rollup_timestamp,'YYYY-MM-DD'), 'YYYY-MM-DD') AS month_timestamp,
maximum value
FROM mgmt$metric_daily
WHERE target_guid='......'
AND metric_label = 'Storage Summary'
AND metric_column = 'local_fs_used' -
Hello experts,
We are trying to use process controlled work flow for SC approval. Approval process will be multiple based on the amount of shopping cart. Somebody has already activated BC set for one step approval in the system. If i want to have my own process schema ( multiple approval ),what i supposed to do? Do i delete the existing schema attached to BUS2121 or create my own schema ?
How system will determine which schema needs to be picked up after creation of SC?
Regards,
SagarHello Bharat,
Thanx for reply.
I have below cases for process controlled workflow.
1. No approval
2. One step approval
3.Multi level approval.
All the above scenario will be decided based on the Z field which we have added to SC header. My understanding in this case is to have three process schema for above cases. Name of schema will be decided by Evaluation ID.
Once the schema is decided then i need to define process level for each process schema.
Please let me know if i am on the right track??
Regards,
Sagar -
How to send message to MessageDrivenBean from Session bean in JDeveloper
HI I am trying to write a sample program using JDeveloper.
I am trying to do these steps
1) client class which gets Session bean and calls its method.
2) write Stateless Session bean with a method which gets MDB and sends message.
3) write Message Driven Bean ( which prints message recieved from Session bean )
Set up
=======
jms.xml
{JDevHome}\jdev\system9.0.5.2.1618\oc4j-config\jms.xml : changed jms.xml file and included
<topic name="Demo Topic" location="jms/theTopic">
<description>A dummy topic</description>
</topic>
<topic-connection-factory name="Demo Topic Connection Factory" location="jms/theTopicConnectionFactory">
<description>A dummy topic connection factory</description>
</topic-connection-factory>
orion-ejb-jar.xml:
edited MDB entry to
<message-driven-deployment name="MessageLogger"
destination-location="jms/theTopic" connection-factory-location="jms/theTopicConnectionFactory">
</message-driven-deployment>
Implementation
===============
In client class:
I am getting session bean like
Properties props = System.getProperties();
props.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY , "com.evermind.server.rmi.RMIInitialContextFactory");
props.put( javax.naming.Context.SECURITY_PRINCIPAL , "admin" );
props.put( javax.naming.Context.SECURITY_CREDENTIALS,"welcome");
props.put( javax.naming.Context.PROVIDER_URL ,"ormi://localhost:23891/current-workspace-app");
Context ctx = new InitialContext(props);
MySessionHome home = (MySessionHome)
javax.rmi.PortableRemoteObject.narrow(obj, MySessionHome.class);
This part works fine, and I am calling method on session bean created out of home.
In Session bean:
I want to get TopicConnectionFactory and tried these two ways:
a)
getting the context by setting new environemnt values like
Properties props = System.getProperties();
props.put( javax.naming.Context.INITIAL_CONTEXT_FACTORY , "com.evermind.server.jms.EvermindConnectionFactory");
props.put( javax.naming.Context.SECURITY_PRINCIPAL , "admin" );
props.put( javax.naming.Context.SECURITY_CREDENTIALS,"welcome");
props.put( javax.naming.Context.PROVIDER_URL ,"ormi://localhost:9227/current-workspace-app");
Context ctx = new InitialContext( props);
When I try this,it is complaining that it cannot instantiate EvermindConnectionFactory.
I am not sure which factory class we have to use here.i tried all the Factory class in that package.but didn't worked.
next I used,
b)
tried to use default context in session bean to get MDB factory
String TOPIC_NAME="jms/theTopic";
String TOPIC_CONNECTION_FACTORY="jms/theTopicConnectionFactory";
TopicConnectionFactory connectionFactory = (TopicConnectionFactory)new InitialContext().lookup("java:comp/env/" + TOPIC_CONNECTION_FACTORY);
this gives
04/06/13 23:46:09 javax.naming.NameNotFoundException: jms/theTopicConnectionFactory not found in MySession
04/06/13 23:46:09 at com.oracle.naming.J2EEContext.getSubContext(J2EEContext.java:93)
this may be because JMS server runs on different port than other EJBs and have different namespaces.
Can any body give info,how we can make use of Message Driven bean from a Session Bean or from a JSP page or from a simple class inside JDeveloper.
Thanks in advance.
gopalHi,
There are some hints in this forum for how to do this.
I put together and make it working.
This example creates an MD Bean and have a simple message and a client class send messages to that bean.
Steps
=====
1)
a)in {JDev Home}\jdev\system9.0.5.2.1618\oc4j-config\jms.xml
<topic name="Demo Topic" location="jms/demoTopic">
<description>A dummy topic</description>
</topic>
<topic-connection-factory name="Demo Topic Connection Factory" location="jms/theTopicConnectionFactory">
<description>A dummy topic connection factory</description>
</topic-connection-factory>
b) in current project in orion-ejb-jar.xml
go to orion-ejb-jar properties and add these values there to MDB node
destination-location=jms/demoTopic
connection-factory-location=jms/theTopicConnectionFactory
2) create a dummy session bean and a dummy client for that session bean
This sets default configuration for the client application we write
doing so we do not need to set properties to get Initial context.It makes use of
{JDev Home}\jdev\system9.0.5.2.1618\oc4j-config\.client\jndi.properties
We can directly get Contexxt ctx = new InitialContext();
3) Create MDB and put this sample code in method
onMessage()
TextMessage tm = (TextMessage) msg;
try {
String text = tm.getText();
System.err.println("Received new message : " + text);
catch(JMSException e) {
e.printStackTrace();
4) go to properties for the MDB and set Destination to Topic
5) write Client code
Context ctx =new InitialContext();
// 1: Lookup ConnectionFactory via JNDI
TopicConnectionFactory factory =
(TopicConnectionFactory) ctx.lookup("jms/theTopicConnectionFactory");
// 2: Use ConnectionFactory to create JMS connection
TopicConnection connection = factory.createTopicConnection();
// 3: Use Connection to create session
TopicSession session = connection.createTopicSession( false, Session.AUTO_ACKNOWLEDGE);
// 4: Lookup Desintation (topic) via JNDI
Topic topic = (Topic) ctx.lookup("jms/demoTopic");
// 5: Create a Message Producer
TopicPublisher publisher = session.createPublisher(topic);
// 6: Create a text message, and publish it
TextMessage msg = session.createTextMessage();
msg.setText("This is a test message from My Test Client!!! .");
publisher.publish(msg);
6) Run the server and run the client -
Exposing business process as session bean
Is it possible to expose a Workshop business process as a session bean?
I know they are deployed as session beans, but we don't have any control over the jndi name and remote/home interface names.
Thanks for any help. I'm really stuck on this one...
- RobWell, the answer to this is to create a JPD Proxy and call that from the session bean. I would have thought that a biz process control was useable anywhere...guess not.
-
Create session bean using interfaces, not implementation classes
Hi,
I'm using interfaces and session beans for my persistence/data layer in my adf application.
I've created a data control for my session bean and during creation of this data control, javabean.xml files are created for the different interfaces that are used in my session bean.
If I create bindings on these methods, interfaces in jspx-documents I will get errors because he can't find the impl-classes that implement these interfaces.
When using interfaces in your session bean (as return values or parameters) instead of classes you need to manually create javabean.xml files for the implementation classes.
It's required by the databindings/datacontrol that the implementation-classes are described in a javabean-format as well? Is this a spec we need to adhere to?
Could someone verify that you need to create javabean.xml-files for as well the interfaces as the classes when you're working with interfaces in your session beans?
regards,
NathalieA patch was released by Oracle to be able to work with Interfaces and so it's not required to work with implementation-classes.
Patch for 5726754(Base bug 5657179) -
Using a Statefull Session Bean with RMI on Multiple JSP pages
Heya all,
i have a JBoss server running with a statefull bean on it. I want to use it on my JSP pages. But every time I start my JSP-page a NEW INSTANTION of the bean is created! For each user using my page, I want ONE bean.
Is there anyway to do this? ANything with the sessioncontext?
I can do it with local beans, using the simple tags in the JSP-page, but they do not work for Remote Beans.
(I use JNDI)hi,
statefull session beans are client session specific. the instance will exists if client session exits.
now since u are loading the jsp page again in the other browser, a new instance will be associated with the current session.
hope it will work.
sameer
Maybe you are looking for
-
SQL> create type string_table is table of varchar(100); 2 / Type created. declare v_names string_table := string_table(); begin v_names.EXTEND(3); v_names(1) := 'name1'; v_names(2) := 'name2'; v_names(3) := 'name3'; dbms_output.put_line(v_names(1));
-
I need quick time 7.5.5 for itunes.How to repair problem of installation?
I have mac leopard 10.5.5 powerpc and I have itunes 10.6.3. Itunes need Quick Time 7.5.5 or more. I tried to install quick time but there is a problem of instalation. How to repair problem of installation of Quick Time?
-
Can't import SavingsAccountHome with Deploytool
*****MY QUESTION TO YOU*********** Why can't deploytool load SavingsAccountHome? A few facts: --j2ee is running --cloudscape is running --'ant create-savingsaccount-tables' worked (I can query the table) --'ant savingsaccount' worked, i.e., no error
-
Compressing pdf's and keep image quality for email send outs
Hello I have a 55MB Pdf file which I would like to compress to be compatible with email send outs. I work a lot with imagery and need my visuals to be crisp and sharp. Anyone clued up on what settings to use to keep the best possible image quality? W
-
I am receiving an error message "an application has made an attempt to load the C runtime library incorrectly