Quantcast
Channel: SCN : Popular Discussions - Java Development
Viewing all 518 articles
Browse latest View live

LDAP acces via SSL - javax.net.ssl.SSLHandshakeException

$
0
0

Hello All

 

I'm trying to fing reason for non-working SSL connection from java app (EJB) to LDAP server.

 

Code is:

 

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
System.setProperty("ssl.ServerSocketFactory.provider","oracle.security.ssl.OracleSSLServerSocketFactoryimpl");
env.put(Context.PROVIDER_URL, urlLdapServer + baseDN);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "user");
env.put(Context.SECURITY_CREDENTIALS, "password");

 

And while trying to connect exception is thrown:

 

Exception while getting data from LDAP:

javax.naming.CommunicationException: simple bind failed: server_address:636 [Root exception is javax.net.ssl.SSLHandshakeException:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

unable to find valid certification path to requested target]

 

In portal's configuration there is key storage named TrustedCAs containing valid certificate for this LDAP server.

 

I'm bit stuck, so any help would be highly appreciated.

 

Thanks in advance

Best Regards

Maciej Gottfried


Options in RFC_READ_TABLE

$
0
0

Hi all,

 

In RFC_TABLE_READ as I can put in an option like? when the field type like * XXXX *.

 

It's more if someone could tell which are the operators that exist in the where clause.

 

Thank you very much

How to get MYSAPSSO2 token from session

$
0
0

Hi All,

 

I have session bean which is exposed as web service, Now I want to get MYSAPSSO2 token value using java code, how will I get that?

 

 

---------------

Thanks

DYNPRO_SEND_IN_BACKGROUND

$
0
0

Hi All,

 

I am executing a JCO Program which triggers a RFC using JCO's <b>execute(String functionName)</b> method.

 

RFC inturn calls an SAP interface which process the goods issue files.

 

After processing few files i get a connection closed error.

 

In seeing in Transaction ST22 the error was DYNPRO_SEND_IN_BACKGROUND

 

When executed in SAP GUI the error never comes and also when the abapDebug is set to true

 

and its strange that its coming after processing some few files.

 

Any Idea

 

Thomas

How to make a RFC call to SAP from JAVA

$
0
0

Hello everyone,

 

I want to know the basic idea on how to make a RFC call to SAP from JAVA.

 

What are the pre-requisites for it ? What are the tools (JAVA tools , DLL files etc ) required before I can make a RFC call? Basically I am asking for a high level design with basic technical pre-requisites.

 

 

Thanks-

Harmeet.

Java EE concepts for Portals custom development

$
0
0

Hi Gurus,

 

Which concepts of Java EE are helpful/required for custom development of Netweaver Portals?

 

What I am trying to find is the list of Java EE topics that are redundant as far as Netweaver Portals are concerned. In that case, I can only concentrate on relevant topics.

 

Or should I take an EE book and read from start to finish?

 

Thank you.

 

Rama

DYNPRO_SEND_IN_BACKGROUND

$
0
0

Hi All,

 

I am executing a JCO Program which triggers a RFC using JCO's <b>execute(String functionName)</b> method.

 

RFC inturn calls an SAP interface which process the goods issue files.

 

After processing few files i get a connection closed error.

 

In seeing in Transaction ST22 the error was DYNPRO_SEND_IN_BACKGROUND

 

When executed in SAP GUI the error never comes and also when the abapDebug is set to true

 

and its strange that its coming after processing some few files.

 

Any Idea

 

Thomas

Options in RFC_READ_TABLE

$
0
0

Hi all,

 

In RFC_TABLE_READ as I can put in an option like? when the field type like * XXXX *.

 

It's more if someone could tell which are the operators that exist in the where clause.

 

Thank you very much


sapjco3.dll (32bit VS 64bit)

$
0
0

Hi All,

 

I using sapjco3.dll on 64bit Windows 2008 system for JCO Connector.

i am getting the below error

java.lang.UnsatisfiedLinkError: C:\Windows\System32\sapjco3.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

 

