Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Cloud Platform Developer Center
Viewing all 1983 articles
Browse latest View live

Problem requesting OAuth Token from ABAP

$
0
0

Hello,

 

I am working on a POC ABAP application which utilizes functionality provided by a HCP extension.  I have been using the Access SAP Hana Cloud Platform using the OAuth 2.0 Client API - Security and Identity Management - SCN Wiki WIKI page as a guide.

 

On the HCP side, we created a new OAuth client for the proper subscription.  The Authorization Grant is of type Authorization Code, and the redirect URL is the URL from the ABAP client created in OA2C_CONFIG.

 

On the ABAP side, we created a Client Profile of type HCP.  We used OA2C_CONFIG to create a new client with the client ID from HCP.  The authorization endpoint and token endpoint URLs were used from the HCP OAuth page. 

 

I went to OA2C_GRANT and requested a token.  I'm taken to the on-demand Authorize Client page.  I click on the Authorize button and an taken back to the OA2C_GRANT_APP web dynpro app on the ABAP server.  The query string has a message that says Client Configuration or Network Problems See kernel traces.

 

We are having a hard time figuring out how to debug this issue.  I don't see anyplace on the HCP cockpit to see kernel trace files. 

 

Can anybody give some suggestions on how to move forward from here?

 

A couple things to note:  The add-on developers told me that they didn't use any scopes in the add-on so I'm leaving that blank in the client profile.  I believe the SSL certificate has been added correctly.  I was able to access the HCP add-on from a test ABAP program okay before the OAuth functionality was added.

 

Thank you for your help and suggestions.

 

Best regards,

John Richason


Cloud connector service does not start after installation

$
0
0

Hello,

 

I have installed the Cloud Connector 2.7.1 using the msi. After installation the service does not start.

I am running Windows 7 with Java 1.7.0_80 and have Studio C++ 2010 installed.

 

The scc_service log looks like :

 

****:    Tue Mar 08 22:38:46 2016 **** -- Opening Log File for Installation

SAP HANA Cloud Connector Version:    2.7.1.0

Found JavaHome in SCC Registry:    C:\Program Files\Java\jdk1.7.0_80

CheckJVM() found jvm.dll:    C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll

SccGetProductMajorVerrsion():    Major version of C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll: 7

CheckJVM():    Loaded jvm.dll successfully

UnzipSccZipFile()

ExecuteCommand():    "C:\Program Files\Java\jdk1.7.0_80\bin\jar.exe" -xf com.sap.scc.zip-2.7.1-win64-msi.zip

ExecuteCommand():    cmd /C del /F /Q com.sap.scc.zip-2.7.1-win64-msi.zip

SetSCCPasswordAndPort():    Creating secure storage and configuring Java KeyStore with it.

GenerateSCCPassword():    Generating new password for Java Key Store

ExecuteCommand():    "C:\SAP\scc20\util\secsetpasswd.exe" *** "C:\SAP\scc20\scc_config"

ExecuteCommand():    "C:\Program Files\Java\jdk1.7.0_80\bin\keytool.exe" -storepasswd -storepass ***** -new ***** -keystore "C:\SAP\scc20\config\ks.store"

ExecuteCommand():    "C:\Program Files\Java\jdk1.7.0_80\bin\keytool.exe" -keypasswd -alias tomcat -keypass ***** -new ***** -keystore "C:\SAP\scc20\config\ks.store" -storepass *****

UpdateSCCConfig()

CallConfigurator():    Executing configuration adoption needed during upgrade.

ExecuteCommand():    C:\Program Files\Java\jdk1.7.0_80\bin\java.exe -jar configurator.jar -upgrade

 

 

****:    Tue Mar 08 22:38:55 2016 **** -- Opening Log File for Installation

SAP HANA Cloud Connector Version:    2.7.1.0

Found JavaHome in SCC Registry:    C:\Program Files\Java\jdk1.7.0_80

