Java Monitoring - Displaying MBeans in the Visual Administrator
Hi Experts,
concerning monitoring of java applications. I am trying following:
BroadcastingStandardMBeanWrapper wrapper = null;
wrapper = new BroadcastingStandardMBeanWrapper(mBean, null, p);
mbs.registerMBean(wrapper, monitoringObjectName);
cause I want my MBean to be displayed as a node in the Visual Administrator.
But it doesn't work like it is supposed in [Sap help|http://help.sap.com/saphelp_nw70/helpdata/de/47/30c6348479784c9482c70acd52b6da/frameset.htm]
Thanks for any help!!!!
Mirko
Hey,
I'm also facing the same problem, Can someone explain more about a way to solve it and in the visual admin where should I see the result (my Mbean)
Thanks
Similar Messages
-
Display Size of the Visual Admininstrator
I have an interesting problem - the display size of the Visual Administrator in one of my Netweaver systems has opened very small - I cannot stretch it any bigger. In all the rest of my systems the Visual Admininstrator opens full screen (we are AIX-UNIX).
I think I can probably solve the problem by rebooting the server but I would like to know if there is any way to control the size of the Visual Admininstrator? Is there a configuration file or something similar?
Thanks
PatrickHello Patrick ,
I have no idea how to resize the visual admin.
But the easiest thing to do is to install the visiual admin locally on a windows desktop.
Be shure you have installed jre 1.4.2 on your windows desktop.
Then copy the complete /usr/sap/<SID>/DVEBMGSXX/j2ee/admin
directory to your windows desktop.
Just doubleclick on the go.bat and the visual admin starts.
Create the desired connections and youre finished.
Have fun,
E.ITS-BAsis -
Error when trying to lainch the visual administrator
Hello,
I have installed the Solution manager 7.1 on Linux 5.4 / Oracle 11.2.0.2 while i am trying to open the visual administrator to configure the SLD (Creation of the onnection LCRSAPRFC_<SID>), i am getting the following error:
+SD1ODYLSV1:sd1adm 17> pwd
/usr/sap/SD1/DVEBMGS00/j2ee/admin
SD1ODYLSV1:sd1adm 18> ./go
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 Linux amd64-64 j9vmxa64142ifx-20110628 (JIT enabled)
J9VM - 20110627_85693_LHdSMr
JIT - 20090210_1447ifx5_r8
GC - 200902_24)
Exception in thread "main" java.lang.UnsatisfiedLinkError: awt (libXp.so.6: cannot open shared object file: No such file or directory)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:990)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:954)
at java.lang.System.loadLibrary(System.java:409)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:76)
at java.security.AccessController.doPrivileged(AccessController.java:197)
at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:81)
at sun.awt.DebugHelper.<clinit>(DebugHelper.java:56)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.awt.Component.<clinit>(Component.java:571)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:61)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:336)
at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)
+
The package libXp.so.6 is already installed and the x server used (Exceed )in my case works fine.Hi Hassan,
Visual Administrator is no more as of NetWeaver 7.10 release. Please start using NetWeaver Administrator (NWA) to configure SLD.
Please have a look at the below link to configure NWA to work with SLD.
http://help.sap.com/saphelp_nw70/helpdata/en/23/b557422d095542e10000000a1550b0/content.htm
Please let me know if you need any further help.
Thanks,
Siva Kumar -
Error starting visual administrator
Hi all,
We have implemented SRM5.5 with AS Abap and java. When i run the visual administrator, i am getting the following error. can any one help me out this.
3/26/07 10:53 AM com.sap.engine.tools.launcher.Launcher Error : unable to invoke main class com.sap.engine.services.adminadapter.gui.AdminFrameView
com.sap.engine.tools.launcher.LauncherException
at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:340)
at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)
caused by -
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:336)
at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)
Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:139)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:231)
at java.awt.Window.<init>(Window.java:275)
at java.awt.Frame.<init>(Frame.java:401)
at java.awt.Frame.<init>(Frame.java:366)
at javax.swing.SwingUtilities$1.<init>(SwingUtilities.java:1641)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1637)
at javax.swing.JWindow.<init>(JWindow.java:160)
at javax.swing.JWindow.<init>(JWindow.java:112)
at com.sap.engine.services.adminadapter.gui.AboutWindow.<init>(AboutWindow.java:12)
at com.sap.engine.services.adminadapter.gui.AdminFrameView.main(AdminFrameView.java:234)
... 6 more
caused by -
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.tools.launcher.Launcher.launch(Launcher.java:336)
at com.sap.engine.tools.launcher.Launcher.main(Launcher.java:114)
Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:139)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:231)
at java.awt.Window.<init>(Window.java:275)
at java.awt.Frame.<init>(Frame.java:401)
at java.awt.Frame.<init>(Frame.java:366)
at javax.swing.SwingUtilities$1.<init>(SwingUtilities.java:1641)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1637)
at javax.swing.JWindow.<init>(JWindow.java:160)
at javax.swing.JWindow.<init>(JWindow.java:112)
at com.sap.engine.services.adminadapter.gui.AboutWindow.<init>(AboutWindow.java:12)
at com.sap.engine.services.adminadapter.gui.AdminFrameView.main(AdminFrameView.java:234)
... 6 more
Thanks in advance,
Sailesh KHi, Sailesh
One reason might be the setting of Unix X11 - DISPLAY variable.
Please check whether you can execute other GUI application. Xclock
or something like that.
And please check the environment variable DISPLAY is set correctly.
Best Regards. -
Organization of MBeans in Visual Administrator
I have some MBeans registered and visible on the Visual Administrator tree. The documentation / examples I've been able to find place these at "/Cluster" (e.g., /Cluster/MyMBean). I'd like to group them so that all the MBeans for my app are displayed together, in some location other than the root. For example, I'd like for
/Cluster/MyMBean
to go someplace like
/Cluster/Applications/MyApplication/MyMBean
but is this even possible? Can I create arbitrary expand/collapse nodes/types using the administration adapter?
TIA,
BillFigured it out myself. Was using the wrong MBeanServerConnection.createMBean method - the one that tries to instantiate the mbean with a no-arg constructor. <:-|
Should have been:
Hello mbean = new Hello();
Object[] params = new Object[] { mbean, HelloMBean.class, p };
String[] sig = new String[] { "java.lang.Object", "java.lang.Class", "java.util.Properties" };
mbsc.createMBean(wrapperClass, objectName, classloaderName, params, sig); -
Remote MBeans in Visual Administrator
Is it possible to register an MBean remotely, and have it accessible via the Visual Administrator? (and shouldn't I see the bean using the monitoring service whether I extend BroadcastingStandardMBeanWrapper or not?)
I've been through 3 or 4 iterations now, but here's a snippet of what I'm looking at currently.
MBeanServerConnection mbsc = m.connect();
String pathInTheTree = "/Applications/Remote JMX";
/* Create the Hello World MBean */
Hello mbean = new Hello();
ObjectName cl = ObjectNameFactory.getNameForClassLoader("sap.com/myclassloader", null, null);
Properties p = new Properties();
p.setProperty("admin.path", "/Cluster/MyMBean");
p.setProperty("admin.displayName", "MyMBean");
BroadcastingStandardMBeanWrapper wrapper = new BroadcastingStandardMBeanWrapper(mbean, null, p);
ObjectName name = ObjectNameFactory.getNameForServerChildPerNode(ObjectName.quote(pathInTheTree), wrapper.getClass().getName(), null, null);
if (mbsc.isRegistered(name)) {
mbsc.unregisterMBean(name);
mbsc.createMBean(wrapper.getClass().getName(), name, cl);
Which yields the following stack trace:
Exception in thread "main" javax.management.ReflectionException
at com.sap.engine.services.jmx.MBeanServerConnectionImpl.invokeMbsInternal(MBeanServerConnectionImpl.java:523)
at com.sap.engine.services.jmx.MBeanServerConnectionImpl.createMBean(MBeanServerConnectionImpl.java:128)
at com.example.mbeans.Main.main(Main.java:57)
Caused by: java.lang.NoSuchMethodException: com.sap.engine.services.basicadmin.mbean.BroadcastingStandardMBeanWrapper.<init>()
at java.lang.Class.getConstructor0(Class.java:1937)
at java.lang.Class.getConstructor(Class.java:1027)
at com.sap.engine.services.jmx.CompletionInterceptor.instantiate(CompletionInterceptor.java:632)
at com.sap.engine.services.jmx.CompletionInterceptor.createMBean(CompletionInterceptor.java:272)
at com.sap.engine.services.jmx.CompletionInterceptor.createMBean(CompletionInterceptor.java:250)
at com.sap.pj.jmx.server.interceptor.BasicMBeanServerInterceptor.createMBean(BasicMBeanServerInterceptor.java:94)
at com.sap.engine.services.jmx.RedirectInterceptor.createMBean(RedirectInterceptor.java:157)
at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.createMBean(MBeanServerInterceptorChain.java:202)
at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.createMBean(MBeanServerSecurityWrapper.java:210)
at com.sap.engine.services.jmx.MBeanServerInvoker.invokeMbs(MBeanServerInvoker.java:102)
at com.sap.engine.services.jmx.ClusterInterceptor.invokeMbs(ClusterInterceptor.java:212)
at com.sap.engine.services.jmx.ClusterInterceptor.createMBean(ClusterInterceptor.java:391)
at com.sap.engine.services.jmx.MBeanServerInterceptorInvoker.invokeMbs(MBeanServerInterceptorInvoker.java:75)
at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImpl.invokeMbs(P4ConnectorServerImpl.java:61)
at com.sap.engine.services.jmx.connector.p4.P4ConnectorServerImplp4_Skel.dispatch(P4ConnectorServerImplp4_Skel.java:64)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
This seems to be due to the absence of a no-arg contructor (which is not required by the spec, IIUC), so I hacked around that by wrapping the wrapper (aack) and delegating method invocations appropriately... This runs normally, but I still don't see my MBeans in the visual admin console.
Thoughts, anyone?
TIA,
BillFigured it out myself. Was using the wrong MBeanServerConnection.createMBean method - the one that tries to instantiate the mbean with a no-arg constructor. <:-|
Should have been:
Hello mbean = new Hello();
Object[] params = new Object[] { mbean, HelloMBean.class, p };
String[] sig = new String[] { "java.lang.Object", "java.lang.Class", "java.util.Properties" };
mbsc.createMBean(wrapperClass, objectName, classloaderName, params, sig); -
What is the default port on visual administrator with 2004s
Hi
I just finished the install of Netweaver 2004s and oracle is up and running and the j2ee engine as well.
I want to lauch the visual administrator but unable to connect
its saying cannont connect to ip and port....
What is the default port for the first time login
Also,
went threw my web browser was able to access the portal page of the Netweaver... I tried the sap* user name but doesn't work
JFHi Jean
The default port for VA is 5XX04 (where XX is the instance number)
the user for the portal is Administrator (not sap*) and the password is the one you used on the installation.
Hope this help
Juan
Please reward with points if helpful -
Using the datasource in Visual Administrator in the portal appliction
Hi All,
<b>
I want to use the datasource created in the Visual Administrator in my portal application. How do I use it in the portal application to create some tables and make some entries???
</b>
regards
BrahmachaitanyaHi Brahmachaitanya ,
You can do a lookup like this:
InitialContext contx = new InitialContext();
DataSource datasource = (DataSource)contx.lookup("jdbc/SAPJ2EDB");
Connection connection = datasource.getConnection();
Greetings,
Praveen Gudapati
p.s. Points are always welcome for helpful answers -
Access visual administrator from the desktop
Hi,
Can anyone tell me if it is possible to access the visual administrator of the XI server from a PC in the network by downloading the go.bat file from the marketplace?
Thanks.Hi,
You need Xterm/X-windows to access Visual Admin of your remote server with in the network.
I think we can access the PI server,by just download the go.bat file from service market place..
cheers
deepu -
Error installing a new license with visual administrator
Hey there,
we´ve installed a SAP EP on Win 2003 Server machine with sapdb on the same host.
I ordered a license from sap an get a .txt-file back.
While installing the license with the visual administrator some java exceptions occurred, but the popup notes everything has finished succesfully - I think because the file was on a netshare on a another host.
So I copied the file to the local drive - then the import runs without an error.
After a restart of the engines ->
the license check is always displaying the "old amount" of 2 days until epxiry.
After a system reboot -> no changes
What went wrong?
Message was edited by: Thomas UhlThomas,
Not having ABAP stack is certainly not a concern with license keys.
Once or twice before, even with following/knowing the procedure SAP on a few occasions sends out license keys that are problematic. If you havent opened up an OSS ticket to report the problem, i would do so. Or to have a quicker resolution, you could apply for a new license, but I would include as much information on your customer profile on https://service.sap.com/licensekey.
James -
User Authentication Failed via http BUT not with Visual Administrator !!?
OS : Win 2k3 Server UK * DB : SQL Server 2005
SAP Netweaver 2004s Application Java
Hi All,
Since a couple of days, I have a problem concerning authentication to the java apllication on a SAP Netweaver 2004s.
Using the user Administrator, I CAN logon the Visual Administrator tool, with the same user I tried to logon via http://host:port/nwa without success.
At the beginning, I was thinking about a problem of password then I enabled the emergency user SAP*, the problem was the same. Ok with Visual Administrator but not via http.
Here is two logs found in folder : D:\usr\sap\SID\JC02\j2ee\cluster\server0\log\system\
security.3.log
<i>#1.5#001871E5EA3A00550000006D0000172800043B836D838427#1191335570983#/System/Security/Audit#sap.com/com.sap.security.core.admin#com.sap.security.core.util.SecurityAudit#Guest#0####5aac137070f411dcc513001871e5ea3a#SAPEngine_Application_Thread[impl:3]_11##0#0#Warning#1#com.sap.security.core.util.SecurityAudit#Plain###Guest | LOGIN.ERROR | null | | Login Method=[default], UserID=[Administrator], IP Address=[192.168.10.125], Reason=[Authentication did not succeed.]#</i>
server.0.log
<i>#1.5#001871E5EA3A0052000000130000172800043B835E3661D1#1191335314249#/System/Server/SLDService##com.sap.sldserv.SldServerFrame######c1a349a070f311dcaa68001871e5ea3a#SAPEngine_System_Thread[impl:5]_71##0#0#Warning#1#com.sap.sldserv.SldServerFrame#Plain###Failed to collect SLD data. Failed to send HTTP data: 401 : Unauthorized. Please check if the target SLD system is available and the SLD bridge is started there.#</i>
 I tried to connect http://host:port/sld same problem User Authentication Failed
<b>Do you have an idea for me? Why a user can connect via Visual Administrator and not via the http interface?</b>
Thanks in advance
YvesHi,
I found the solution this last week-end.
This behavior let's thinking to a problem of authentication.
But the problem was in SQL, an index was missing in table J2EE_CONFIG, called J2EE_CONFIG_I3
Cheers
Yves -
Regarding J2EE Visual Administrator
Hi,
I am new to the World of Web Dynpro in Java. I have developed a small Web Dynpro Application to access ABAP R/3 Backend. I have to check connection parameters for the used SLD, which are defined in the J2EE Visual Administrator.. Kindly tell me where is the J2EE Visual Administrator located.. How to check those parameters?
Thank You.
Regards,
DhanaOpen the Visual Administrator by double-clicking the file go.bat in the local file directory of the Java engine of the SAP Web Application Server:
\usr\sap\<System ID>\<System Number>\j2ee\admin
The follow <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/15/b4ba8f207a40ab8d28165cf3b04de4/frameset.htm">Setting Up the SLD Data Supplier for J2EE-Based Systems</a>
Bala -
Where is the fully qualified portal url is maintained in the Visual Admin
Hi ,
Please let me know *Where is the fully qualified portal url is maintained in the Visual Administration during portal installation in a simple Java stack
.*Rgrds,
SaketThe portal is using the server name you use to access the portal. So when you user http://server:5NN00, the portal will use only server for the links (or server.domain or IP or ...). There are however some portal services that need a server name configured (lke KM).
When the portal is connecting to another server your DNS should be set up correctly to resolve the IP to the FQDN.
br,
Tobias -
How to connect to Visual Administrator?
Hi all!
I want to connect to visual administrator to configure BI JDBC Connector.
However the problem is that i don't know how to launch the Visual administrator.
On the step by step document, it's said that VA can be launched using the file "C:\usr\sap\(sid)\jc00\j2ee\admin\go.bat" but i think it isn't installed on the computer.
So may i have an advice or a way of installing it.
Thanks in advance.
Regards.
LahoucineHi Lahoucine,
have you installed the BI Java components? If not, then there is no Visual Administrator on your server...
If yes, it is located in the folder as you descibed depending on the drive you installes the system (c: or D: or...), the <SID> which is the three-letter SystemID of your SAP system and the folder JCXX where XX is anumber between 00 and 99 (corresponding to the system number of your SAP System).
Hth,
Michael -
Unable to install Visual Administrator for CE 7.1 Preview....
Hi All,
I am trying to install Visual Administrator using go.bat located under ..usr\sap\CE1\J00\j2ee\JSPM.
When I trying to install, its asking me the "Select a package type to apply"
There are four options :
1. Java Support package manager
2. Single support package and paches(advance use)
3. Hot fixes
4. New software component.
None of the option working for me to get the next level to install. Could you please help me to install the Visual Administrator and SDM for the CE7.1 SR5 preview additio.
Thanks in Advance!
Arun JaiswalHi Benny,
Thank you so much for the information!
Could you please let me know then how to deploy application without SDM password in the CE7.1 SR5 portal.
Thanks in advance!
Arun Jaiswal
Maybe you are looking for
-
Hello fellow PI/BPM experts! At a customer its required to build a ccBPM that ends the previous BPM who is processing a message with the same correlation ID. The idea was to send a "Kill"-message at the start of the BPM to the same BPM class, and lat
-
Can I remove safely Photoshop CS5 after a successful upgrade to Photoshop CS6?
Can I remove safely Photoshop CS5 after a successful upgrade to Photoshop CS6? What is best and safest way to do this?
-
Possible workaround for CSCed41207
Hi, Maybe not a real solution, but could be used as a workaround for bug CSCed41207 (CallManager needs support for MGCP fractional PRI). You can set the B channels which are unavailable (because it's a fractional PRI) to maintenance mode with the fol
-
Sun Studio 11 "Warning (Anachronism)"
Hello, Compiling a C++ program using Sun Studio 11 compiler on Solaris, I get warnings like this: Warning (Anachronism): Using blabla(*)(<params>) to initialize extern "C" blabla(*)(<params>). For example, this happens passing a callback of type jvmt
-
SERIOUSLY slow USB hard drive on the new Airport Extreme 802.11n
I have recently bought the new airport etreme 802.11n. Great little device, look wonderful on the office desk. I had some troubles getting it up and running on my machine but finaly got there in the end. The USB hard drive is a great little addition