Quantcast
Channel: SCN : All Content - Web Dynpro Java
Viewing all 1288 articles
Browse latest View live

can I customize com.sap.portal.navigationarea?

$
0
0

in sap portal 7.3 I want download  com.sap.portal.navigationarea.war, customize it and deploy as com.sap.portal.navigationarea.cust. Can I do it and after link to layout?


Property 'null' bound to 'defaultLanguage' of ViewElement with ID 'RadioButton' is not editable!

$
0
0

Hello,

 

I have a question how to solve the following issue:

 

1. When I use the filter function, I unchecked deleted and select Default radio button, than I`m facing the following WDRuntimeException:

 

500   Internal Server ErrorSAP NetWeaver Application Server/Java AS

 

 

The initial exception that caused the request to fail, was:

 

 

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Security Violation: Property 'null' bound to 'defaultLanguage' of ViewElement with ID 'RadioButton' is not editable!

    at com.sap.tc.webdynpro.progmodel.view.SecureInteractionHelper.handleSecurityViolation(SecureInteractionHelper.java:320)

    at com.sap.tc.webdynpro.progmodel.view.ViewElement.checkPropertyChangeAllowed(ViewElement.java:1279)

    at com.sap.tc.webdynpro.progmodel.view.SecureInteractionHelper.updateAttribute(SecureInteractionHelper.java:153)

    at com.sap.tc.webdynpro.progmodel.view.SecureInteractionHelper.updateAttribute(SecureInteractionHelper.java:136)

    at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.updateAttributeAsKey(AbstractAdapter.java:1419)

    ... 60 more


Failed to process request. Please contact your system administrator.

While processing the current request, an exception occured which could not be handled by the application or the framework.

If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).

For further information about the Web Dynpro error page, error analysis and a description of well-known error situations, see SAP note 1113811.

 

 

Correction Hints

Exception could be caused by the development component: tc~wd~webdynpro

Note: The above hints are only a guess. They are automatically derived from the exception that occurred and therefore can't be guaranteed to address the original problem in all cases.

 

 

Detailed Error Information

Detailed Exception Chain

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException

  at com.sap.tc.webdynpro.clientimpl.ajax.AjaxClient$OrdinaryInboundEvent.handle(AjaxClient.java:1879)

  at com.sap.tc.webdynpro.clientimpl.ajax.AjaxClient.updateEventQueue(AjaxClient.java:497)

  at com.sap.tc.webdynpro.clientserver.phases.TransportIntoDataContainerPhase.execute(TransportIntoDataContainerPhase.java:46)

  at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)

  at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)

  at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:97)

  at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:514)

  at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:55)

  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1689)

  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1503)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:907)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:879)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:358)

  at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:331)

  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)

  at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)

  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)

  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)

  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:404)

  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:204)

  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:440)

  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:429)

  at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:82)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:270)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)

  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)

  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:54)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)

  at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:264)

  at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)

  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

  at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

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:597)

  at com.sap.tc.webdynpro.clientimpl.ajax.AjaxClient$OrdinaryInboundEvent.handle(AjaxClient.java:1863)

  ... 54 more

Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Security Violation: Property 'null' bound to 'defaultLanguage' of ViewElement with ID 'RadioButton' is not editable!

  at com.sap.tc.webdynpro.progmodel.view.SecureInteractionHelper.handleSecurityViolation(SecureInteractionHelper.java:320)

  at com.sap.tc.webdynpro.progmodel.view.ViewElement.checkPropertyChangeAllowed(ViewElement.java:1279)

  at com.sap.tc.webdynpro.progmodel.view.SecureInteractionHelper.updateAttribute(SecureInteractionHelper.java:153)

  at com.sap.tc.webdynpro.progmodel.view.SecureInteractionHelper.updateAttribute(SecureInteractionHelper.java:136)

  at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.updateAttributeAsKey(AbstractAdapter.java:1419)

  at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.RadioButtonAdapter.onRADIOBUTTONCHANGE(RadioButtonAdapter.java:881)

  ... 59 more

 

Could you give me an advice how to solve my problem issue?

 

Thank you in advance!

com.sapportals.portal.prt.registry.PortalRegistry

How to read a webdynpro property in a junit test case ?

$
0
0

We introduced a webdynpro property which the user uses to supply values for a combobox. So we want to write a junit for this property. An alternate way to test would be writing selenium unit test. But i want to avoid selenium as far as possible as they are highly unstable.

ESS Configuration in webdynpro java for leave approval process

$
0
0

Hi 

 

I have a requirement where I need to minimize the clicks for the leave approval process for ex after selecting the leave case for an employee I want to complete the full process on approve and reject click rather than going to next page and clicking submit so my clicks are minimized.  I am not getting how to make the notes from approver field to be visible and enabled on the first page itself as its using fpm for the whole process can someone help me on hjow to approach with such change and is it possible.

 

Thank you

 

Regards,

Jaspreet Kaur

ContextConfigurationException - Web Dynpro Java

$
0
0

Hi Guys,

 

I have a Web Dynpro Java application running on SAP NW 7.3 (Windows). When I build/deploy and run it, the following Exception comes up:

 

*****

 

com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: NodeInfo(path=FuVComponent/FuVComponent.Application, class=com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo): mapping to NodeInfo(path=FuVComponent.newMasterdata/MasterdataComponentInterface.Application, class=com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo) is impossible, the node expects a model class holding com.rwe.common.beans.Application

 

The detailed description:

 

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session d662ace6837d11e38259000009eee4aa. The causing exception is nested. RID=d65f8829837d11e38232000009eee4aa

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:663)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:349)

  at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:325)

  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)

  at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:89)

  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:55)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)

  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)

  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:457)

  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:210)

  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:441)

  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:430)

  at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:81)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:276)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)

  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)

  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.SessionSizeFilter.process(SessionSizeFilter.java:26)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:57)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:43)

  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:475)

  at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)

  at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)

  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)

  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)

  at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)

Caused by: com.sap.tc.webdynpro.services.exceptions.ApplicationFaultException: wdDoInit: exception thrown in this user coding area

  at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:164)

  at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)

  at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:258)

  at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)

  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:590)

  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1457)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:660)

  ... 46 more

Caused by: com.sap.tc.webdynpro.progmodel.context.ContextConfigurationException: NodeInfo(path=FuVComponent/FuVComponent.Application, class=com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo): mapping to NodeInfo(path=FuVComponent.newMasterdata/MasterdataComponentInterface.Application, class=com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo) is impossible, the node expects a model class holding com.rwe.common.beans.Application

  at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.initAfterCompletedMapping(MappedNodeInfo.java:229)

  at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initAfterCompletedMapping(MappingInfo.java:174)

  at com.sap.tc.webdynpro.progmodel.context.MappingInfo.setDataNode(MappingInfo.java:66)

  at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:135)

  at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.getDataNode(MappedNodeInfo.java:109)

  at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.getOrigin(MappedNodeInfo.java:113)

  at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.isSingleton(MappedNodeInfo.java:60)

  at com.sap.tc.webdynpro.progmodel.context.Node.getChildNode(Node.java:948)

  at com.rwe.fuv.wd.wdp.IPublicFuVComponent$IContextNode.nodeApplication(IPublicFuVComponent.java:614)

  at com.rwe.fuv.wd.FuVComponent.wdDoInit(FuVComponent.java:182)

  at com.rwe.fuv.wd.wdp.InternalFuVComponent.wdDoInit(InternalFuVComponent.java:367)

  at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:161)

  ... 52 more

 

*****

 

What I already have done?

 

- Reimport of classes

- Sync/Build/Deploy of dependent components

 

All these works fine without an error. But when I "run" the Web Dynpro application (or login into SAP Portal with the application as start point), the Exception above happens (since a week).

 

Thanks a lot for urgent help,

 

Cengiz

Get list of all Logged in Users in SAP Netweaver 7.3

$
0
0

Hello,

After many tries to get the list of logged in users in portal, I found a simple solution. Maybe this solution is not the better but it worked fine for me.

I'm was looking for a solution like Session Management functionality of SAP NW.

 

Let's go to the solution:

 

1 - I picked the JAR application "sap.com~tc~lm~itsam~ui~session~mngt~wd.jar" in folder "/usr/sap/<SID>/J<NN>/j2ee/cluster/bin/ext/tc~jmx/lib/private/"

2 - In NWDS I created a new Portal Application and a new Portal Application Object:

 

    a) Portal Application:

 

          1.jpg

          2.jpg

 

    b) Portal Application

 

          3.jpg

          4.jpg

          5.jpg

          6.jpg

          7.jpg

 

 

3 - Put the JAR into the lib folder:

 

    8.jpg

 

4 - Adjust the Build Path:

 

    10.jpg

    12.jpg

 

    Another necessary JARs:

 

    13.jpg

 

 

 

    sap.com~tc~bl~pj_jmx~Impl.jar(/usr/sap/<SID>/J<NN>/j2ee/cluster/bin/ext/tc~jmx/lib/private)

 

 

 

    14.jpg

 

5 - Put the below code in JSP created file(LoggedInUserInformation.jsp):

 

                    <%@page import="com.sap.jmx.ObjectNameFactory"%>

<%@page import="com.sap.jmx.remote.JmxConnectionFactory"%>
<%@page import="com.sap.tc.logging.Location"%>
<%@page import="java.util.*"%>
<%@page import="javax.management.*"%>
<%@page import="javax.management.openmbean.CompositeData"%>
<%@page import="javax.naming.InitialContext"%>

<%@page import="javax.management.openmbean.CompositeData"%>
<%@page import="javax.management.MBeanServer"%>
<%@page import="javax.naming.InitialContext"%>
<%@page import="java.util.Set"%>

<%@page import="com.sap.tc.lm.ui.itsam.session.mnt.SessionManagementModel"%><br>

<table border="1">
<tr>
  <td>UserName</td>
  <td>IP</td>
</tr>
<%

SessionManagementModel model = new SessionManagementModel();
CompositeData data[] = model.getSessions();

for(int i=0;i<data.length;i++){
 
%>
 
<tr>
  <td><%=data[i].get("UserName").toString().toLowerCase()%></td>

<%
  if(data[i].get("RootContextID") != null){
  String rootContextID = data[i].get("RootContextID").toString();
  CompositeData details[] = model.GetSessionsForAggSession(rootContextID);
  for(int j=0;j<details.length;j++){
  %>
  <td><%=details[j].get("IP") %></td>
  <% }
  }
%>
<%
}
%>
</table>

 

6 - Create EAR file:

 

    15.jpg

    ScreenShot001.jpg

    ScreenShot002.jpg

    ScreenShot003.jpg

 

7 - Deploy EAR in Portal

 

    ScreenShot004.jpg

    ScreenShot005.jpg

    ScreenShot006.jpg

 

    ScreenShot007.jpg

 

8 - Test Application:

 

    Log in Portal > Content Administration

 

    ScreenShot008.jpg

    ScreenShot009.jpg

 

    Result:

 

    ScreenShot010.jpg

 

 

 

All information are available like in Session Management. For use then, the CompositeData parameters must be knowed. For this, is possible to use toString to show all parameters.

Example:

 

<%

CompositeData data[] = model.getSessions();

for(int i=0;i<data.length;i++){ %>

 

     <%= data[i].toString()%><br>

 

<% } %>

 

The parameters will be displayed like this:

javax.management.openmbean.CompositeDataSupport(compositeType=javax.management.openmbean.CompositeType(name=Aggregated session data,items=((itemName=ActiveRequests,itemType=javax.management.openmbean.SimpleType(name=java.lang.Integer)),(itemName=ClusterNodeId,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=Cpu,itemType=javax.management.openmbean.SimpleType(name=java.lang.Integer)),(itemName=IncommingTime,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),(itemName=ProfileZipDataName,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=ProfileZipDataPath,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=Requests,itemType=javax.management.openmbean.SimpleType(name=java.lang.Integer)),(itemName=ResponceTime,itemType=javax.management.openmbean.SimpleType(name=java.lang.Integer)),(itemName=RootContextID,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=UserName,itemType=javax.management.openmbean.SimpleType(name=java.lang.String)),(itemName=allocMemory,itemType=javax.management.openmbean.SimpleType(name=java.lang.Long)),(itemName=dbTime,itemType=javax.management.openmbean.SimpleType(name=java.lang.Integer)),(itemName=lastAccessed,itemType=javax.management.openmbean.SimpleType(name=java.util.Date)))),contents={ActiveRequests=0, ClusterNodeId=null, Cpu=0, IncommingTime=0, ProfileZipDataName=null, ProfileZipDataPath=null, Requests=0, ResponceTime=0, RootContextID=null, UserName=Administrator, allocMemory=0, dbTime=0, lastAccessed=Wed Feb 12 15:37:44 BRST 2014})

NW 7.3 - Is there a way to get all logged in users?(Like session Management)

$
0
0

Hello All,

 

I know is there several threads about this subject but none was valid for me.

I need to know who are logged in like session management work.

I tried some solutions like this:

<%
IUserFactory uf = UMFactory.getUserFactory();
ISearchResult ids = uf.getUniqueIDs();
while (ids.hasNext()){
 
  String  uid = (String)ids.next();
  IUser sapUser = uf.getUser(uid);
  if(sapUser.getUserAccounts()[0] != null){ %>
  
   <br><%=sapUser.getDisplayName()%>   
   <%}
}
%>

 

But this solution retrieves all users of Portal and not only the logged in users.

 

Somebody already has success on it?

 

Thanks.


SapMetamodelWebdynproContent.zip

$
0
0

Dear All,

 

We imported custom Track and created project in NWDS. After creating project i am getting below warning in NWDS and and due to that  i could see errors in component controller .

 

[Warning]: Versions of 'SapMetamodelWebdynproContent.zip' have different prefix.

 

Regards

Vasu

About Table

$
0
0

Dear Experts,

 

I'm new in Web Dynpro JAVA development(using NWDS),

 

I want to create a table in view , and columns with "InputField" type,

 

then user could  key in multi-row data in table, and after submit, using RFC to write data back to SAP.

 

Is it can be achieved? I have tried for a day, even though set table columns with inputField type on design time,

 

but it cannot key in on runtime...

 

 

Please give me some suggestions, thanks a lot... ><

 

 

Best Regards,

Ella

ESS Leave request --- Best Arch Design for storing attachment / document.

$
0
0

Hi,

 

Customization required on ESS Leave request iview & MSS Leave request Approval Iview.

SAP NetWeaver 7.3

 

 

Requirement:

 

For employee:

While employee is applying for Leave request under Leave request iview of ESS, he should have the functionality to upload the certificate (medical certificate, tickets etc) in .jpg or .png etc.

 

For Manager:

While manager is approving the Leave, he should have the feasibility to see the attached certificate of that particular leave request in the Leave Request Approval Iview.

Note: in the Leave Request Approval Iview, not in UWL iview.

 

Design 1: Store the attachment in R/3

1)      Customize the WebDynpro Leave request wherein the comp send the attachment to Functional module.

2)      Functional module to get the attachment .

3)      FM stores the attachment in R/3 or repository.

4)      For manager, another FM to send the link or attachment to the WebDynpro.

 

Design 2: Store the attachment in Knowledge Management.

1)      Customize the WebDynpro Leave request wherein the comp store the attachment in Knowledge Management.

2)      For manager, read or get the link of the KM document into the WebDynpro Leave request Iview.

 

 

Which is the best Architecture design?

If you have implemented similar functionality, please provide the sample or solution.

 

Kindly provide your support & it will be highly appreciated.

 

 

 

Thanks in advance,

 

N S

Binary data to XML data conversion

$
0
0

Hi All,

 

Can anyone please help me to convert Binary data to XML data in Webdynpro java?

My requirement is, I will receive Binary data as output on RFC call and I would need to convert this to XML.

 

Thanks in advance.

Adaptive Web Service Model - access to settings in WSDL

$
0
0

Hello,

 

we want to use an Adaptive Web Service Model in NW 7.3 to access a backend with static data structures, which means that nodes in the model have to contain a specific number of elements.

In the WSDL file, which was imported to create the Web Service Model, this is done by setting the attributes "maxOccurs" and "minOccurs" in the node to the same value, let us say "50".

When executing the model, the Web Dynpro component has to ensure that there are exactly this number of elements in the Context Node which is bound to that model node - otherwise the XML which is produced by the model is not valid for this WSDL.

In the moment, this is done "hard coded" in the component; if a node's name equals "XYZNode", insert 50 elements.

Is there a way to do this dynamically, by asking the ICMIModelClassInfo for this information or something like this?

I know, this is not a must-have, but it would make our programs nicer and more flexible.

 

Have a nice day,

Bernd

Reset Stored User for deployment in NWDS

$
0
0

Hello,

 

I had a mistake when I wrote the password of the user that deploys in NWDS. NWDS has stored that user, so now I can't deploy. Please, anyone know where I can clean or reset this user in the NWDS?

 

Thanks & Regards

SU

Web Service Error in NWDS 7.3:Illegal model class renaming

$
0
0

Hi All,

 

I am working with Adaptive WebService model in NWDS 7.3,i am able to create model without any error,but when i am trying to run this application i am getting below error.

 

com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Illegal model class renaming: Model classes with QNames '{http://www.businessobjects.com/DataServices/ServerX.xsd}/wsdl:definitions/wsdl:types/xsd:schema/xsd:element[9]/xsd:complexType' and '{http://www.businessobjects.com/DataServices/ServerX.xsd}/wsdl:definitions/wsdl:types/xsd:schema/xsd:element[11]/xsd:complexType' were both renamed to the same name 'com.sap.demo.importws1.wd.models.wsmodel1.TraceLogRequest'

 

i have checked the same Web Service through Web Service Navigator its working fine there.

 

Could you please help me with this.

 

Regards,

Trilochan


Context node convert ArrayList

$
0
0

Hi Java Web Dynpro gurus

 

If I'm wrong please correct me. I know the all context nodes are collections.

 

I want to convert a value attribute on ArrayList. With the aim of use the method "contains" instead of walking with cycling registers (for cycle).

 

Is it posible?

 

Best Regards,

Victor Carmona

Session Termination

$
0
0

Hi experts,

Is it possible to terminate a session(IClient Session) using Session ID(String) , like when we log into portal nwa , there is session monitoring and we have option to terminate a session from the list of active sessions against a user .

Please let me know if we have any webdynpro java code to terminate the session Remotely.

Error while retrieving windows logged in user ID

$
0
0

Hi,

We've created an application which reads the windows logged in user ID (not the portal logged in user id). The piece of code retrieves the user id perfectly fine but writes few errors in the trace file. The error is as below:

 

An exception "com.sap.engine.services.servlets_jsp.server.exceptions.WebIllegalStateException: The stream has already been taken by method [getWriter()]." has occured during application processing. During exception handling, an additional exception "com.sap.engine.services.servlets_jsp.server.exceptions.WebIllegalStateException: The stream has already been taken by method [getWriter()]." was thrown. Both exception has been written to the logfile!

 

There is no error on the screen but there are errors logged in the trace file. What could be causing the errors.

 

Ciao,

Manoj

NoClassDefFoundError: sun.awt.X11GraphicsEnvironment

$
0
0

Hi all,

 

We are trying to generate dynamic images on portal Applications (.PAR and Web Dynpro Applications) and the application crashed and give us the following error:

 

java.lang.NoClassDefFoundError: sun.awt.X11GraphicsEnvironment (initialization failure)

 

    at java.lang.J9VMInternals.initialize(J9VMInternals.java:132)

    at java.lang.Class.forNameImpl(Native Method)

    at java.lang.Class.forName(Class.java:119)

    at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:91)

 

We already verified the configuration on the config tool illustrated on the SAP OSS Note 723909 precisely 10.2  setting the Djava.awt.headless parameter on u201Ctrueu201D but we still got the error.

 

Regards,

 

Orlando Covault

fetching user details from IDMS

$
0
0

Do we have mechanism/any API available in JAVA to access IDMS server? I need to fetch user details from IDMS in java..

Viewing all 1288 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>