CheckJVM() found jvm.dll:    C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll

SccGetProductMajorVerrsion():    Major version of C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll: 7

CheckJVM():    Loaded jvm.dll successfully

 

 

****:    Tue Mar 08 22:38:55 2016 **** -- Opening Log File

SAP HANA Cloud Connector Version:    2.7.1.0

Found JavaHome in SCC Registry:    C:\Program Files\Java\jdk1.7.0_80

CheckJVM() found jvm.dll:    C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll

SccGetProductMajorVerrsion():    Major version of C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll: 7

CheckJVM():    Loaded jvm.dll successfully

****:    Tue Mar 08 22:38:55 2016 **** -- StartSCCService():    Starting SAP HANA Cloud Connector Service

 

 

****:    Tue Mar 08 22:38:55 2016 **** -- Opening Log File

SAP HANA Cloud Connector Version:    2.7.1.0

Found JavaHome in SCC Registry:    C:\Program Files\Java\jdk1.7.0_80

CheckJVM() found jvm.dll:    C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll

SccGetProductMajorVerrsion():    Major version of C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll: 7

CheckJVM():    Loaded jvm.dll successfully

Start():    Trying to start Service Control Dispatcher

****:    Tue Mar 08 22:38:55 2016 **** -- Service started

****:    Tue Mar 08 22:38:55 2016 **** -- LoadJVM():    Loading shared libray of Java Virtual Machine

LoadJVM():    C:\Program Files\Java\jdk1.7.0_80\jre\bin\server\jvm.dll loaded

AddJVMOption():    -XX:+HeapDumpOnOutOfMemoryError

AddJVMOption():    -XX:+DisableExplicitGC

AddJVMOption():    -Xms1024m

AddJVMOption():    -Xmx1024m

AddJVMOption():    -XX:MaxNewSize=512m

AddJVMOption():    -XX:NewSize=512m

AddJVMOption():    -XX:+UseConcMarkSweepGC

AddJVMOption():    -XX:TargetSurvivorRatio=85

AddJVMOption():    -XX:SurvivorRatio=6

AddJVMOption():    -XX:MaxDirectMemorySize=2G

AddJVMOption():    -Dorg.apache.tomcat.util.digester.PROPERTY_SOURCE=com.sap.scc.tomcat.utils.PropertyDigester

AddJVMOption():    -Dosgi.requiredJavaVersion=1.6

AddJVMOption():    -Dosgi.install.area=.

AddJVMOption():    -DuseNaming=osgi

AddJVMOption():    -Dorg.eclipse.equinox.simpleconfigurator.exclusiveInstallation=false

AddJVMOption():    -Dcom.sap.core.process=ljs_node

AddJVMOption():    -Declipse.ignoreApp=true

AddJVMOption():    -Dosgi.noShutdown=true

AddJVMOption():    -Dosgi.framework.activeThreadType=normal

AddJVMOption():    -Dosgi.embedded.cleanupOnSave=true

AddJVMOption():    -Dosgi.usesLimit=30

AddJVMOption():    -Djava.awt.headless=true

AddJVMOption():    -Dio.netty.recycler.maxCapacity.default=256

AddJVMOption():    -Djava.class.path=plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar

AddJVMOption():    exit

AddJVMOption():    abort

****:    Tue Mar 08 22:38:55 2016 **** -- Run():    Starting SAP HANA Cloud Connector ...

****:    Tue Mar 08 22:38:55 2016 **** -- ****:    Tue Mar 08 22:38:55 2016 **** -- AbortHook():    SAP HANA Cloud Connector service executable SCCHost was aborted.

 

Anyone have an idea what is wrong?

Thanks,
Reinier

Log on not possible to SAP HANA Cockpit and SAP HANA Web-based Development Workbench

$
0
0

Hi,

I cannot login to SAP HANA web based development workbench. i have created the databased named firstschema. if i try to launch development workbench from database.System is neither accepting the database name and password to login nor accepting the registered user id and password. Please let me know which user id and password i should use to login hana web based development workbench.

 

