Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all 3131 articles
Browse latest View live

HCP Java Servlet Filter / Principal was not set on initial request

$
0
0

Dear community,

 

I have a Java Application with Java Web Runtime running and need to authenticate the user via FORM authentication.

 

Declarative authentication is currently not possible for my usecase.

So I use the following code inside a filter to do programmatical authentication:

 

@Override
public void doFilter(ServletRequest req, ServletResponse res, FilterChain filterChain)        throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) req;
HttpServletResponse response = (HttpServletResponse) res;
if(request.getRemoteUser() == null) {     try {          LoginContext loginContext = LoginContextFactory.createLoginContext("FORM");          loginContext.login();      } catch (LoginException e) {         unauthorized(response, "FORM Login failed");         return;       }
}
[...]

The filter is the first and only one in the chain.

However I get the following exception after successful authentication and the application crashes:

 

2016 07 05 11:52:39#+00#ERROR#org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/xxxxxxx].[corp.sap.wdf.xxxxxxx.core.servlet.UIProxyServlet]##D066389#http-bio-8041-exec-5#na#abb86455f#osg#web#abb86455f#Servlet.service() for servlet [corp.sap.wdf.xxxxxxx.core.servlet.UIProxyServlet] in context with path [/xxxxxxx] threw exception

com.sap.core.connectivity.destinations.configuration.DestinationRuntimeException: Principal 'xxxxxxx(authentication method: SAML2)

[THE SAML CONTENT]

MNI terminated=false

' was not set on initial request, but was received on a subsequent request which is illegal.

Principal was not sent on initial request? What does that mean?

I thought that it is always the case that we get the principal after redirect from SAP cloud id service?

Can someone please tell me what is going wrong here?

 

Best Regards

Martin Löper


Cannot open tunnel with id account:///xxxxxxxtrial

$
0
0

Hi,
     I am trying to access odata created in onpremise sap abap system to webide usind cloud connector. I have all the connected status in cloud connector and in access control for SAP ABAP system. Also i have created a destination in HCP, Which also shows a green success message.

But when i try to get odata services from WEBIDE in service catalog..
It is showing error " Catalog service unavailable".

Also in "https://webide-xxxxxxxtrial.dispatcher.hanatrial.ondemand.com/destinations/Backend/sap/opu/odata/IWFND/CATALOGSERVICE/ServiceCollection" am getting an error "Cannot open tunnel with id account:///xxxxxxxtrial".

Why Iam getting this error? Can you suggest me a solution?


PFA.



Thanks,

Darsana

cannot start iotmms java app

$
0
0

Hi

 

After redeploying the iotmms java app to the newest version (using "Deploy Message Management Service" of the "Internet of Things Management Cockpit") I cannot start the iotmms java app any more. When I try to (stop and) start the service, after the waiting whell spinns a long time it fails to start. Looking at the logs didn't help me.

 

The problem might have to do with the fact that there seems to be a broken binding definition which I cannot delete. When I look in the "Bindings" section of the iotmms java app there is an error message stating the following: "Internal Server Error (500) - Unexpected exception in getBindingList() called with application key '{account:'s0001207844trial', application:'iotmms', component:'web'}'". However, when i delete the iotmms app with all bindings (checking the respective flag) and then redeploy and restart the app the same error appears. Has Anybody an idea what I could do?

 

Thanks for your suggestions,

Patrick

Deploy HTML5 Applications with neo client

$
0
0

Hello together,

 

Is there an way to deploy HTML5 Applications using the neo client (from the SDK) to HCP? Or is there some Tool, to deploy it using shell commands?

 

I am aware of "neo deploy", but this only deploys Java Applications.

 

We want to integrate the HCP in our CI git Process. I hope, somebody known a Method how to do this.

 

Thank you

Daniel

Why isn't GIT repository provided for Java projects on SAP HCP?

$
0
0

We are able to create GIT repository on SAP HCP for SAPUI5 applications but we are not able to do the same for Java based applications. However for now, we have a small hack which we are employing which is as follows.

Create an HTML5 applications and once created, we have a GIT repository setup by default which we are using to store code related to the java app.

HANA Cloud MDC Database login Error

$
0
0

Hi All,

 

I have configured MDC in HANA cloud.

Database id.PNG

 

And the database has started successfully.

Database configured.PNG

When adding the cloud system in Eclipse i have followed below procedure

 

1) Give the account name, user, password

2) On next window(SAP HANA Schemas and Databases) i have selected Databases option, and given the database name which was given as Databaase ID in first screenshot above

 

It is shown in the drop down list of Databases option i have selected it

 

Eclipse.PNG

But i have tried Database user with Database ID ,<SuserID>trial  and password as password given as SYSTEM User Password on the first screenshot. But nothing works it is throwing error.

Can anyone please help me in solving this issue. Please let me know what is the database user/password i should give.

 

Thanks

Rithika

Mail Destinations in multi-tenant application

$
0
0

Hi All.

 

wondering if anyone has successfully got mail destinations to read from a tenant in a multi-tenant application.

 

