on 04-05-2007 12:36 PM
Hi,
While creating the proxy generator in Dot Net Connector 2003 i am getting following error: I am successfully able to login into the SAP system and able to select the SAP tables but during the final step of proxy generator wizard i am getting following error:
<b>----
Error in Proxy-Generator
-
To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
Inner error was:
Object reference not set to an instance of an object.
-
OK
-
</b>
I have already installed the Java JVM on my machine its version is as follows:
<b>java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)</b>
Regards,
Ravi Shah
Hi Ravi,
how are you doing ?
a stable JVM build has been 1.4.2_12
http://java.sun.com/products/archive/j2se/1.4.2_12/index.html
or you can try that or the latest 1.6 as recommended by Huseyin
with respect,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amit,
I doing good!!!! Thanks for the response.
I uninstalled the earlier version of JVM and installed the latest version of JVM i.e. jre-1_5_0_09-windows-i586-p.
I got the proper entries under registry mentioned below:
<b>Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_09]
"JavaHome"="C:
Program Files
Java
jre1.5.0_09"
"UseJava2IExplorer"=dword:00000001
"HideSystemTrayIcon"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
"CurrentVersion"="1.5"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5]
"JavaHome"="C:
Program Files
Java
jre1.5.0_09"
"RuntimeLib"="C:
Program Files
Java
jre1.5.0_09
bin
client
jvm.dll"
"MicroVersion"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_09]
"JavaHome"="C:
Program Files
Java
jre1.5.0_09"
"MicroVersion"="0"
"RuntimeLib"="C:
Program Files
Java
jre1.5.0_09
bin
client
jvm.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update]
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"Country"="IN"
"PostStatusUrl"="https://sjremetrics.java.com/b/ss//6"
"EnableJavaUpdate"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start]
"CurrentVersion"="1.5.0_09"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_02]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_03]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_04]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.0.1_05]
"Home"="C:
Program Files
Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_01]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.2.0_02]
"Home"="C:
Program Files
Java Web Start"
[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_09]
"Home"="C:
Program Files
Java
jre1.5.0_09
bin"</b>
After installation I opened the Dot Net connector proxy client wizard . I followed the series of step during Dot Net connector configuration:
1. selected the SAP connector.
2. The next screen 'Enter Logon Information' comes where i entered the following information System as 'custom', host='IP address', Id='00' but by default it turns to '0' , client='800', user='user id' and password ='password'.
3. After clicking on Next button i am successfully logon into the SAP system.
4. The next screen in the wizard is 'selectall the remote function modules that you want to be part of your proxy object'. After selecting the SAP tables and clicked on Next button I am getting following error
<b>
-
Error in Proxy-Generator
-
To create a proxy directly from a SAP system, you must install a Java VM from JavaSoft
Inner error was:
INFO: using logging implementation "AII Logging"
Exception in thread "main" com.sap.aii.upload.api.LoginException$WrongPassword: Invalid user/password combination
at com.sap.aii.upload.sap.SAPConnection.connect(SAPConnection.java:94)
at com.sap.aii.upload.sap.SAPConnection.<init>(SAPConnection.java:38)
at com.sap.aii.upload.tool.RFC2WSDLTool.getWSDLforRFCs(RFC2WSDLTool.java:81)
at com.sap.aii.upload.tool.RFC2WSDLTool.main(RFC2WSDLTool.java:196)
-
OK
-
</b>
Thanks and Regards,
Ravi Shah
Hi Ravi,
lets try to get your NCo afflictions out of the way ...
once you have re installed JVM, you will also need to uninstall & re install the SAP .NET Connector (NCo)
>>After installation I opened the Dot Net connector proxy client wizard .
>>I followed the series of step during Dot Net connector configuration:
>>1. selected the SAP connector.
>>2. The next screen 'Enter Logon Information' comes where i entered the
>>following information System as 'custom', host='IP address', Id='00' but by
>>default it turns to '0' , client='800', user='user id' and password ='password'.
id = 0 is not an issue,
do not worru about that
>>3. After clicking on Next button i am successfully logon into the SAP system.
this is good news
>> 4. The next screen in the wizard is 'selectall the remote function modules that
>> you want to be part of your proxy object'. After selecting the SAP tables and
>> clicked on Next button I am getting following error
>>Exception in thread "main" >>com.sap.aii.upload.api.LoginException$WrongPassword: Invalid user/password >>combination
if you could log on to the system, that means your credentials are working fine.
what version of NCo are you using ?
i would recommend 2.01 as a stable build.
with respect,
amit
Hi Amit,
1. once you have re installed JVM, you will also need to uninstall & re install the SAP .NET Connector (NCo)
<b>I missed this part. After uninstall and installation of JVM,i didn't uninstall SAP .Net Connector.</b>
2. Currently I have installed :
a. SAP .Net Connector Runtime
b. SAP.Net.Setup2003
If you recommend to install 'SAP.Net.Setup_2.0' then please let me know. I would appreciate if you can send me the link for downloading the latest version of Dot Net Connector.
Awaiting your reply!!!!
Thanks and Regards,
Ravi Shah
Hi Ravi,
the Runtime is designed only for production environments where there is no Visual Studio 2003
It will not be usefult for generating proxies
please use the following link [on service market place (login required)]:
https://websmp101.sap-ag.de/~sapidb/011000358700001312072002E
when you open the page, click on the hyper link :
"SAP connector for Microsoft .NET 2.0.1 Installation"
with respect,
amit
Hi Amit,
I installed the latest version of Dot net connector 2.0.1 by unstalling all the previous version but kept the JVM as it is.
After selecting new items option and i selected the SAPConnector class. Instead of giving me the wizard it has been replaced with 'SAPProxy1.sapwsdl'. On the left hand side i can see the Server option but inthat 'SAP' root node is missing,
I choose the "Data Connections" node and click on the "Refresh" button but SAP option is not yet visible. Please guide me how should I proceed ahead.
Regards,
Ravi Shah
Hi Ravi,
if the SAP root node is missing, you need to uninstall NCo & then re install it.
there is no way u can proceed with out it...
if this continues i'd recommend a clean installation of VS.NET, [with all the installs and uninstalls, some part of VS.NET 2003 has been affected and it is not recognizing the plugin : NCo]
Once you get the SAP root node, here is how to proceed ...
Once you have added a SAPProxy to your project,
1> open the Server Explorer,
2> Select a RFC that you would like to consume, either fromn the BOR, or u can add a function filter
3> then drag and drop the RFC onto the SAP Proxy
the proxies will be created within the project, and can be invoked in your code by calling the SAPProxy class and then venturing within [for the methods associated with that RFC]
Documentation for NCo 2.0
can be found at :
http://help.sap.com/saphelp_nw2004s/helpdata/en/e9/23c80d66d08c4c8c044a3ea11ca90f/frameset.htm
with respect,
amit
Hi Ravi,
Good news that you can see the root SAP node in the Server Explorer.
the help.sap.com link (previous post) is very useful as well as the .NET dev Centre on SDN
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/3ecbe347-0a01-0010-5897-dc8f1... [original link is broken]
i'm hungry now now and request to take leave fro dinner, so all the best with u're tasks
i will probably check the forum tomorrow, so if you need any assistence, please let me know here itself
with respect,
amit
Message was edited by:
amit chawathe
Hi Ravi,
how are you doing today?
glad to hear that you are now in position to begin using NCo
hope you have built many proxies since last evening ...
>> Many Many Thanks for your help and your dedicated time for this issue.
>>Now I am able to View SAP Server and create proxies.......
please mark the thread as solved, if you feel it appropriate
you are most welcome, and i appreciate your feedback on your status once you are underway
if you have any more issues, please post them on the forum, i'm sure all the people will do they're best to respond when possible
the defacto practice is to reward useful answers with points, as we all do our best to help, it is acknowledgement of the time spent to help others with their experience. when an answer is helpful, very helpful or a solution, points are allocated to the reply, which helps in many ways.
when someone else has a similar problem and they search the archives of the forum, a rewarded answer is immediately identified and used [it saves a lot of time]
also it brings a smile to the contributor to know that his/her time was appreciated and gets SDN recognition for that )
it is totally the thread creator's perogative to decide if the answer was useful, so hope you are in position to use the forum effectively and profit from it.
with respect,
amit
Message was edited by:
amit chawathe
Hi Ravi,
As Amit has mentioned, briefly, don't forget to give rewarding points
Best Regards,
Huseyin Akturk
SW Engineer & ABAP Consultant
Hi Ravi,
how are you doing ?
As u're new in these woods, please read the reward points FAQ
https://www.sdn.sap.com/irj/sdn/crphelp
you have currently marked the thread as solved, usually the conversation does not continue in the same thread after ...
usually every reply which is helpful, very helpful, etc is marked
again at you own discreation, as a thread creator you choose which answers to reward and every thread can have 1 solution, 2 very helpful, and as many helpful answers, just marking the thread as closed is not enough, unless you solve it yourself...
please keep the FAQ in mind to be ablew to reward those who help you accordingly
as your question is a new one, i'd recommend you open a new thread, so that it reflects the change in topic
to answer your question :
i am not aware of a SAP .NET tutor session for VS 2003, but to be quite honest, it is not really required, the 2002 version is sufficient, the only change to a user being how to select a RFC, which we have been thru in this thread...
with respect,
amit
Hi Ravi,
Have tried to install the latest version of jvm such as 1.6?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.