Thanks,

Ramanan

Blank Fiori Launchpage

$
0
0

Hi All,

 

I am getting a blank screen in my Fiori Launchpage. I couldn't see any content inside my launchpage. I developed this fiori launch page through my sap hana trial account. And also I see some error in my console.

 

 

Error Console :

 

 

2016-03-10 15:34:08.110995 Error in OData response for GET "/sap/opu/odata/UI2/PAGE_BUILDER_PERS/Chips('57319550-87fe-4306-a710-8b3d99e6c78d')": HTTP request failed - {"requestUri":"/sap/opu/odata/UI2/PAGE_BUILDER_PERS/Chips('57319550-87fe-4306-a710-8b3d99e6c78d')","statusCode":500,"statusText":"Internal Server Error","headers":[],"body":"<html><head><title>Error report</title></head><body><h1>HTTP Status 500 - An internal application error occurred.\nRequest: 2974412851 p1940664083trial:flpportal</h1></body></html>"} sap.ui2.srvc.PageBuildingService

 

 

2016-03-10 15:34:08.110995 Failed to load chip instance -  sap.hana.uis.flp.model.UISFioriModel

Can not delete java application.

$
0
0

Hi experts,

could you please help with application maintenance.

 

Java application was deployed on HANA Cloud trial instance with Dashboard. ( it was loaded existed .WAR file , not using Eclipse).

Application has  now status as stopped , but it is possible to run it from URL.

 

hana-java-stopped1.jpg

 

 

It is not possible to stop or delete application:

                   Alert

                   Could not delete application ochat: Internal Server Error (500)

 

Not any other applications can be started.

 

hana-java-stopped.jpg

 

Thanks,

Viktor

IoT MMS doesn't work

$
0
0

Hi,

 

I'm using Internet of Things service on HCP account Custom Development IoT-challenge.

I've deployed the latest version of a Message Management Service and it stopped working.

Now it reports an error: Access to the requested resource is not authorized (HTTP 401).

But before updating it worked OK.

 

There are stacktraces available

 

Error in SAML2 configuration. JPaaS SAML2 Login module initialization failedjava.lang.IllegalStateException: Error while parsing configuration for tenant configuration of tenant ConfigurationCacheEntryId [tenantId=e6d44f67-9447-4af5-90b5-650fb4fa70a3, account=null, tenantAlias=null]

  at com.sap.core.jpaas.security.saml2.service.cfg.SAML2JPaaSConfigurationReader.modifyConfigurationEntry(SAML2JPaaSConfigurationReader.java:269)

...

Caused by: java.lang.NullPointerException: while trying to invoke the method java.util.List.iterator() of a null object returned from com.sap.core.jpaas.security.saml2.service.cfg.json.TrustedProvidersConfiguration.getIdentityProviders()

  at com.sap.core.jpaas.security.saml2.service.cfg.SAML2ConfigurationJPaaSImpl.addPasiveModeIdPsFromCfg(SAML2ConfigurationJPaaSImpl.java:219)

 

and another one

 

Error while parsing configuration for tenant configuration of tenant ConfigurationCacheEntryId [tenantId=e6d44f67-9447-4af5-90b5-650fb4fa70a3, account=null, tenantAlias=null]java.lang.NullPointerException: while trying to invoke the method java.util.List.iterator() of a null object returned from com.sap.core.jpaas.security.saml2.service.cfg.json.TrustedProvidersConfiguration.getIdentityProviders()

  at com.sap.core.jpaas.security.saml2.service.cfg.SAML2ConfigurationJPaaSImpl.addPasiveModeIdPsFromCfg(SAML2ConfigurationJPaaSImpl.java:219)

  at com.sap.core.jpaas.security.saml2.service.cfg.SAML2ConfigurationJPaaSImpl.initializeSAML2CfgFields(SAML2ConfigurationJPaaSImpl.java:213)

