How to start SAPGUI at entry point to RFC for debugging (using JCO)?
Hi,
I am calling an RFC using JCO and trying to have the SAPGUI pop up at the entry point to the RFC for debugging. But it is not working on Mac OS X.
I activate the debug via
JCO.Client client = JCO.createClient(..);
client.setAbapDebug(true);
client.setSapGui(1);
client.connect();
it gives error:
sh: line 1: /usr/sap/DV2/SYS/exe/run/sapgui: No such file or directory
com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Start 'sapgui' failed.
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)
I then tried to set environment variable SAPGUI=/Applications/SAPGUI\ for\ Java\ 6.3r5.2/SAPGUI\ 6.30rev5.2.app/Contents/MacOS/SAPGUI
and it then starts up the SAPGUI for Java Logon Pad.
But, I want the SAPGUI to start up at the entry point to the RFC.
Is this possible in Mac OS X? It has worked before on Windows using the RFC SDK utilities or middleware tools such as IBM Crossworlds.
Thanks
Hi Robert,
Thanks for the reply, it was very helpful as I had given up hope on getting a solution. Unfortunately I am still getting an error.
1) I created a script as per your directions containing
"/Applications/SAPGUI for Java 6.3r5.2/SAPGUI 6.30rev5.2.app/Contents/MacOS/SAPGUI" -n -o $*
2) Now the SAPGUI application starts, but does not open a window and I get the error:
ERROR #############################
18.05. 11:58:42.943 ERROR: AgiWindowAdaptor::update: no menu
ERROR #############################
3) I switched on the tracekeys with -t CON,SES,EVT,C_AGI to get more detail:
18.05. 11:58:41.420 TRC: Active trace keys: CON,SES,EVT,C_AGI
18.05. 11:58:42.709 CON: new GuiConnection
18.05. 11:58:42.727 CON: GuiConnection.open(/H/<appserver>/S/3235&rfcid=02D5428B909E32190000,tmp)
18.05. 11:58:42.846 CON: new GuiNiNetConnection
18.05. 11:58:42.872 CON: GuiNiNetConnection.open(conn=/H/<appserver>/S/3235&cpg=1127&jenc=MacRoman&jloc=en&rfcid=02D5428B909E32190000)
18.05. 11:58:42.872 CON: GuiNiNetConnection.open: resolved hostSpec = /H/<appserver>/S/3235
18.05. 11:58:42.915 CON: -
18.05. 11:58:42.916 CON: GuiNiNetConnection: sending DIAG data to connection for modus 0
18.05. 11:58:42.918 CON: -
18.05. 11:58:42.919 CON: GuiNiNetConnection: sending DIAG data to connection for modus 0
18.05. 11:58:42.927 C_AGI: calling AgiSessionPool->ParseIt() for modus 0
18.05. 11:58:42.929 C_AGI: AgiLibAdaptor::onNewPrimary
18.05. 11:58:42.941 C_AGI: returned from AgiSessionPool->ParseIt() for modus 0
ERROR #############################
18.05. 11:58:42.943 ERROR: AgiWindowAdaptor::update: no menu
ERROR #############################
18.05. 11:58:42.950 SES: GuiAutomationProcessor: processing automation call list for modus id 0
18.05. 11:58:43.043 SES: new GuiSession
18.05. 11:58:50.557 CON: GuiNiNetConnection: sending CLOSE data to writer thread
18.05. 11:58:50.791 CON: -
18.05. 11:58:50.791 CON: GuiNiNetConnection: sending DIAG data to connection for modus -1
18.05. 11:58:50.793 C_AGI: AgiLibAdaptor::onDelContainer
18.05. 11:58:50.794 C_AGI: AgiLibAdaptor::onDelContainer
18.05. 11:58:50.794 C_AGI: AgiLibAdaptor::onDelPrimary
18.05. 11:58:50.795 CON: GuiConnection.destroyNetConnectionAndParser
com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Start 'sapgui' failed.
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:1098)
at com.sap.mw.jco.JCO$Client.connect(JCO.java:2983)
Any further ideas on what is wrong? There is a post on another forum http://listserv.sap.com/pipermail/linux.general/2002-June/002538.html with the same error, but no response..
Thanks,
Richard
Similar Messages
-
How to create new KM "Entry Point"
Hi Could someone guide me how to create a new Entry Point
(Note:Not the PCD navigation entry point)
"An entry point provider makes one or more folders available as links that you can access from a central point"
Thanks
RockyRocky,
Entry points allow you to navigate from an iView to various KM folders that may
be located in different repositories.
Try these urls
http://help.sap.com/saphelp_nw04/helpdata/en/54/3d754067025537e10000000a1550b0/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/e2/2d354036052c22e10000000a1550b0/content.htm
Points are welcome for helpful answers
Regards
Vineeth -
How to set up Airport Express in Bridge mode for hotel use
Please provide step by step instructions on how to set up Airport Express in Bridge mode for hotel use. I do not have a computer with me, only an iPhone and AEX 802.11n.
+"Please provide step by step instructions on how to set up Airport Express in Bridge mode for hotel use. I do not have a computer with me, only an iPhone and AEX 802.11n."+
AirPort Utility is the application that must be used to setup and make any configuration changes to the AirPort Express. I'm not aware of an "App" for this.
If you could borrow a computer from someone there for 30 minutes or maybe use the computer in the lobby, you could download AirPort Utility and reconfigure your Express. To help with setup, use an ethernet cable from the computer to the Express to help AirPort Utility "see" the Express.
http://support.apple.com/downloads/#airport -
How to get rid of "entry point sqlite3 checkpoint" error on startup
When I startup my laptop (win7 64bit) I get the popup error box saying "This procedure entry point sqlite3_wal checkpoint could not be found in the dynamic link library SQLitwe3.dll. I'm realy tired of seeing it especialy seeing as its caused by Apples new and improved iTunes update. How can I get rid of it short of deleting iTunes?
When I startup my laptop (win7 64bit) I get the popup error box saying "This procedure entry point sqlite3_wal checkpoint could not be found in the dynamic link library SQLitwe3.dll. I'm realy tired of seeing it especialy seeing as its caused by Apples new and improved iTunes update. How can I get rid of it short of deleting iTunes?
-
Can't start Safari.exe - Entry Point Not Found in JavaScriptCore.dll
The procedue entry point JSValueMakeFromJSONString could not be located in the dynamic link library JavaScriptCore.dll - Have removed/reinstalled java and Safari and still get this error.
On Windows/XP with current service packs.
Message was edited by: Ed.CampUninstalled Safari 5 then ran Apple Software Update which reinstalled Safari 5 - received same error.
Uninstalled Safari 5 and reinstalled a copy of Safari 4 - it works.
Is there common java usage with other browers I use (Chrome, FireFox, IE)? -
Entry point not found for js32.dll
Dear Friends,
I am trying to connect to a Domino server using NRPC (Native call based) connection. I have added Notes Client path in PATH variable (double checked this). My machine is W2k and Java version 1.4.2.
The following is the code which I am trying to run and getting erorr as,
"The procedure entry point JS_NewStringCopyN could not be located in dynamic link library js32.dll". I've use Dependency walker tool to ensure that js32.dll contains the specified function. May I know what's going wrong here?
Thanks,
Ketan
import java.util.List;
import java.util.Vector;
import lotus.domino.Database;
import lotus.domino.Document;
import lotus.domino.NotesError;
import lotus.domino.NotesException;
import lotus.domino.NotesFactory;
import lotus.domino.NotesThread;
import lotus.domino.Session;
import lotus.domino.View;
import lotus.domino.ViewEntry;
import lotus.domino.ViewEntryCollection;
public class TestNRPCConnection {
//session variable
protected Session session = null;
//database variable
protected Database dominodb = null;
* Constructor which accepts all the parameters to create a non-DIIOP domino connection
* @param serverName - name of domino server
* @param dbName - database name
* @param userIdFileName - user id file path
* @param userName -
* @param password
public TestNRPCConnection(String serverName, String dbName, String userIdFileName, String userName, String password)
try
NotesThread.sinitThread();
this.session = NotesFactory.createSession();
lotus.domino.Registration r = this.session.createRegistration();
r.switchToID(userIdFileName, password);
dominodb = session.getDatabase(serverName,dbName);
if(dominodb == null)
throw new Exception ("Couldn't create Domino Connection. Please check the parameters.");
if( dominodb.isOpen() == false)
this.close();
throw new Exception("Couldn't create Domino Connection. Please check the parameters. " +
" server=" + serverName
+ ", user=" + userName
+ ", user_ID_file=" + userIdFileName
+ ", database_path=" + dbName
+ ", password=" + ((password != null)? "<non-null>" : "<null>")
else
System.out.println("View Names are : " + dominodb.getViews());
System.out.println(" Database is Open " + dominodb.getFileName());
catch(NotesException e){
String dominoErrorText = e.text;
int dominoErrorID = e.id;
switch (dominoErrorID) {
case NotesError.NOTES_ERR_DOCNOTSAVED :
System.out.println("NotesException - . Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_VIEWOPEN_FAILED :
System.out.println("Could not open the specified View <viewname>. Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_DBNOACCESS :
System.out.println("No access to the specified Database <dbname>. Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_ILLEGAL_SERVER_NAME :
System.out.println("The servername specified <servername> isn't correct. Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_DBOPEN_FAILED :
System.out.println("Could not open specified Database <dbname>. Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_SSOTOKEN_EXP:
//Single Sign-on Token has expired.
System.out.println("NotesException - Domino Error Id = " + dominoErrorID + ", Domino Error Text = " + dominoErrorText);
break;
case NotesError.NOTES_ERR_SERVER_ACCESS_DENIED:
//Access denied.
System.out.println("This user is not authorized to open DIIOP connections with the Domino server. Check your DIIOP configuration. NotesException - " + dominoErrorID + " " + dominoErrorText);
break;
case NotesError.NOTES_ERR_GETIOR_FAILED:
//Could not get IOR from Domino Server.
System.out.println("Unable to open a DIIOP connection with " + serverName + ". Make sure the DIIOP and HTTP tasks are running on the Domino server, and that ports are open. NotesException - " + dominoErrorID + " " + dominoErrorText + ".");
break;
default:
//Unexpected error. Show detailed message.
System.out.println("NotesException - " + dominoErrorID + " " + dominoErrorText);
e.printStackTrace(System.out);
catch(Exception ex)
ex.printStackTrace();
System.out.println("Error while creating Domino Connection. Details - " + ex + ". Parameters are, " +
" server=" + serverName
+ ", user=" + userName
+ ", user_ID_file=" + userIdFileName
+ ", database_path=" + dbName
+ ", password=" + ((password != null)? "<non-null>" : "<null>"));
public synchronized void close()
try
this.dominodb = null;
if(session != null)
session.recycle();
session = null;
catch(Exception ex)
ex.printStackTrace();
finally
NotesThread.stermThread();
* Gets documents by the specified view name
* @param viewName - name of the domino view
* @return
public synchronized List getColumnNamesForView(String viewName)
List columnNames = new Vector();
List documentList = new Vector();
try
View view = (lotus.domino.local.View)this.dominodb.getView(viewName);
ViewEntryCollection entryCollection = view.getAllEntries();
if(entryCollection == null)
return null;
ViewEntry entry = entryCollection.getFirstEntry();
int i = -1; //counter
while (entry != null)
if (entry.isDocument())
Document doc = entry.getDocument();
i++;
//get the Column Names
if(i == 0)
List items = doc.getItems();
String name = "";
for(int k=0; ((i==0) && (k<items.size())); k++)
name = ((lotus.domino.Item)items.get(k)).getName();
//skip column names starting with $ or ($
if(name != null)
columnNames.add(name);
if(doc == null)
continue;
else
//clean up task
doc.recycle();
doc = null;
//return columnNames;
documentList.add(0, columnNames);
entry = entryCollection.getNextEntry();
}//end of while
catch(Exception e)
e.printStackTrace();
return documentList;
public static void main(String[] args){
TestNRPCConnection domino = null;
try
System.out.println("java.library.path = '" + System.getProperty("java.library.path") + "'");
domino = new TestNRPCConnection(
"testservername",
"names.nsf",
"c:/lotus/domino/data/admin.id",
"UserName/domain",
"somepassword");
System.out.println("Column Names " + domino.getColumnNamesForView("Groups"));
}catch(Exception e)
e.printStackTrace();
finally
//if(domino != null)
//domino.close();
}Hi,
Can you try with a Generic Wrapper like JNative (it contains a method to list all exported functions of a dll : even mangled ones) ?
--Marc (http://jnative.sf.net) -
How to get values from a table(in jsp) for validation using javascript.
hi,
this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
thank you in advance.Yes i did try the same ..
BEGIN
select PROD_tYPE into :P185_OFF_CITY from
magcrm_setup where atype = 'CITY' ;
:p185_OFF_CITY := 'XXX';
insert into mtest values ('inside foolter');
END;
When i checked the mtest table it shos me the row inserted...
inside foolter .. Now this means everything did get execute properly
But still the vallue of off_city is null or emtpy...
i check the filed and still its empty..
while mtest had those records..seems like some process is cleaining the values...but cant see such process...
a bit confused..here..I tried on Load after footer...
tried chaning the squence number of process ..but still it doesnt help
some how the session variables gets changed...and it is changed to empty
Edited by: pauljohny on Jan 3, 2012 2:01 AM
Edited by: pauljohny on Jan 3, 2012 2:03 AM -
How to start from a specific point on the timeline
I have a horizontal list of image thumbnails, there are 21 thumbnails and only 7 are visible at one time and scrolls back and forth. It works fine.
However, when I choose an image that is not in the first seven, say the 8th image, the page loads and the thumbnails goes back to the beginning images (undesirable). When the 8th image page is shown I would like the thumbnails to start at the eigth image, NOT from the beginning again.
I had the animation positioned to the eight image for the start, with the first 7 off to the left and the second 7 off to the right. But when I saved and loaded it into the page, it just starts from the begining.
How can I start the thumbnails from a specific desired position, such as the 8th image or the 15th image depending on the page?
Thank you for any help.
AnthonyHi Anthony,
Thank you for your post.
It would be better if you share any link or actual composition with us.
Regards,
Devendra -
How to clear previous data entries in sm30 transaction for table maintainen
Whenever i maintain 8-10 records in sm30 for table maintenanace and again when I go to SM30 for entering new records i am able to view previous entries .
then i click on new entries where data is cleared.
Now what i need is i want to clear the data before clicking "new entries".
means for user it should appear as a fresh screen.
is it possible if yes HOW?
please anyone suggest me way to do it immediatelyhi Nilesh,
when u r clicking new entries data is not cleared but u r going to other screen,so it will apppaer as blank screen.If u want to delete all the records ,then write the logic in ur code.
CASE SY-UCOMM.
when 'NEWENTRIES'
USe delete dbtable statemnt...then commit work.it will delete all the entries.
ENDCASE.
regards,
Nagaraj -
In plant parameters how the start date in past will be applicable for order
Hi All,
Can any one explain me in detail start in past for plant parmeters (OPPQ).
Regards
sailendraHi,
Start date of order proposals allowed in the past
This indicator defines that the system does not automatically switch to forward scheduling if the order start date lies in the past for determining the basic dates. With this indicator, backward scheduling is always used to determine the basic dates, even if the start date lies in the past.
e.g Bacward scheduling type, Today date is 08.06.2009
If u give basic finish date say 25.06.2009,and system propose you basic start date in 06.06.2009. That is 06.06.2009 is lies in past date.In this case system propose you forward scheduling.Means order basic start date is 08.06.2009 .If you don't want to system propose you for forward scheduling tick mark Start in past in OPPQ.
Hope this clear you.
Regards,
Raja. -
Entry point not found for photoshop
What to do? Help!!
i tried to unistall and do the whole installation again but it doesnt work!uninstall ps cc and clean (Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6) and reinstall.
-
How can I open my Windows 7 firewall just for FTP use?
I originally tried this question at the regular user forums, but after no success a Microsoft Support Engineer suggested I post here.
On my Mac, if I use FileZilla to connect to an FTP (not sFTP) server, it works fine.
However, in Windows 7 or Windows 8, if I use FileZilla or WinSCP to connect to the same server, when it gets to the point where it starts to list the remote directory I get an ECONNABORT error and get disconnected.
Here is a transcript from FileZilla:
Command: USER douglerner
Response: 331 User name okay, need password.
Command: PASS **********
Response: 230 User logged in, proceed.
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 502 Command not implemented.
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Command okay.
Command: PASV
Error: Disconnected from server: ECONNABORTED - Connection aborted
Error: Failed to retrieve directory listing
However, if I turn off the Windows firewall it works and I can use FileZilla and other FTP clients just fine.
My question is, rather than turning off the firewall altogether, how can I make an exception just for FTP, or just for FileZilla. I believe ports 20 and 21 are used depending on whether the connection is active or passive.
It isn't just me either. I was trying to help somebody else who is experiencing the exact same thing in his Windows 7. If he turns off the firewall completely FTP works. Otherwise it's the same error. He is on a different network altogether, in a different
country. Neither of us are behind proxy servers. In my case, it's just my home network.
I tried the following so far:
1. Make sure that FileZilla was listed as allowed in the firewall control panel. It was by default, so that didn't help.
2. Creating an "inbound rule" in the advanced settings for ports 20-21. That didn't help either.
Just completely turning off the firewall lets it work.
Any suggestions?
Thanks,
DougHi doug,
What is your current situation? Have you solved this issue?
Here I list the several solution:
Use the network monitor the capture package related to FTP as arnavsharma mentioned.
Take a look at the article as Sebastian and Sameer Gawde mentioned.
http://technet.microsoft.com/en-US/en-en/library/dd421710%28v=ws.10%29.aspx#bkmk_1
Best regards,
Fangzhou CHEN
Fangzhou CHEN
TechNet Community Support -
Hello,
I want pass value in STATUS and Reason for rejection according to requirement when i am creating multiple lead using BAPI_LEAD_CREATEMULTI. Please help me how can i pass value. Please give some sample code that in which table i have to pass values and please also tell me INPUT_FIELDS values. Please help me
Regards,
Kshitij RathoreHello,
Please help me for solve this problem. I am trying to solve problem from last 4 days but i didn't get any solution.
Regards,
Kshitij Rathore -
Guys, I don't understand how to use it, can someone explain in to me? No entiendo lo de los sistemas operativos y sinceramente creo que no entiendo nada de cómo se hace para partir el disco:( AYUDA! HEEEELP!:(
Read the Bootcamp documentation http://www.apple.com/support/bootcamp/
-
How do I format a WD 4TB Red HD for mac using ML?
I bought a 4TB WD Red internal drive and placed it into a OWC enclosure with firewire 800 ports to use as storage for my 2011 Macbook Pro. I've read about and tried various ways to format the drive for Mac. WD and Apple online support/forum pages tell me to partition the drive as 1 using Apple Partition Map. Doing that, I was able to format the drive...it seemed until I tried to copy files. It only allowed me to copy certain files. For instance, it wouldn't allow me to copy over any .wav files. So basically, I am asking how can I reformat the drive properly? WD page states that if an error occurs its not the drive but the operating system. They suggest turning off wi-fi, security, etc. to prevent the error. But it just isn't working. Anybody formatted a 4TB WD RED as an external for/with Mountain Lion? I think the idea of creating a cheaper super reliable external drive myself was naive, maybe...
Information.
Disk Utility - Format, Erase, or Reformat a Drive
Maybe you are looking for
-
Given an older ipod , 5th generation and 30GB, can't restore
I was given an older iPod, 5th generation 30GB, I can't reset or restore it using windows 7 based computer even with the most current iTunes download. Is anyon e else having trouble resetting older iPods with windows or is their something wrong with
-
I just bought apple tv......trying to use homeshare-computer won't cooperate.....have 2 i pads, 2 iphones and can not get my macbook pro-(10.5.8) to update to snow leopard (10.6) which is what seems will make homesharing work between all these apple
-
Cannot install Windows 8.1 via bootcamp. (Solved)
I have tried installing via bootcamp and I got an error, I didn't take a picture but it said something about not setting the right boot up? I also tried the method of removing the partion and creating a new partion called BOOTCAMP in exFat. I cannot
-
Can't drag and drop files into Attachments while in Administrator mode
I can drag and drop files into attachment easily when I'm not in Administrator mode. But I need to be in Administrator mode at work and therefore for some reason I cannot drag and drop files into attachments; I'm forced to manually search and select
-
Undo with Memento pattern vs swing undo
I was tempted to add this question to the end of http://forum.java.sun.com/thread.jsp?forum=425&thread=440740&tstart=0&trange=15 but I've had a poor response in the past by adding a question to the end of an existing thread. I am working on a project