Nullpointer exception in SAP code (RFC model related)
Hi,
Some threads have already been opened on this issue, but none of them give me a solution.
The problem is that a Nullpointerexception is thrown when I create a new Input element (to bind it to the input node of my rfc model).
As you can see in the stack trace, the nullpointerexception is thrown in SAP code.
This happens for all function modules I've created myself (even the simplest ones with no parameters/no code), but for the SAP BAPIs it works???
So this is not an issue related to Javaconnectors/my java code because it works for BAPIs (I'm doing exactly the same).
I've already restarted the J2EE server, recreated the whole application, tested with new applications (to avoid any caching problems) but nothing works.
I've been trying to resolve this issue for several hours without success. It's really frustrating.
Any help appreciated!
Jeroen
java.lang.NullPointerException
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.createNewBaseTypeDescriptor(AiiModelClass.java:220)
at com.sap.tc.webdynpro.modelimpl.dynamicrfc.AiiModelClass.descriptor(AiiModelClass.java:186)
at com.eozen.aif.ce5solman.Z_Jver_Create_Infosheet_Input.<init>(Z_Jver_Create_Infosheet_Input.java:51)
at com.eozen.jver.aif.Infosheets.wdDoInit(Infosheets.java:98)
at com.eozen.jver.aif.wdp.InternalInfosheets.wdDoInit(InternalInfosheets.java:181)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:95)
I suddenly realized there is one last option and it works: I managed to sidestep the problem by doing the rfc via an R/3 SAP system that forwards the call to the CRM system. (The CRM 5.0 system is the one causing the nullpointerexception).
Maybe some incompatibilities between J2EE/WDP SP14 & CRM 5.0?
Similar Messages
-
SAP.Connector.Rfc INVALID_QUEUE_NAME
I have an application that is using the .Net Connector 2.0 to access some standard and custom BAPIs in SAP.
Occasionally when calling the BAPI_CUSTOMER_CHANGEFROMDATA1 BAPI from the application the .Net Connector throws an exception. The Source of Exception is SAP.Connector.Rfc. The Message is INVALID_QUEUE_NAME.
I havent been able to find any information on this error message in the SDN archives or in the Connector documentation and would be grateful for any insight that anyone can offer.
Helga (for James Green)Rainer,
I think the answer is that we dont really know what kind of exception it is, Im sorry. The only way to find out would be to trap that in code, and our 3rd party product provider will do that, but that wont be before next week.
At the moment all I have is the source and message of the exception.
Hope you or someone can still help.
Helga -
Exception with Adaptive RFC Model: WDDynamicRFCExecuteException
Hi All,
I have created an Adaptive RFC Model and called the RFC in my Coding the standard approach that used to work before. Now, I keep receiving the following exception when executing the modelObject.execute() Method.
com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException
Does anybody know what going on? I am calling an RFC that works well and has been able to be called as an RFC before...
Is this somemthing related to the framework? Do I need a supprt package or so? Am I doing soemthing wrong?
Thanks, JohannesHi,
Place a break point in the BAPI in SAP and try to execute the application and see if the break point is triggered and check what is the output value passed back to the application. If this works fine then there should be no issue in the RFC side, else need to find out what is happening in the webdynpro application side.
Regards,
Manjunath -
Adaptive RFC model connectivity to SAP R/3 4.6 B
We are developing a new webdynpro application which uses the backend R/3 version is 4.6B using Adaptive RFC model.
We are able to connect to Web As systems without any issues but getting error messages while creating the Adaptive RFC model to R/3 4.6 B system as backend.
Appreicate your help.
Message was edited by: Udaya ChadaHi ,
I think SLD,s/w Catalog and Creating Logical Systems were Configured,
Go through the Following Steps Like,
-- General Data, Enter the Client of the System and Client No. (JCo Connection is Pointing to)
--J2EE Cluster, Select the J2EE Cluster you wish the JCo destination to be assigned
-- Select the Destination Type, Either Application/Dictionary data
-- Appl.Server, You may only select Servers/Logon Groups From the Drop down list that have first been defined as technical Systems in SLD.
-- Message Server, Application Data JCo destination is connected must have atleast one logon group.( if this is not done ,use SMLG transaction code to create in SAP System)
--Security, If you have selected connection Type as Application Data , then in the Security Screen you would appear Authentication Techniques and select a appropriate one .
if you have selected connection type as a Dictionary meta data then provide User Name and Password
If this is useful to you ,don't forget to award Points
--Venkat -
Java.lang.NullPointer Exception in File-RFC-File wtihout BPM scenario
Hi All,
I have implemented scenario File - RFC - File without BPM in PI7.1 according to below link by bhavesh
[File - RFC - File without a BPM - Possible from SP 19.;
but I am getting error java.lang.NullPointer Exception in Audit log of sender communication channel when it enters in ResponseOnewayBean.
I had implemented the same in PI 7.0 but there it was working fine.
Is there any limitations on the use of the above beans in PI7.1 as I could see two more threads on the same unanswered yet.
Please help me in resolving as it is priority task for me
Thanks,
AmitSometime back I saved this SAP Note 1261159 for this error. Not sure if it is still valid. Try to get it implemented.
Regards,
Prateek -
JCO$Exception when creating RFC model
Hi all,
I'm getting this fatal error when creating an RFC model in Web Dynpro for Java (connecting to a BW system):
com.sap.mw.JCO$Exception: Missing R3NAME=... or ASHOST=... in connect_param in RfcOpenEx
I have absolutely no clue what's going wrong...
The RFC model gets created, but when running the application it doesn't work...
Any help appreciated!
JeroenRaj,
Thanks for your reply.
I had already solved the problem... After a long time I found out it was due to the language: when creating an RFC model one should use the language of SLD.
kind regards,
Jeroen -
SAP R3 Conector System at the Adaptative RFC model
Hi folks!
We´ve generated a Web Dynpro project using the Adaptative RFC model. When running the application we get the exception:
com.sap.dictionary.runtime.DdException: at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker$1.fillSldConnection(DataTypeBroker.java:89)
This surely happens because we haven´t defined the SAP R3 connector system:
Could someone please show us how to do this?
We are using SAP R3 Dedeicated connection, should we use the SAP R3 ConnectionString? At least, we need to know which is the Gateway Host, the SAP R3 machine or the J2EE WAS one? Is the other the Application Server Host? What would be the Gateway Service?
In the other hand, at defining the RFC Destinations on the SAP R3 server, we´re using the "Registered Server Program" Activation Type. Is this correct? When testing the connection, it fails because the program is not registered at the server.
Thanks in advance.Hi Bernanrdo,
I have given answer to your another post.
Just look at that. It will help you.
Regards,
Bhavik -
Exception when trying to set data in a rfc model
Hi everybody,
I found a very good posting from Bertram Ganz, explaining how to fill "data structure parameter" in a rfc model: initializing AbstractList Model in Custom Controller
But although I directly follow the instructions given in this posting, I still get an ArrayIndexOutOfBoundsException (java.lang.ArrayIndexOutOfBoundsException: -1) when I try to add the "data structure parameter" to the model.
Here is an extract from my code:
Z_Wddemo_Mm_Lieferpl_Et_Change_Input input = new Z_Wddemo_Mm_Lieferpl_Et_Change_Input();
Zwddemo_Eket_S tabline = new Zwddemo_Eket_S();
tabline.setEindt(new Date(2007, 9, 27));
tabline.setEtenr("001");
tabline.setLmeng(new BigDecimal("1"));
tabline.setMenge(new BigDecimal("2"));
tabline.setWmeng(new BigDecimal("3"));
input.addIt_Eket(tabline);
wdContext.nodeProcessChangesModelValues().bind(input);
<i>nodeProcessChangesModelValues()</i> is the root node of the model. The exception occurs in line <i>input.addIt_Eket(tabline);</i>.
Any ideas what goes wrong here?
Thanks in advance for all answers!
Regards,
TorbenI am having problem retrieving the users from the AD, can anyone help me with this with an example plz!
-
Hello Team,
We have a scenario where we have a PI web service and we are importing the WSDL into our WD Java application.
While running the test scenario we are getting the below 2 exceptions in the stack trace.
20111222:Exception trace: com.sap.tc.webdynpro.model.webservice.api.WDWSModelExecuteException: Exception on execution of web service on destination 'WS_CUST_**' for operation 'GetCustomer*' in interface 'GetCustomer**'
Caused by: java.rmi.RemoteException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.; nested exception is:
com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.
Caused by: com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Cannot created typed model object. Factory for typed model class '$002fWsdlDefinitions$002fWsdlTypes$002fXsdSchema$005b1$005d$002fXsdComplexType$005b1$005d$002fXsdSequence$002fXsdElement$005b1$005d$002fXsdComplexType' has not been registered.
By running through few posts on SDN a probable solution for this was proposed as: blank the "designtimeWsdlUrl" properties of the model in NWDS and re-deploy the application
Any help on this would be great.
Regards,
ShaileshDear Shailesh,
Did you try to check the blank the "designtimeWsdlUrl" properties of the model in NWDS and re-deploy the application? please try to check and test.
Also try to import fresh in new DC and check whether it is working or not.
Best Regards
Arun Jaiswal -
Hi Experts,
I am consuming RFC to my webdynpro java application. The rfc takes some input values and returns some output vaules.
In the application I had taken model to my component and mapped ( model --> component --> view ). i created Application and deployed it. it is giving the following Exception.
com.sap.tc.webdynpro.progmodel.context.ContextException: NodeElement(.ComponentOne.Zbapi_Material_Create_Input): model node element cannot be created without a model instance
at com.sap.tc.webdynpro.progmodel.context.ModelNodeElement.<init>(ModelNodeElement.java:63)
at com.sap.demo.sample.wd.comp.componentone.wdp.IPublicComponentOne$IZbapi_Material_Create_InputElement.<init>(IPublicComponentOne.java:357)
at com.sap.demo.sample.wd.comp.componentone.wdp.IPublicComponentOne$IContextNode.doCreateElement(IPublicComponentOne.java:55)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.createElement(NodeInfo.java:1269)
Here actually it had to display the input screen (default view page )but while loading the starting page it gives the above exception.
I searches lot of forums, but they are related to particular inputfields, but here it is not that scenario, i am not using any fields here just to display the view page. I don't know exactly what was the mistake, Help me please if you know.
Regards,
Pradeep KumarHi Pradeep,
Did you checked that all the requierd code has been genarated or not in component controller?
If you use apply template--> servicee controller some times service controller will not genarate the requierd code.
check in the wdDoInit() method whether the following code has been genarated or not.
if not wirte tht code.
//$$begin Service Controller(17224717)
WSTest model = new WSTest();
wdContext.nodeRequest_EmployeeDeatilsByType().bind(new Request_EmployeeDeatilsByType(model));
//$$end
Revert back if you have any quaries.
Thanks & Regards,
Bhargava. -
1 View linked to 2 CompCont: NullPointer Exception
Hi,
Here is the architecture of my app :
MainView --> CompContA --> ModelA (RFC function A)
........|
........|---> IntCompB --> CompContB --> Model B (RFC function B)
And here is the content of the MainView :
AdviceNumber : [
Z2_I_Rechercher_Avis_Input.AdviceNumber) | RefreshButton1
UserId : [Z2_I_Rechercher_Bottin_Input.UserId) | RefreshButton2
Name : [Z2_I_Rechercher_Avis_Input.Output.It_Infos_Bottin.Name)
Now, my application works when I populate an AdviceNumber and press the RefreshButton1. At the return, the name field is refreshed and I use some Java code to move the UserId that my function returned to the UserId of the screen. This works well.
Then if I change the value of the UserId in the screen and press the RefreshButton2, the second function returns me another name, and I use some Java code to move this name into the Name field of the screen. This works well too.
The problem is that I can't use the refreshButton2 first! I get a NullPointer exception.
And I know why, it's because the « Output » structure of my Z2_I_Rechercher_Avis_Input is not initialized (since the refreshButton1 has not been used yet).
But I can't find the right way to code it.
Can you help me, thanks!
Message was edited by:
Emanuel ChampagneI want the user to click on the button he wants.
I just need to know how to initialize the Output.Struc1 when the user decides to click on the RefreshButton2 First.
It's the line in bold that give me the error (but that line works well when the RefreshButton1 is used first!)
public void onActionRafraichirAvis(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionRafraichirAvis(ServerEvent)
//$$begin ActionButton(-775562010)
wdThis.wdGetAvisCompController().executeZ2_I_Rechercher_Avis_Input();
//$$end
// At the return, we need to refresh the values of the screen with the ones returned by the function.
// Access to the structure showed on the screen
IIt_Infos_BottinElement AvisInfosBottinEl = wdContext
.nodeIt_Infos_Bottin()
.currentIt_Infos_BottinElement();
// Access to the structure received by the RFC function
IIt_Z2I053TElement BottinEl = wdContext
.nodeIt_Z2I053T()
.currentIt_Z2I053TElement();
<b>AvisInfosBottinEl.setName(BottinEl.getName());</b>
Message was edited by:
Emanuel Champagne -
Error while importing a Adaptive RFC Model
Experts,
I am trying to import an Adaptive RFC Model. Before importing I need to speciy the connection parameters in the import wizard. I am using the single server method to connect and have specified all the parameters correctly. I have not specified a SAP router as I am using a test system. when I click next on the Model import wizard I get an error.
The trace shows-
[code]ConnectionFailed Exception : com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=test833, GWSERV=sapgw00, ASHOST=test833, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 10.3.82.177, service 3300)
TIME Fri Jun 29 08:54:18 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r.cpp
LINE 8715
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUN
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connect(ConnectionManager.java:220)
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connectToSingleServer(ConnectionManager.java:206)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.internalConnectToServer(SAPLogonPage.java:1769)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.access$2300(SAPLogonPage.java:46)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage$9.run(SAPLogonPage.java:1730)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:98)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1999)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1733)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:136)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:261)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.connectToServer(SAPLogonPage.java:1699)
at com.sap.ide.jcb.core.wizardpages.SAPLogonPage.performFinish(SAPLogonPage.java:1805)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.initializeReimporter(ModelWizard.java:1410)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard.performPostSapLogonPageForReimport(ModelWizard.java:1433)
at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog.nextPressed(ModelDialog.java:85)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:316)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at com.sap.ide.webdynpro.modeleditor.ModelEditorCallback.reimportModel(ModelEditorCallback.java:218)
at com.sap.ide.webdynpro.service.modeleditor.ModelService.reImportModel(ModelService.java:207)
at com.sap.ide.webdynpro.service.modeleditor.ServiceWithUI.reImportModel(ServiceWithUI.java:120)
at com.sap.ide.webdynpro.tsmodel.application.actions.ReimportModelAction.run(ReimportModelAction.java:11)
at com.sap.ide.webdynpro.projectbrowser.actions.PBReimportModelAction.run(PBReimportModelAction.java:77)
at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.runInternal(PBDevelopmentObjectAction.java:80)
at com.sap.ide.webdynpro.projectbrowser.actions.PBDevelopmentObjectAction.run(PBDevelopmentObjectAction.java:61)
at com.tssap.selena.model.extension.action.SelenaActionCollector$GenericElementActionWrapper.run(SelenaActionCollector.java:224)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.saveRunAction(MenuFactory.java:1425)
at com.tssap.util.ui.menu.MenuFactory$MuSiAction.run(MenuFactory.java:1407)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.processInternal(MenuFactory.java:616)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.access$100(MenuFactory.java:586)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction$BusyProcessWorker.run(MenuFactory.java:716)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at com.tssap.util.ui.menu.MenuFactory$DelegateAction.process(MenuFactory.java:610)
at com.tssap.util.ui.menu.internal.MenuListenerFactory$ProcessAdapter.widgetSelected(MenuListenerFactory.java:172)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:840)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2022)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1729)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at com.tssap.util.startup.WBLauncher.run(WBLauncher.java:79)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sap.ide.eclipse.startup.Main.basicRun(Main.java:291)
at com.sap.ide.eclipse.startup.Main.run(Main.java:789)
at com.sap.ide.eclipse.startup.Main.main(Main.java:607)
Caused by: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed
Connect_PM GWHOST=test833, GWSERV=sapgw00, ASHOST=test833, SYSNR=00
LOCATION CPIC (TCP/IP) on local host
ERROR partner not reached (host 10.3.82.177, service 3300)
TIME Fri Jun 29 08:54:18 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi_r.cpp
LINE 8715
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection refused
COUN
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1125)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)
at com.sap.ide.jcb.core.service.connection.internal.ConnectionManager.connect(ConnectionManager.java:216)[/code]
Can someone tell me problem..
Thanks in advance,
VineethIn service file if entry is not there... give the enty like
<b>sapgw<Inst.No> 33<Inst.No>/tcp
sapgw<Inst.No>s 48<Inst.No>/tcp</b>
where <Inst.No> = System Number of your R/3 system(00 or 01...)
In host file....
ip of the server name of the server.... -
Problem in using the RFC model in webdynpro aplication
Hi,
I am trying to access FM CRIF_GET_EMPLOYEE_FOR_USER from the backend system in webdynpro application in two different ways
1.By using JCO classes in a java class
IRepository repository;
public int getPernr(String user)
int ret = 0;
String user = "SRESP5";
double pool = Math.random()*100000000;
// the repository we gonna be using
try{
// Add a connection pool for the specified system
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(""+pool);
JCO.addClientPool(
"DE1", //alias for this pool
100,
// max. number of connections
"540", //SAP client
"", //userid
"", //password
"EN", //language
"sapde1ci.zrh.swissre.com", //host name
"10" //system number
// Create a new repository
repository = JCO.createRepository(
"MYRepository", "DE1");
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
"ExceptionwwwwwwxSS");
catch(JCO.Exception ex) {
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
"Exceptionwwwwwwx"+ex.getMessage());
JCO.Client client =
null;
try{
// Get a function template from the repository
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
"SSS");
// wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("ExceptWWWW");
JCO.Function function = repository.getFunctionTemplate(
"Z_CRIF_GET_EMPLOYEE_FOR_USER").getFunction();
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
"ddd"+function);
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("ExceptioWWW");
// Fill in input parameters
JCO.ParameterList input = function.getImportParameterList();
input.setValue(user,
"USER_NAME" );
// input.setValue(String.valueOf(new Date()), "BEGINDATE" );
// input.setValue(String.valueOf(new Date()), "ENDDATE" );
// Get a client from the pool
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("ExceptionQQ");
client = JCO.getClient(
"DE1");
// wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Exception");
// Execute function the remote system
try{
client.execute(function);
}catch(Exception e){
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("dd"+e.getMessage());
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
"Exceptionw");
// Print return message
ret=function.getExportParameterList().getInt(
"EMPLOYEENUMBER");
System.out.println(
"3");
System.out.println(
"RETURN MESSAGE: " + ret);
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess(
"SSSWSS");
catch(Exception ex) {
System.out.println(
"Caught an exception333: " + ex);
finally{
// Always release client !!!
//JCO.releaseClient(client);
JCO.removeClientPool("DE1");
// try
return ret;
it is returning the PERNR of the username passed as an input parameter.
2.But when I am trying to use an adaptive RFC model and it is giving NO_EMPLOYEENUMBER_FOUND
here is the code
in view
public void wdDoInit()
//@@begin wdDoInit()
wdThis.wdGetTestAppController().executeBapi();
//@@end
In Controller
public void wdDoInit()
//@@begin wdDoInit()
Z_Crif_Get_Employee_For_User_Input input = new Z_Crif_Get_Employee_For_User_Input();
wdContext.nodeZ_cr().bind(input);
input.setUser_Name("SRESP5");
//@@end
public void executeBapi( )
//@@begin executeBapi()
try{
wdContext.currentZ_crElement().modelObject().execute();
wdContext.nodeOutput().invalidate();
}catch(Exception e){
wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("User111:"+e.getMessage());
//@@end
please help me in solving this issue.points will be awarded for sure for the helpful answer.
BalaHi,
Change this line of code:
wdContext.nodeZ_cr().bind(input);
to
wdContext.nodeZ_Crif_Get_Employee_For_User_Input().bind(input);
Try executing your application now.
Regards,
Murtuza -
Error while creating a Adaptive RFC Model
Hi all,
I am trying to create a Model using a Adaptive RFC Model, I assign a Model name and the logical system names, enter the details in SAP Logon Information for the Single server,here it gives me a Gateway error. What could be the issue here?
NB: In the Host Name , I tried with both the Host name of the r/3 server and also with the SAProuter string ( as we have the server at other place) ,still it doesnt work. and I am able to login to the R/3 system from the SAPLogon GUI from my desktop normally.
Is there any issue of the firewall related to this, if so whats the port number that should be opened so that i can connect to the r/3 system get the list of BAPIs present there into my Webdynpro application .
Need help on this
Regards,
VijayHi Lohi n Gopi ,
I have checked out with the your given suggestion of trying with the host name as well as IP address and also typing all the details,without copy pasting the details . In both the cases it gave the " Connect to gateway failed " error mesg.
But one intersting thing here that i observered when trying with hostname, IP address, or SAProuter string is as follows .
<b>with IP address</b>
<i>Connect to SAP gateway failed
Connect_PM GWHOST="ipaddress",GWSERV=sapgw10,ASHOST="ipaddress",SYSNR=10
LOCATION CPIC(TCP/IP) on local host
ERROR patner not reached(host "ipaddress",service=3310)</i>
<b>with SAProuterString</b>
<i>Connect to SAP gateway failed
Connect_PM GWHOST="SAProuterString",GWSERV=sapgw10,ASHOST="SAProuterString",SYSNR=10
LOCATION SAPRouter on " some HostName"
ERROR hostname unknown</i>
<b>with HostName</b>
<i>Connect to SAP gateway failed
Connect_PM GWHOST="hostname",GWSERV=sapgw10,ASHOST="hostname",SYSNR=10
LOCATION CPIC(TCP/IP) on local host
ERROR hostname "hostname " unknown</i>
Is there any firewall port blocking issue here ?if so , whats the port that needs to be opened ?
Appreciate your help.
Thnks,
NR -
Error while creating adaptive RFC model
Dear All,
I am trying to create Adaptive RFC model by which i can fetch data from R/3 trough BAPI and display on the webDynpro UI.
I am getting error
Exception: org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library librfc. Found version "640.0.55" but required at least version "640.0.76".)
Kindly suggest.
Thanks
AshishHi,
Check this link....
com.sap.mw.jco.JCO$Exception (104) RFC_ERROR_SYSTEM_FAILURE
Maybe you are looking for
-
Upload/Read Documents from SAP-CRM to/from SharePoint
Hello , We have a requirement to upload documents from SAP CRM to share point(select the document from the desktop and pass the data to sharepoint server) , the user should also be able to view the documents located in Sharepoint. There are web metho
-
I just reset my 1st Gen iPod touch to factory settings.
I just wiped my 1st gen iPod touch (my son gave it back after he got a new one for X-mas). I now have the "connect to iTunes" icon when I turn it on. Recovery mode is what it is called I think. When I plug it into my iMac running Lion, it isn't r
-
Just got a I Phone 4. I typed my wifi password to connect to my wifi but don't see a "connect" button or "enter". I tried "join" but it did nothing? How do I connect to my wi-fi so I don't use cell minutes when at home? Also, How do I know for sure
-
Hi i have a problem with my nokia 3110 classic. I have a microSD card that worked just fine for 3 days after that i turned my phone off and when i wanted to start it i get the nokia logo the menu appears and then restarts again this is does for 5 tim
-
Photoshop Elements 13 is super slow, skippy, and has brush lag; please help!
I have used PSE 13 and PRE 13 on my laptop, which has Windows 8.1 and so forth and they worked very well on that system. However, when I installed Elements onto my desktop which is brand new and very powerful, it continues to lag/go unresponsive and