...

 

Full stacktrace in the attached file.

 

Could you please suggest a solution how this issue can be resolved?

 

Regards,

Yuriy Budenko



Custom IDP on HCP breaks my WebIDE

$
0
0

Hi,

 

On our productive HCP account, we've made a custom Trust relation with our ADFS system.

This works great, and our users are now able to logon with their domain user id, into our HCP apps.

trus.png

 

The problem is a bit with the administration.

Now that ADFS is the trusted IDP, we have authorization issues with:

- WebIDE

- HCPms cockpit

unauthorized.png

 

These two expect an S-user.

In our HCP, we've also defined a couple of S-users in the members section, as administrators and developers.

 

members.png

 

One of the ideas I had, was to define a secondary IdP (as you can see in the first screenshot) to Accounts.sap.com, so that I could navigate to the webide and HCPms cockpit with the addition of "?saml2idp=accounts.sap.com" to the url.

 

Unfortunately, I didn't get that to work because:

A) I don't know the exact settings for Accounts.sap.com

B) I'm not sure that this will work with our custom Trust provider.

provider.png

 

Bear in mind that I know very little of SSO and IdP, and most of the above setup is done by trial and error. I'm already very happy that I got the ADFS connection working for the end-users.

 

Any suggestions how to get the WebIde and HCPms cockpit working again?

got "HTTP Status 405 - Bad Method" on HCP tenant

$
0
0

Hi,

 

We are developing Fiori app on HCP and using sap.ui.unified.FileUploader to upload documents to HCP Document Repository. I developed a Document Service Servlet to handle loading uploaded documents to Document Repository. The whole scenario works fine on our development tenant.

 

On our testing tenant.

1) I deployed and registered the Fiori app to the tenant Launchpad;

2) I then subscribed my Java application (The Document Service Servlet) on tenant.

 

When I try to upload document from Fiori app on the testing tenant, I receive "HTTP Status 405 - Bad Method" from Servlet. 

 

The doPost method of Servlet is very well tested on Dev. tenant. Why does it return the error to Fiori client?

 

Any help will be highly appreciated.

 

Thanks,

Ken


Missing Workbench for Hana database

$
0
0

Hi HCP enthusiasts,

I created a "HANA <shared>" schema within the "Database&Schemas" option in the HCP cockpit. Now I would like to fill the database with some test data, but get no access to the Wokbench since the hyperlink is missing. Besides I only have the option to create "HANA <shared>" schemas - no HANA XS or HANA MDC options are availiable.

dbcreation.PNG

Does anybody know the reason for that or can help me to solve this issue?

 

Kind regards,

Tizian

Cannot unistall SCC 2.7.1 nor install the new 2.7.2

$
0
0

I keep getting these error when I try uninstalling SAP Cloud Connector 2.7.1 even though I have JDK 7u80 and the paths have been maintained.

 

jdk.pngjvm.png

Doesnt allow me to install the new SCC2.7.2 without uninstalling the old version too. Stuck! Could somebody help me resolve this?

Unable to configure HCP Mobile Services - Error at accessing HCPms Service

$
0
0

Hi everyone! I've been asked in my job to configure the HCP Mobile Services but I can't manage to get it working!

 

I followed the documentation to configure HCPms (SAP HANA Cloud Platform Mobile Services), the service is "Enabled".

 

The errors that come up are:

 

  1. When trying to subscribe to HTML5 Application "hanamobileprod" and trying to save it says: "Subscription or Application with name mobile already exists. Names must be unique across HTML5 applications and HTML5 subscriptions."
    If I type any other subscription name, let's say "othermobile", it appears to be working, but it's not listed in the table and it still says "Subscribed HTML5 Applications (All: 1)".
  2. Can't subscribe the account to the mobilejava JAVA application because there's not any option to subscribe any JAVA application.