Could any once please suggest how can i fix this issue with 64bit system.

If need to download sapjco3.dll compatible to 64bit system where can download?

 

Regards,

Narayana.

When will SAP Java AS for EE 6 see the light?

$
0
0

Hi all,

As far as I know, SAP's bleeding edge AS (NW73 AS) is based on EE5.

As several java AS vendors are releasing EE6 compliant products, I would like to know whether any deadline has been set for SAP's EE6 app server release.

 

Thanks in advance

regards

 

Vincenzo

sapjco3.dll (32bit VS 64bit)

$
0
0

Hi All,

 

I using sapjco3.dll on 64bit Windows 2008 system for JCO Connector.

i am getting the below error

java.lang.UnsatisfiedLinkError: C:\Windows\System32\sapjco3.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

 

Could any once please suggest how can i fix this issue with 64bit system.

If need to download sapjco3.dll compatible to 64bit system where can download?

 

Regards,

Narayana.

DYNPRO_SEND_IN_BACKGROUND

$
0
0

Hi All,

 

I am executing a JCO Program which triggers a RFC using JCO's <b>execute(String functionName)</b> method.

 

RFC inturn calls an SAP interface which process the goods issue files.

 

After processing few files i get a connection closed error.

 

In seeing in Transaction ST22 the error was DYNPRO_SEND_IN_BACKGROUND

 

When executed in SAP GUI the error never comes and also when the abapDebug is set to true

 

and its strange that its coming after processing some few files.

 

Any Idea

 

Thomas

sapjco3.dll (32bit VS 64bit)

$
0
0

Hi All,

 

I using sapjco3.dll on 64bit Windows 2008 system for JCO Connector.

i am getting the below error

java.lang.UnsatisfiedLinkError: C:\Windows\System32\sapjco3.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

 

Could any once please suggest how can i fix this issue with 64bit system.

If need to download sapjco3.dll compatible to 64bit system where can download?

 

Regards,

Narayana.

Java RFC Connection: Step by step

$
0
0

Hi folks,

 

my first goal is to achieve a remote function call from Java to SAP or the other way.

My first attempt is a Java application which does a RFC to a SAP ABAP function that returns me some database data, but more about that later.

The first thing where i already fail is to build up a simple connection between Java and SAP.

I tried it with JCo v2.1.x and JCo v3.x (Which version should i prefer? are there advantages, disadvantages?)

Here are the two approaches:

{JCO v2.1.x}:

 

          
JCO.Client myConnection = JCO.createClient("001",                                                               "***",                                                                "****",                                                                "DE",                                                                "***",                                                                "00");
myConnection.connect();
...
...

 

 

I get a "(103) RFC_ERROR_LOGON_FAILURE: Userid or password incorrect". I put in my normal SAP GUI account. Its not an admin account but i can create reports etc in the ABAP Editor.

I checked the spelling several time and it should be ok. Why does it say incorrect user or password?

Is this possible because of insufficient rights?

 

{JCo v3.x}:

I just tried the "StepByStepClient" example included in the sapjco3 download and i saw that every connect function begins with a "JCoDestination destination = JCoDestinationManager.getDestination(String);" line.

But what exactly does this getDestination function do? What string do i pass there? In the example is it JCoDestinationManager.getDestination("ABAP_AS_WITHOUT_POOL"); but then i get the error: ""(106) JCO_ERROR_RESOURCE: Destination ABAP_AS_WITHOUT_POOL could not be created:"..

Can anyone explain me how this works?

 

Thanks in advance!

SAP NetWeaver Compostion Environment 7.3 trial version download

$
0
0

Hi

When I try to download the SAP NetWeaver Composition Environment 7.3 trial version download

 

located at SAP_NW_CE_7.3_TRIAL_VERSION_abstract

 

I get an error stating that the web page is not available.

 

Is this download still supposed to be available?

 

Thanks,

Daniel


LDAP acces via SSL - javax.net.ssl.SSLHandshakeException

$
0
0

Hello All

 

