Possible bug in JEE Application Server Library MP?
The Beanspy Alert monitor reports alerts with missing data. See example below, specifically the {} returned parameters appear empty/incorrect.
Application server connection lost
Alert Description
Source:
Full Path Name:
Alert Monitor:
BeanSpy
Created:
The Health Service lost the connection to BeanSpy on port {2} to the machine {1} for the application server ID '{0}'.
So the next step I took was taking a deep dive into the JBoss.Monitored.Configuration.Discovery scripts and I found that the script tries to find and/or create registry keys about its discovered Jboss instances.
The key being created is: HKLM\Software\Microsoft\Microsoft Operations Manager\3.0\Modules\{GUID}\.\Script\PersistedDiscovery
In that key, values are stored called HTTP and HTTPS.
The persistedDiscovery key is deleted and recreated when you stop the Microsoft Monitoring Agent service and/or flush the health state cache. Thus manually adding the values is no use.
The HTTP and HTTPS values in a Jboss7 instance running domain mode cannot be retrieved because the port configuration is done at the Jboss domain controller and 'streamed' to the Jboss domain hosts.
In JBoss 5 instance however I see HTTP and HTTPS values being inserted into the registry. In a few cases incorrect information about ports is found and added to the registry.
In the Jboss discovery vbs I found the pieces for Jboss5:
' Get the HTTP & HTTPS ports of the JBoss 5 installation that runs a specific configuration
' Do this by adding the offset for the port binding to the base ports found in the XML file
' bindings-jboss-beans.xml located in <configuration>\conf\bindingservice.beans\META-INF\
Apparantly what is written in this file does not actually reflect the running config.
For Jboss7 it appears quite a bit more complex (especially running domain mode):
Step1:
' Get the HTTP and HTTPS ports for a JBoss 7 or Wildfly installation that is running in domain mode
' In order to get the HTTP Ports we must first retrieve the group that the server belongs too, as well as the port offset for each server
' These values both resiode within the host.xml file
Step2:
' We then look within domain.xml to find the profile reference based on the group name that we retrieved from host.xml
' After the profile reference we then can find the socket-bindings for http and https ports
While the information is there, these values are not added to the registry.
Thus, so far the script is looking in the right place to find the used ports for that particular Jboss7 Service, yet the monitor for the BeanSpy is not using that port to contact the BeanSpy.
My investigation continues...
Similar Messages
-
ThreadPoolExecutor in a JEE Application Server
Our application runs inside a jee application server.
We have tasks (implemented as a pojo) that need to be queued and executed by asynchronous threads.
We came across the new java.util.concurrent.ThreadPoolExecutor,
which seems to be exactly what we need.
However, as far as we know threads should be created ONLY by the jee application server.
Does this mean we can't use the ThreadPoolExecutor class in a jee application server?
If so what is the best practise for queueing tasks that need to be executed by a configurable pool of worker threads?
p.s
We are aware that JMS is also an option, but it entails a bit of an overhead in our case because the tasks are INTERNAL to the local application server ( so there is no need for messaging between 2 application servers).
thanks
JohnJMS is certainly a solution to this problem.
JMX service MBeans are also a solution. they are a technology which was sort of (poorly) adopted into j2ee without a lot of specification about how to control them (just that they are there and can be used). on jboss, there are some proprietary extensions which make it very easy to setup a JMX MBean. i'm sure other app servers have similar facilities. anyway, MBeans do not have the concurrency restrictions of EJB's as they are singleton services, so that is where i would put such a worker thread pool. -
ThreadPoolExecutor in JEE application server
Our application runs inside a jee application server.
We have tasks (implemented as a pojo) that need to be queued and executed by asynchronous threads.
We came across the new java.util.concurrent.ThreadPoolExecutor,
which seems to be exactly what we need.
However, as far as we know threads should be created ONLY by the jee application server.
Does this mean we can't use the ThreadPoolExecutor class in a jee application server?
If so what is the best practise for queueing tasks that need to be executed by a configurable pool of worker threads?
p.s
We are aware that JMS is also an option, but it entails a bit of an overhead in our case because the tasks are INTERNAL to the local application server ( so there is no need for messaging between 2 application servers).
thanks
JohnHi John,
One alternative is to use the EJB Timer Service. It allows you to create either a single-action
or periodic timer that will call into a stateless session bean (or MDB) when it expires.
Also, regarding the use of JMS, whether the processing of the message entails more than one
JVM or not is an implementation detail. There's no requirement that the JMS service itself
be located outside the application server JVM. If the producer and consumer are in the
same JVM it's perfectly legal for the implementation to process everything locally. In fact,
that's the default implementation in the Java EE SDK. Of course, there are more
sophisticated topologies that come into play for high availability and cluster solutions.
--ken -
Bug in bundled Application Server prohibits Acegi security integration
I am using JSC 2, Update 1 and have run into a problem trying to integrate Acegi security into my Web app. After some hours of frustration I have found that the problem apparently stems from a bug in the bundled Sun Application Server (version 8.2). If I deploy my application to Tomcat 5.5, the problem disappears.
The exception that occurs on the bundled Sun Application Server is:
java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken
For information about the appserver bug that causes this exception look at:
http://forums.java.net/jive/thread.jspa?threadID=13150&messageID=83666
The last three entries in the above thread discuss the problem and also link to other places where the problem is discussed. See in particular these links:
https://glassfish.dev.java.net/issues/show_bug.cgi?id=221
and
http://www.jroller.com/page/agrebnev?entry=acegi_does_not_work_at
The Glassfish bug database indicates that the bug was fixed in the b38 version of Glassfish. However, the fix apparently hasn't made it into the bundled Sun Appserver 8.2.
I hope this information will spare someone else the frustration of hunting down the source of this problem. Since Acegi is becoming a very popular option for adding security to Java webapps, I probably won't be the only person to run into this little gotcha.
Also, I'd appreciate any info the Creator team can provide about when the bundled appserver might be fixed.
Thanks,
CharlieCould someone on the Creator team please comment on this issue? Is there any plan to upgrade the bundled Sun Application Server to version 9.0? (I'm assuming this bug is fixed in 9.0 -- although I haven't been able to verify that. Actually, I'm not very clear on the relationship between the various Glassfish versions and the various Sun Application Server versions.) Or is there a plan to support Glassfish and/or Tomcat as development servers (rather than just deployment servers).
It seems like my only other possible alternative is to use Netbeans 5.5 with the Visual Web pack. But since the Visual Web pack is a pre-beta release I'm leery about using it for developing a production Web app.
Thanks in advance for your help.
Charlie -
Possible bug with af:selectOneChoice (Server Exception during PPR, #1)
Hi,
I have a big problem and it goes like :
I have a master-detail form (two very simple View Objects linked by a view link, usual stuff...) and I use popup windows for adding new detail records .
On the popup window for inserting new detail records I have a return ('Cancel') button (with the standard fuctionality of giving up the inserting, closing popup etc..)
In the same popup, I have some LOV-s as af:selectOneChoice.
Everything works fine, as expected, except in the case when there are no existing detail records, and user tries to insert the first detail record
(by calling CreateInsert operation), and then decides to cancel operation by clicking the Cancel button.
Then, NullPointerException raises with following stackTrace:
P.S. We are discovered that the problem is in the af:selectOneChoice, when there are no such one component in the popup,
all works without problems. The problem raises in a lot of JSF pages which contains af:selectOneChoice
So, stackTrace is:
[2008-04-03T12:16:47.773+02:00] [adfinternal] [ERROR] [] [view.faces.config.rich.RegistrationConfigurator] [tid: 13] [ecid: 192.168.67.109:9382:1207217807679:36,0] [APP: current-workspace-app] Server Exception during PPR, #1[[
java.lang.NullPointerException
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding$1.size(FacesCtrlListBinding.java:115)
at java.util.AbstractList$Itr.hasNext(AbstractList.java:416)
at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.addSelectItems(SelectItemUtils.java:206)
at oracle.adfinternal.view.faces.renderkit.rich.SelectItemUtils.getSelectItems(SelectItemUtils.java:77)
at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer.getSelectItems(SimpleSelectBaseRenderer.java:239)
at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer._renderContent(SimpleSelectBaseRenderer.java:192)
at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectBaseRenderer.renderNonElementContent(SimpleSelectBaseRenderer.java:100)
at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.encodeAllAsNonElement(FormInputRenderer.java:241)
at oracle.adfinternal.view.faces.renderkit.rich.SimpleSelectOneChoiceRenderer.encodeAllAsNonElement(SimpleSelectOneChoiceRenderer.java:204)
at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.encodeAll(FormElementRenderer.java:129)
at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:846)
at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.renderFieldCellContents(LabeledInputRenderer.java:153)
at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.renderFieldCell(LabelLayoutRenderer.java:495)
at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.encodeAll(LabelLayoutRenderer.java:299)
at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.encodeAll(LabeledInputRenderer.java:140)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormItem(PanelFormLayoutRenderer.java:958)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeFormColumns(PanelFormLayoutRenderer.java:831)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer._encodeChildren(PanelFormLayoutRenderer.java:326)
at oracle.adfinternal.view.faces.renderkit.rich.PanelFormLayoutRenderer.encodeAll(PanelFormLayoutRenderer.java:195)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
at oracle.adfinternal.view.faces.renderkit.rich.PanelWindowRenderer.encodeContent(PanelWindowRenderer.java:269)
at oracle.adfinternal.view.faces.renderkit.rich.PanelWindowRenderer.encodeAll(PanelWindowRenderer.java:190)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
at oracle.adfinternal.view.faces.renderkit.rich.PopupRenderer.encodeAll(PopupRenderer.java:225)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:136)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:287)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:304)
at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:374)
at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:815)
at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:208)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:733)
at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1271)
at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:753)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:244)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:175)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:619)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:241)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:201)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)If there are at least one detail record, all works as expected
Any idea why this happens ? Sounds like a u bug to me....Hi,
good news first: The behavior you describe doesn't reproduce in a later build that we use to verify TP4. I didn't test with TP3 but observed two wrong PPR references that I fixed before running the app
the corrected PPR entries are
partialTriggers=":::saveAndCreateOrderItemsBtn :::cancelInsertOrderItemsBtn">
and
partialTriggers="::ordersPanelCol:ordersTable">
Also, on the panel Splitter I removed the inline style width:100% height:100% with AFVisualRoot as the style class property. Its a minor cosmetic correction that had nothing to do with the behavior
Again, thanks for your cooperation. I really apreciate good testcases
Frank -
Application server name and port number
Hi
Is it possible to get the application server name(ip) and port number at runtime. Becuase i want to open an html file which is in the application server, when a button is pressed by using web.show_document ();
Can anyone guide me please.
Thanks in advance
geethuapplication server name and port number
-
Get Application Server Name and Version
Hello All,
Is it possible to get the Application Server Name and Version using Java?
To simplify my question, if I am running Weblogic, the jsp page should tell me that I am running Weblogic Version <number> or IBM WebSphere Version <number>.
ThanksI get an error when I put this line in my jsp page:
out.println(" Server Info: " +getServletContext().getServerInfo());
Is there something I am missing?
symbol : method getServletContext ()
location: class jsp_servlet._jsp._mu.__showmxversion
out.println(" Server Info: " +getServletContext().getServerInfo()); //[ /jsp/mu/showMXVersion.jsp; Line: 16] -
Server library dependency from Webdypro
Hello
I am working with NW04s SP09 Sneak Preview.
I have the following DCs:
webdynpro application ->server library DC-> java DC
Java DC uses webdynpro API. When webdynpro application invokes classes from java DC I got an exception
java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/progmodel/api/IWDNode
Then I have added tc/wd/webdynro in Used DC section of server library (Build time and runtime dependency).
When I deploy webdypro application I got error:
<i>
java.rmi.RemoteException: Error occurred while starting application server.com/wdui and wait. Reason: Clusterwide exception: server ID 38683950:com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application ''server.com/wdui'' for startup. Reason=Clusterwide exception: Failed to start dependent library ''server.comcommonutil-slib'' of application ''server.com/wdui''. Status of dependent component: STATUS_DEPLOYED. Hint: Is the component deployed correctly on the engine?
</i>
Could you help me how to solve this problem? How to add webdynpro api dependency to server library?Hi Denis,
You should have a look at this thread
/people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro -
Websphere application server and JDBC
Hi
I'm new to enterprise apps development and I'm writting a webservice application, hosted on a websphere 6.1 application server.
I need to establish a JDBC connection to a database on my webservices and I want to know if it's possible to use the application server's resources to do it. Instead of creating a connection every time I need to access the database, is it possible to use some kind of connection pool, managed by websphere?
Can you give me any pointers to information on the subject?
Thanks in advance
Pedro.Follow the bouncing link to a whole list of related material.
http://www.google.com/search?hl=en&q=WebSphere+%2B+DataSource
Google is your friend in times like this.
Regards,
PS -
Oracle Application Server 10g Standalone Installation
Hello,
Can you please let us know if it is possible to Install Oracle Application Server (10g) Standalone ( without SOA suite 10g).
If there is any documentation/link which can provide this information.
Thanks,
Hussain
PIM Dev TeamHi,
Following are the version and platform details.
OAS Version - 10.1.3.4
Platform - IBM AIX 6.1
Questions
a) Please provide document/link with the details about how to install Standalone Oracle AS ( without SOA Suite)
b) Are are any restrictions in installing standalone Oracle AS ( in terms of License .. etc).
Appreciate your help.
Thanks
- Hussain -
Install both Sun Application server and Jboss application server- Can I?
Dear all,
I am programmer and want to test for something.
Is it possible to install sun application server and jboss application server in the same computer (Windows XP Professional)?
Is there any special attention I need to take?I am programmer and want to test for something.Allowed.
Is it possible to install sun application server and jboss application server in the same computer (Windows XP Professional)?Why do you think it may not be possible ?
Is there any special attention I need to take?just the way the URL is populated. -
Renaming Application Server Instance
Is it possible to rename an application server instance? If so how? For example, if I have an application server instance called INFRA.host.domain.com, I need to rename the host to host2, so I therefore want the application server instance renamed to INFRA.host2.domain.com.
Can this be done without a re-install?Hi Brian,
Changing the host name for an infrastructure node will not work. Check out chapter 8 (Changing Network Configurations) of the admin guide for more info.
Regards,
/Mathias -
Hi,
I have a WCF application to pull calendar exception detail from a Project Server instance 2013. As per msdn links shared below I have added two dlls Microsoft.Office.Project.Server.Library , Microsoft.Office.Project.Server.Events.Receivers as well as ProjectserverServices.dll
from the server.
On building the solution I am an error, The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?).
The links referred for development are-
https://msdn.microsoft.com/en-us/library/office/gg223326(v=office.15).aspx
https://msdn.microsoft.com/en-us/library/office/ee872368(v=office.15).aspx
Thanks in advance!!
Mridhula
Mridhula.SHi All,
The issue is resolved!! The Target framework by default was set to .NET Framework 4 Client Profile instead of .NET Framework 4.
Regards,
Mridhula
Mridhula.S -
Is possible to install Application server 7 on SuSE linux 9.0
is possible to install Application server 7 on SuSE linux 9.0
Actually, this might not be the case since version 7 is based on native implementation of web container while version 8 is based on Tomcat (i.e. pure Java implementation). So, version 7 will definitely be more prone to platform specific issues.
Just something to have in mind... -
Is to possible to implement clestering in Application Server.
Hi Experts,
I am curious to know that is it possible to implement clustering for Oracle Application Server 10g.Yes. Please see this [OAS 10g R3|http://download.oracle.com/docs/cd/B25221_04/core.1013/b15977/framewk.htm#sthref61] and [OAS 10gR2|http://download.oracle.com/docs/cd/B14099_19/core.1012/b14003/framewk.htm#CIHDIGEB]. There are some differences in the way R2 and R3 addresses it that you can also get from these links.
thanks!
AMN
Maybe you are looking for
-
USB ports failing to mount an external hard drive, recognize a printer.
Hello, I have a Mac Mini running 10.5.8. Suddenly the usb ports do not mount external hardrives (I have 2) and also do not recognize an Hp printer. If I plug the keyboard an the mouse, they are recognize and useful. Firewire mounts one of my firewire
-
How to access a PC formatted external hard drive
I am trying to access a PC formatted external hard drive, however when I attempt to mount it I get a message saying the drive is not recongnized and if I want ti initialize, which i believe if I execute will remove the files I am trying access..Is th
-
Ok, What is all this "other" taking up space on my iphone and how do I get rid of it? It's taking up almost half the space on my phone.
-
IN MY REPORT I AM CREATING 2 QUERIES,1 THROUGH LAYOUT. AND 2ND QUERY IN DATA MODEL.I USED REPEATING FRAMES FOR THE 2ND QUERY BUT WHEN I RUN MY REPORT I CANNOT VIEW THE REPEATING FRAMES IN MY OUTPUT.PLS HELP ME TO SOLVE THIS PROBLEM.
-
Adding partition to free space on external that contains RAID 0 array
Hello. I have a Lacie 2BIG 6TB Thunderbolt drive. This was partitioned into a 5TB RAID-0 array, with some smaller partitions in the rest of the available space for other media and backups. I tried to delete the other partitions to consolidate whateve