Maybe those 2 points are no longer necessary to make HCPms work, because I've created a trial account and couldn't make those 2 points, but the HCPms Service can be accessed anyway and it works well.

When I try to enter the HCPms Service in my "productive" HCP account, I get the next error:


"HTTP Status 500 - An internal application error occured. Request: [reqnumber] [account]:mobile"

[reqnumber] is a number like 375289375

[account] is the account name like a01b00001


And it does that when I try to access any other HTML5 application, like the webide app, that is Subscribed (the only app list as subscribed).


Can you help me to get this to work? Any ideas you could give me is really appreciated.


Thanks in advance.

Alter Table type after initial load in SAP HANA, Hana Sidecar scenario.

$
0
0

Hello All

 

We want to alter table type and use the same as a Column table , after initial load in SAP HANA in a side car scenario.

We have a BSEG table in ECC system, we are using SLT for replication of data to HANA.

 

After initial load we want to alter Table type of BSEG  to Column on HANA ,without making any changes in table on ECC side.

 

Thanks

Asmita

IOT Cockpit Device Management is not loading with Devices

$
0
0

Hi Experts,

 

IOT Cockpit Device Management is not loading with Existing Device Types, Message and Device. Its was working before and some problem occurred today.

I am using SAP Hana Trial --> IOT Service.

 

 

iot Device management not loading.png

 

Thanks & Regards,

Arun

Implement mail session dynamically for each logged in user

$
0
0

Hi,

 

I am trying to implement a java servlet in HCP that sends emails from logged in User's corporate email account (i.e current_user@sap.com) to any email account.

 

The examples at HCP documentation provides details for adding mail destination for a particular user and password only.

 

Can anyone please give inputs on how to provide the mail session for the logged in user based on username and password along with valid client certificate that the email server expects during SSL validation?

 

Since the mail destination provider is same but user and password will be different for each logged in user, is there any dynamic way to set the destination session for each of the logged in user.

 

Regards,

Sri

HCP: delete-availability-check

$
0
0

Hi developers,

 

I am developing an HANA XS application on HCP (HANA XS prod instance).

 

Since creating the application an availability check is implemented. I want to delete this check and found following documentation (SAP HANA Cloud Platform).

 

When I check all active availabilty checks on my account, I found only one. If I want to delete this, I got the message:


Warning: Configuration for account XXXXXXX, application XXXX does not exist.

 

It's an XS application, so I have to type my xs instance and my application name in following format xsname:appname. The docu tell me only use lower

 

case letters, but when I check the active availabilty checks it looks like xsname:APPNAME. So application name is upper case.

 

Do you have any idea, how to handle this?

 

Thanks!


StackOverflowError when using Successfactors as RoleProvider

$
0
0

Hello,

 

i have a very strange problem with a java-servlet-application and "SuccessFactors" as Role Provider of the application.

Following Scenario:

- I've deployed a java-servlet-application to our HCP-Account

- I've subscribed this java application from an HCP-SF-Extension-Account (as it is described here https://help.hana.ondemand.com/help/frameset.htm?4c6203d2a0cd470eb72b48c100b26cd2.html)

- I've created the "sap_hcmcloud_core_odata"-Destination (as it is described in the "SAP HANA Cloud Platform, Extension Package for SuccessFactors (Implementation Guide)".pdf)

- I've set the "Role Provider" of the application to "SuccessFactors" (as it is described here https://help.hana.ondemand.com/help/frameset.htm?22bda078a05b4ec99c89df5fba8fc5ca.html)

 

Now when i start the application and access it over the Url from the Subscribed HCP-Account, i get following Response "HTTP Status 500 -". (after the SF-Login)

When i open the "Default Trace" of the application, there is no information about a error.

When i open the "Other Log" of the applicatoin, there is a entry like "[140442884957952]   09:49:11 ***ERROR (:0): StackOverflowError"

(Everytime i fire a Request to the application a new entry with a StackoverflowError appears).

 