I'm trying to fing reason for non-working SSL connection from java app (EJB) to LDAP server.

 

Code is:

 

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
System.setProperty("ssl.ServerSocketFactory.provider","oracle.security.ssl.OracleSSLServerSocketFactoryimpl");
env.put(Context.PROVIDER_URL, urlLdapServer + baseDN);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "user");
env.put(Context.SECURITY_CREDENTIALS, "password");

 

And while trying to connect exception is thrown:

 

Exception while getting data from LDAP:

javax.naming.CommunicationException: simple bind failed: server_address:636 [Root exception is javax.net.ssl.SSLHandshakeException:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

unable to find valid certification path to requested target]

 

In portal's configuration there is key storage named TrustedCAs containing valid certificate for this LDAP server.

 

I'm bit stuck, so any help would be highly appreciated.

 

Thanks in advance

Best Regards

Maciej Gottfried

DYNPRO_SEND_IN_BACKGROUND

$
0
0

Hi All,

 

I am executing a JCO Program which triggers a RFC using JCO's <b>execute(String functionName)</b> method.

 

RFC inturn calls an SAP interface which process the goods issue files.

 

After processing few files i get a connection closed error.

 

In seeing in Transaction ST22 the error was DYNPRO_SEND_IN_BACKGROUND

 

When executed in SAP GUI the error never comes and also when the abapDebug is set to true

 

and its strange that its coming after processing some few files.

 

Any Idea

 

Thomas

SAP NetWeaver Compostion Environment 7.3 trial version download

$
0
0

Hi

When I try to download the SAP NetWeaver Composition Environment 7.3 trial version download

 

located at SAP_NW_CE_7.3_TRIAL_VERSION_abstract

 

I get an error stating that the web page is not available.

 

Is this download still supposed to be available?

 

Thanks,

Daniel

Java RFC Connection: Step by step

$
0
0

Hi folks,

 

my first goal is to achieve a remote function call from Java to SAP or the other way.

My first attempt is a Java application which does a RFC to a SAP ABAP function that returns me some database data, but more about that later.

The first thing where i already fail is to build up a simple connection between Java and SAP.

I tried it with JCo v2.1.x and JCo v3.x (Which version should i prefer? are there advantages, disadvantages?)

Here are the two approaches:

{JCO v2.1.x}:

 

          
JCO.Client myConnection = JCO.createClient("001",                                                               "***",                                                                "****",                                                                "DE",                                                                "***",                                                                "00");
myConnection.connect();
...
...

 

 

I get a "(103) RFC_ERROR_LOGON_FAILURE: Userid or password incorrect". I put in my normal SAP GUI account. Its not an admin account but i can create reports etc in the ABAP Editor.

I checked the spelling several time and it should be ok. Why does it say incorrect user or password?

Is this possible because of insufficient rights?

 

{JCo v3.x}:

I just tried the "StepByStepClient" example included in the sapjco3 download and i saw that every connect function begins with a "JCoDestination destination = JCoDestinationManager.getDestination(String);" line.

But what exactly does this getDestination function do? What string do i pass there? In the example is it JCoDestinationManager.getDestination("ABAP_AS_WITHOUT_POOL"); but then i get the error: ""(106) JCO_ERROR_RESOURCE: Destination ABAP_AS_WITHOUT_POOL could not be created:"..

Can anyone explain me how this works?

 

Thanks in advance!

DYNPRO_SEND_IN_BACKGROUND

$
0
0

Hi All,

 

I am executing a JCO Program which triggers a RFC using JCO's <b>execute(String functionName)</b> method.

 

RFC inturn calls an SAP interface which process the goods issue files.

 

After processing few files i get a connection closed error.

 

In seeing in Transaction ST22 the error was DYNPRO_SEND_IN_BACKGROUND

 

When executed in SAP GUI the error never comes and also when the abapDebug is set to true

 

and its strange that its coming after processing some few files.

 

Any Idea

 

Thomas

Viewing all 518 articles
Browse latest View live


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