In my tests - the

 

  InitialContext ctx = new InitialContext();

  Session mailSession = (Session) ctx.lookup("java:comp/env/mail/" + mailAccount);

 

code always picks up the destination from the provider account and not the tenant account (I'm guessing because the context is the provider account content.)

 

Is there a simple way (which I'm missing) to get the mail session from the tenant - it doesn't seem like there is a nice method (as for the connectivity config utils to pick up the tenant config.

 

Or is there?

 

Cheers,

 

Chris

Multi-tenant app how to switch tenant connecting to document repository.

$
0
0

Hi All,

     I have one case ,two users  A (belong to tenant TA) and B (belong to tenant TB) ,they share one business entity contains some documents ,base on the docs A and B can collaborate across tenants,but only A is the owner.Additionally in document repository the documents are always stored in the space of tenant TA. When B signed in and the web page will try to retrieve the docs by calling CMIS API directly via CMISProxyServlet, B might always retrieve nothing because the tenant ID of TB will be automatically propagated to the document repository server. This step seems like what CMIS workbench does and the only difference is the authentication.App structure see the following: 1.From UI side we use UI5 Application,SAML2 authentication and HttpDestination (AppToAppSSO) pointed to the cmis repository which is exposed by cmisProxyServlet. 2.The Java backend is generic and we have a CMISProxyServlet extended from AbstractCmisProxyServlet.

 

We know there are many methods in EcmService can help us to switch tenant ,so EcmService can work fine in this case but it also means we have to implement the RestFul API in java backend for the UI side which might cause much efforts.

 

So my question is how to switch tenant when we are calling CMIS API directly by using CMISProxyServlet?

 

Any one can help me?


SAP RFC via OData protocol using HANA Cloud Platform / HANA Cloud Integration

$
0
0

Hi folks,

I am trying to find some information in order to know if it is possible this escenario:

 

1. Custom taylor-made UI5 app developed on SAP WEB IDE

2. Reuse existing RFCs functions from SAP customer on-premise systems.

 

I would to know if it is possible to expose RFC via OData protocol without Gateway (and without custom development like JSON Adapter for ABAP Function Modules). Is it possible through HANA Cloud Integration (eg. OData Provisioning) or our customer will require a SAP Gateway on-premise?

 

Thanks in advance

Kind regards

Subscribe fiori apps in HCP

$
0
0

Hi experts,

 

I have a simple question. My client is willing to implement HCP and I was looking into fiori app library at

 

https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/

 

 

and I have a question. Is it possible to import / subscribe any fiori app available in this portfolio into HCP? Or we can only use the apps available in this library's section fiori apps on HCP? If it is possible to import any app, how can we do it?


Thanks!

AS

Difference between "Document Repositories" and "Document Center"?

$
0
0

Hello,

 

we'd like to upload images taken outside together with location and sensor data, and show the image alongside the (aggregated) sensor data. For the sensor data, we are using the iotmms service.

 

Looking for a place to put the images, I came across two things that sound like they would allow us to do that, but I do not find enough information about the "Document Repositories" (near bottom of left navigation in SAP HANA Cloud Platform Cockpit) to determine what it does in comparison to the "Document Service" (formerly "SAP Mobile Documents").

 

Can someone point me to information on, or explain the features of, the Document Repositories?

 

Thanks in advance,

nobi

FORM (SAML) Authentication not working in Mobile Services

$
0
0

Hello,

 

I have deployed a Hybrid application in Mobile Services. I want so secure this application against my custom IDP (SAP Cloud Identity Service) with SAML authentication. So I choose "FORM" in the security configuration of my application, but it is not working. I always get the message "wrong credentials". With BASIC authentication and my SCN user it is working fine. AS SCIM Type I selected "Default Identity provider".

What is going wrong here?

 

Best regards,

Chris

Cannot open tunnel with id account:///xxxxxxxtrial

$
0
0

Hi,
     I am trying to access odata created in onpremise sap abap system to webide usind cloud connector. I have all the connected status in cloud connector and in access control for SAP ABAP system. Also i have created a destination in HCP, Which also shows a green success message.

But when i try to get odata services from WEBIDE in service catalog..
It is showing error " Catalog service unavailable".

Also in "https://webide-xxxxxxxtrial.dispatcher.hanatrial.ondemand.com/destinations/Backend/sap/opu/odata/IWFND/CATALOGSERVICE/ServiceCollection" am getting an error "Cannot open tunnel with id account:///xxxxxxxtrial".

Why Iam getting this error? Can you suggest me a solution?


PFA.



Thanks,

Darsana

HTML5 app and SAP HANA Cloud Connector: Cannot open tunnel with id

$
0
0

Hello HANA Cloud Experts,

 

following Rui Nogueira's Blog Lightweight HTML5 apps and Git on SAP HANA Cloud Platform I wanted to try bringing my bol2rest project to the HANA Cloud but connect to a SAP CRM on-premise backend. The SAP HANA Cloud Connector is quickly installed and I was able to build a Java app that connects to the public ping service of the ABAP stack. This proves that the connection from the HANA Cloud to the on-premise backend can be established successfully.

 

Now I've  created the destinations in the Cockpit:

 

screen-capture-25.png

 

I've used this destinations in the neo-app.json file:

 

{    "routes": [        {                "path": "/sap/bol2rest",                "target": {                                "type": "destination",                                "name": "vcrbol2rest"                },                "description": "bol2rest Service on VCR via SAP Cloud Connector"        },        {                "path": "/vcrpublicping",                "target": {                                "type": "destination",                                "name": "vcrpublicping"                },                "description": "VCR public ping"        }    ]
}

I've pushed this file and the index.html via git, created a version and activated this version in the console. There I see that the required destinations are available:

 

screen-capture-26.png

 

But unfortunately when calling the URL:

 

https://bol2rest-s0001142741trial.dispatcher.hanatrial.ondemand.com/vcrpublicping

 

the following error is returned:

 

Cannot open tunnel with id account:///s0001142741trial

 

Hope someone can help on this issue.

 

Best regards

Gregor

Why isn't GIT repository provided for Java projects on SAP HCP?

$
0
0

We are able to create GIT repository on SAP HCP for SAPUI5 applications but we are not able to do the same for Java based applications. However for now, we have a small hack which we are employing which is as follows.

Create an HTML5 applications and once created, we have a GIT repository setup by default which we are using to store code related to the java app.


some authorization issues while activating a calculation view In hana DB

$
0
0

Can you please help on this. We are struggling with some authorization issues while activating a calculation view.

TextMiningSession_initialize: callTextMining failed: CallTMXX Invalid document restriction

$
0
0

Hello Experts,

 

         I am using SAP HANA SPS 09 and want to do text mining using XS API. I have created a test01.xsjs file in which I have used $.db.textmining.Session. When I use the follow url  https://XXXX:4300/textMining/services/test01.xsjs, the error message: TextMiningSession_initialize: callTextMining failed: CallTM68 Invalid document restriction.

 

        Why?

 

test01.xsjs:


var output = "<body>";

output += "<h2>Text Mining function test</h2>";

 

function displayResults(results) {

  var propName = null;

  var propNames = [];

  var result = null;

  var row = 0;

  var col = 0;

  if (results.length === 0) {

  output += "<p>(empty result table)</p>";

  return;

  }

  output += "<table border='1'>";

  output += "<tr>";

  for (propName in results[0]) {

  if (results[0].hasOwnProperty(propName)) {

  propNames[propNames.length] = propName;

  output += "<th>" + propName + "</th>";

  }

  }

  output += "</tr>";

  for (row = 0; row < results.length; ++row) {

  result = results[row];

  output += "<tr>";

  for (col = 0; col < propNames.length; ++col) {

  output += "<td>" + result[propNames[col]].slice(0, 50) + "</td>";

  }

  output += "</tr>";

  }

  output += "</table>";

}

 

 

try {

  output += "<p>create session</p>";

  var TM = new $.db.textmining.Session({

  referenceTable : "TEXT.TA_LING_TXT",

  referenceColumn : "CONTENT",

  });

 

  output += "<p>initialize</p>";

  var init = TM.initialize({});

 

/*

  output += "<p>getRelatedTerms</p>";

  var termResults = TM.getRelatedTerms({

  top : 1,

  inputTermText : "animal",

  });

displayResults(termResults);

*/

 

  output += "<p>Done -- no errors detected.</p>";

} catch (err) {

  output += "<p>" + err + "</p>";

}

 

output += "</body>";

$.response.contentType = "text/html";

$.response.setBody(output);

 

BRs,

Candy Zhang

Schedule Jobs in HANA Cloud Plattform / React to Events in Backend

$
0
0

Hello,

 

is it possible to schedule jobs in HANA Cloud Plattform? For example java applications which checks for changes in ERP Backend system every 15 minutes?

Or is it possible to call HCP applications via the Cloud Connector in ABAP?

 

Best Regards,

Chris

How SAP HCP communicate to SAP HANA Administration console - Eclipse

$
0
0

Hi Experts,

I have two little doubts--

 

1> How SAP HCP communicate to SAP HANA Administration console - Eclipse

I have created schema in SAP HCP and binding with iotmms services . also enabled iot services,i can see same schema  in SAP HANA Administration console - Eclipse and respective IoT tables .

 

my question is how these two system SAP HCP and SAP HANA Administration console - Eclipse communicate each other.

I understand there is no RFC kind of connection exist here.. i think SDK play a role to communicate.

 

2> i want to create views on IoT tables which is available in my Schema - system under "SAP HANA Modeler- Eclipse " and populate these views on SAP Business object Design studio.

 

What would be right approach--

 

configure SAP HANA Modeler- Eclipse to SAP Business object Design studio.

 

 

or

 

configure SAP HCP to SAP Business object Design studio.

 

Completely clueless, Please suggest, need to clear my concept.

 

Thanks,

Ashutosh

 


 


When creating Attrb. view - Failed to create the parts controls

$
0
0

Hi,

 

Does anybody knows how to resolve this issue. cannot add table, same with Analytical & calculation view.

 

thanks

Viewing all 3131 articles
Browse latest View live


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