So when i set the "Role Provider" to "HANA Cloud Platform (default)" i don't get the StackOverflowError and the application works.

But we want to use Successfactors as Role-Provider for our application.

 

In our applicaton there is no piece of code which handles the SF-Roles or something else that could produce a StackOverflowError.

The error also appears when i request a static file, stored in the WebContent-Folder of the java-application. (like index.html).

 

The java-application is secured in the web.xml through some <security-constraint>-Tags.

The roles declared in the <security-constraint>-Tags does all exists in the SF-System and the accessing user is assigned to the roles.

 

Does anybody have the same error or know a solution for this?

 

Thanks for help,

 

Christoph

Cannot use HCP product

$
0
0

Hi all,

our company has purchased "HANA Cloud Database Services" but I cannot access it no matter what I try. All we got from SAP was an email with an SAP ID User and the url https://account.hana.ondemand.com/cockpit , no password or anything. Using trial and error I've figured out that I can use the email of my boss to login to the cloud platform cockpit, but this is as far as I can get. I see one database system and one database. Clicking on Hana cockpit gets me a login page. When I use the SAP ID User, I get the message "

You are not authorized to open the SAP HANA Cockpit.

You're also not authorized to assign yourself the necessary role."

and that's the end. Clicking on Database user gets me "


You have already changed your initial password.

S00...

A database user is needed to work with the SAP HANA tools


and nothing else. Clicking on Web IDE gets me the web IDE which I don't want to use for development. When I try to add the HCP Hana to my Studio, I'm not able to give it correct credentials, or at least it does not accept those that the web IDE accepts. I haven't found any docs about what to fill in there, what should be in the "Landscape host" field? It suggests hanatrial.ondemand.com, I've tried also hana.ondemand.com (for Europe), which does not work, either, it only tells me that after 5 attempts I will be locked out.

 

Clicking on New Database opens a popup where I can only click Cancel, cannot fill in anything.

 

How am I supposed to use this product? I've been working with Hana on AWS since a couple of years but this HCP stuff seems quite demanding.

 

 

-- Micha

Connection Talend ETL to HANA Cloud trail fails

$
0
0

Hi all,

anybody tried to connect Talend Open Studio to HANA Cloud trial?

 

I opened tunnel using neo-javaee6-wp-sdk-2.80.14.4

As driver in Talend I used ngdbc.jar (Version of 15.10.2013)

(Using this setup ODBC connection to HANA cloud trial works fine.)

 

However when using this setup to maintain a database connection in Talend I get the error

"Verbindung fehlgeschlagen. Sie müssen die Datenbankeinstellungen ändern.

  java.lang.RuntimeException: com.sap.db.jdbc.exceptions.jdbc40.SQLInvalidAuthorizationSpecException: [10]: authentication failed"

 

Any idea?

 

Thanks

Klaus

How to open Web-based Development Workbench i HCP?

$
0
0

Hi Experts

 

Earlier in the HCP cockpit I had a tab called HANA Instances. From there I could open the "SAP HANA Web-based Development Workbench" to create calculation views and so on. Now the HANA Instances tab I gone but I can see my instances under a tab called "Databases & Schemas", but I am unable to find where I can start the "SAP HANA Web-based Development Workbench". Anyone who knows where i can start it?

 

Kind regards

 

Erik

Content management in Hana cloud platform

$
0
0

Hi All,

 

I have a requirement wherein i  have an application running on HCP mobile services which is connected to the backend ECC system via Hana cloud connector. We have the end to end connectivity now.

The app would want to pull the equipment data from ECC. We are able to do this now . IN addition, in the App we want to display the Equipment data and also images of the equipment.

e.g Say i pull the equipment Washing machine.  I would like to pull the image and manual of that particular washing machine into the front end.

 

Where would i store these images/pdfs/manual and where will we have a mapping between a particular equipment and its image/manual be maintained.

 

Any help is highly appreciated!!

 

regards

AKshay

Viewing all 1983 articles
Browse latest View live