Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all 3285 articles
Browse latest View live

SAP Development Tools for Eclipse Installation: FAQ and Known Issues

$
0
0

It seems that you had a problem while trying to get and setup the tools.

We are sorry for that but maybe there is already a solution for your problem.

 

 

Where to start

 

 

FAQ

FAQ #2: When I try to install SAP Development Tools in Eclipse, I get an error message that Eclipse can not connect with the update site https://tools.hana.ondemand.com/kepler or https://tools.hana.ondemand.com/luna.

 

Typical error messages are:

 

Probably, you did not configure the proxy correctly in Window > Preferences > General > Network Connections so that Eclipse can not reach https://tools.hana.ondemand.com/kepler. The correct proxy configuration depends on your IT infrastructure. The following 3 typical configurations have been reported as working in the support forum:

 

  1. You can connect directly to the internet, i.e. don't need any proxy.
    Please configure 'Direct' as Active Provider.
  2. You connect to the internet via http proxy.
    Please configure 'Manual' as Active Provider and configure the proxy entries for the protocols HTTP and HTTPS. Do not configure anything for SOCKS.
  3. You connect to the internet via SOCKS proxy.
    Please configure 'Manual' as Active Provider and configure the proxy entry for the protocol SOCKS.

To find the right setup, you could check the proxy settings in your browser.

 

After fixing the proxy configuration, please go to Windows > Preferences > Install/Update > Available Software Sites, select the software site "SAP Development Tools for Eclipse Kepler" and press 'Reload' to verify that the connection works now. Repeat the check for software site 'Kepler' (http://download.eclipse.org/releases/kepler).

 

Additional hints:

 

 

If this does not solve your problems then please request support in the SAP HANA Cloud Platform Community .

 

 

FAQ #4: Installation fails with message 'Cannot complete the install because one or more required items could not be found'.

Please ensure that the 'Contact all update sites during install to find required software' check box is selected in the installation wizard. See also http://scn.sap.com/thread/3199711.

 

Please also double check that the software site "SAP Development Tools for Eclipse" matches your Eclipse installation version (Kepler, Luna):

 

 

FAQ #6: Installation of tools starts but then suddenly hangs

Users have reported freezes during installations caused by anti-virus programs, e.g. Eclipse freeze when installing SAP HANA Tools

 

FAQ #7: Eclipse hangs and crashes or even doesn't start at all

Probably you are running Eclipse with SAP JVM and forgot to add SAP JVM specific PermGen size configuration in eclipse.ini (-XX:MaxPermSize=256m, under vmargs), see https://help.hana.ondemand.com/help/frameset.htm?76137f42711e1014839a8273b0e91070.html for details.

 

In case you have SAP JVM and Oracle JVM installed on your machine, Eclipse picks up one JVM and it is not clear which unless you configure the JVM explicitly in eclipse.ini (note: 2 lines in eclipse.ini):

-vm

<path to JVM>

 

See also Eclipse runtime options and Eclipse Launcher chapters in Eclipse Help.

 

FAQ #8: Which Java version is recommended for running Eclipse?

All SAP Development Tools support at least the following Java versions:

  • Eclipse Kepler (4.3): Java 7
  • Eclipse Luna (4.4): Java 7

 

Some SAP Development Tools may support additional Java versions, see the tool specific documentation on https://tools.hana.ondemand.com/. General information about the recommended Java versions for Eclipse is available in the readme/readme_eclipse.html file of your Eclipse installation (online version: http://www.eclipse.org/eclipse/development/readme_eclipse_4.4.html).

 

See FAQ #7 how to specify explicitly the Java version used by Eclipse.

 

FAQ #9: Installation fails with certificate error

The installation fails with a similar error message as in FAQ #2 (Unable to read repository ...). However, the detail message points to a certificate error like "SunCertPathBuilderException: unable to find a valid certification path".

 

This error message means that the JVM running Eclipse could not validate the certificate of https://tools.hana.ondemand.com/.

 

Typical reasons are:

  • Outdated Java VM. Please install the latest Java VM patch level. See FAQ #8 for the recommended Java version.
  • Although an up-to-date Java version is installed, Eclipse runs with an older version (which is also available on your PC). Check the Java version in "Help > About Eclipse > Installation Details > Configuration", search for java.runtime.version to see which Java version is actually used. Property eclipse.vm points to the Java binary that is used to run Eclipse. See FAQ #7 how to specify explicitly the Java version used by Eclipse.
  • Users reported issues with corporate proxies that required a special configuration. See e.g. here. Please check that you can't access https://tools.hana.ondemand.com/ without certificate issue in a browser using the same proxy that you have configured in Eclipse.

 

Known Issues

There are currently no known issues.


connecting to remote service

$
0
0

Hello,

 

I deployed one Java Application in my trial account. Here I implemented the following Servlet:

 

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
URL url = new URL("http://www.google.de");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.connect();

All runs fine. I'm getting HTTPS status 200 and as response the googe site code. .... as expected.

 

Now I try to call one webService, running on my local PC via myFritz Service... (url modified)

 

protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
URL url = new URL("http://pc.w1abcdefgh29nyk9.myfritz.net:9201/test?function=start");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.connect();

... but getting:

 

h1. HTTP Status 500 - Server returned HTTP response code: 403 for URL: http://pc.w1abcdefgh29nyk9.myfritz.net:9201/test?function=start

 

... only via HCP. Calling this URL via browser, all works as expected.

 

 

Why is it possible to reach google but not my url? What's wrong? As I understood HCP runs in the open internet and for connecting other services in the internet I do not need any Connectivity Service, right?

error installing SAP HANA Cloud Platform Tools (collectSupportInformation.sh does not exist)

$
0
0

I'm trying to install the SAP HANA Cloud Platform Tools on eclipse in Linux Ubunbu 14.04 like the step of the the opensap's training "Introduction to SAP HANA Cloud Platform" Unit 3 first Week.

 

but the system shows the message below:

 

An error occurred while installing the items

session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Install, operand=null --> [R]com.sap.ide.support.feature_root.gtk.linux.x86_64 1.13.2, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.ChmodAction).

The action chmod failed - file /opt/eclipse/collectSupportInformation.sh does not exist

Application is not updated properly on Cloud Platform

$
0
0

Hello,

 

I'm developing a SAPUI5 application, so I update it several times a day to see if the application works properly with new features and code updates.

Resently, I started to have problems with application updates.

Usually, I update my app as it is described here: https://help.hana.ondemand.com/help/frameset.htm?60ab35d9edde43a1b38cf48174a3dca2.html, and it worked fine.

Now, after I see that Eclipse says that the application server is "Started and Synchronized", the code of the client side of my app stays as it was before the changes were made (I can see it in the "Network" tab of browser's developer tools).

I tried to restart the app from the cockpit, but it didn't help.

 

How do I solve this issue?

 

Thank you,

Yuri.

HANA Cloud Trial downtime announcements

$
0
0

In this discussion we are going to announce NetWeaver Cloud Trial landscape infrastructure downtimes.

 

Regards,

NetWeaver Cloud operations team

How can I get my account email address synced to the Git email address?

$
0
0

Hello SAP HCP Trial Team,

 

today I've tried to deploy an app developed in the SAP Web IDE to HCP. At my first try I've to deploy I faced a login error. To get around this error I've changed the maintained Git Email Address from g.wolf@xyz.de to gregor.wolf@xyz.com. After that change the login was successful. Unfortunately now the commit to Git failed with this error:

 

Push request failed
Reason: Invalid committer
Git result: REJECTED_OTHER_REASON
Details: 
Processing changes: refs: 1
Processing changes: refs: 1, done 
ERROR: In commit fa8b3fee7a456ae684cbbe02ef18a225fe6bfd42
ERROR: committer email address gregor.wolf@xyz.com
ERROR: does not match your user account.
ERROR:
ERROR: The following address is currently registered for you:
ERROR: g.wolf@xyz.de

I've tried to change back the Git Email Address to g.wolf@xyz.de and saved the settings. Unfortunately this setting seems not to have an effect now. Also a restart of Web IDE does not help. What can I do to get the Email of my S-User Account S0001142741 set to gregor.wolf at gmail dot com?

 

Best regards

Gregor

Submitted assignment quiz accidentaly

$
0
0

Hi all,

 

Can I do anything if I submitted quiz in Week1 SAP Hana Cloud Platform accidentally. This quiz has been posted without any answer, but I finished week1 succesfully. (technically). I think there is no other chance to repeat the test.

Anyone can confirm me?

Or can I repost the quiz somehow?

 

Cheers,

Laszlo

Unable to delete java applications from cockpit with trial account

$
0
0


Hi All,

 

I keep getting the following error message when I try to delete one java application from the cockpit with my trial account.

"Could not delete application xxxxx: Conflict (409)"

 

I also tried to undeploy the application from the command line, got another error message "ERROR: Application is already locked for operation: delete application".

 

Could someone please help me with this issue?

 

Thanks,

Yuanzhen 


Is there any standard login screen for mobile app

$
0
0

Dear all,

 

I am researching to build a mobile app and my app will connect to sap hana cloud platform mobile service and get data from back-end via that service. I can build my own login screen then create request from login information but I my boss want to use a standard login. So is there any standard login screen provided by mobile platform?

Link to Course guide "Introduction to SAP HANA Cloud platform' not working

Can 'SAP HANA Studio' be used for cloud development ?

$
0
0

I have SAP HANA Studio (Version: 1.0.68, Build id: 201310151624 384084) installed and now I want to use it for SAP cloud platform.

 

So as per installation instructions on SAP Cloud Tools site, I tried to install the new software (Help -> install new software) from URL: SAP Development Tools for Eclipse - Juno Software Repository

 

But I get following error when I try to install it from SAP HANA Studio:

 

Missing requirement: SAP HANA Cloud Platform server adapter commons 1.13.1 (com.sap.core.tools.eclipse.server.common 1.13.1) requires 'bundle org.eclipse.jst.server.generic.core 0.0.0' but it could not be found

 

Any help on fix will be much appreciated?

RaspberryPi on SAP HCP - IoT blog series part 5: Add additional virtual sensors to your dashboard

$
0
0

Table of Contents

 

In the fourth blog post of this blog post series around Raspberry Pi and the SAP HANA Cloud Platform we've build a dashboard to show us the incoming sensor data in a nice SAPUI5 dashboard.

 

But what happens if you want to demo your app somewhere and you didn't have the Raspberry Pi with you? Or, what if you'd like to have another source of sensors to send data to your account like a mobile device or a smart phone?

 

That's what we'll be looking into in this blog by using the API we've created in the second blog post and simulate the sensors with some randomly generated temperature values.

 

Screen+Shot+2014-11-12+at+14.20.26.png

 

Modify the index.html file

To make this work smoothly we'll add a new tile to our initial app in the index.html file which will create a QR-code that others can scan and which actually sends the user to the new simulator.html app that we'll add in the next step. But first thing first. Let's first modify our index.html file with the content that I've attached to this blog post below.

 

TaskScreenshot

1. Start Eclipse and open your project you've worked on in part 4 of this blog post series

Screen Shot 2015-02-11 at 16.43.17.png
2. Now open the index.html file in your EclipseScreen Shot 2015-02-11 at 16.44.31.png
3. Delete the content inside the file and substitute it with the content from the index.html file I've attached to this blog post. Be aware that you need to unzip the index.html file first.Screen Shot 2015-02-11 at 16.46.02.png
4. Save the updated index.html file

 

 

Add the new simulator app and push the changes

 

TaskScreenshot
1. Create a file called simulator.html. To do that right-click on the project fishdashboard and click on New and on File. After that provide the file name simulator.html and click on Finish.

Screen Shot 2015-02-11 at 16.47.27.png

Screen Shot 2015-02-11 at 16.48.06.png

2. Now you can copy and paste the code from the simulator.html file I've attached to this blog post to the newly created simulator.html file in your Eclipse project. Be aware that you need to unzip the simulator.html file first.Screen Shot 2015-02-11 at 16.49.52.png
3. Save the simulator.html file
4. Right-click on your Eclipse project fishdashboard and select Team and Commit.Screen Shot 2015-02-11 at 16.50.38.png

5. Provide a short commit message, select all files and click on Commit and Push.


Don't forget to tick on the status column of the newly added simulator.html file!! Otherwise the file will not be pushed!! Both files should have the blue check box activated.

Screen Shot 2015-02-11 at 16.52.31.png
6. As a result you should get a message as response with a done message at the end. In case you get something different, something went wrong. Press OK to finish the commit and push.Screen Shot 2015-02-11 at 16.55.52.png

 

 

Create a new version

What you need to do next is to go back to your HTML5 app in the cockpit. At the very right of your commit you'll find an icon in the column Create Version. Click on that icon, provide a name like 1.1 and click on Add.

Screen Shot 2015-02-11 at 16.58.27.png

 

 

Start the new dashboard

The last thing you need to do now is to switch to the tab Version Management and click on the symbol in the Activate column for the version you've created in the previous step. A popup will show-up and after confirming with clicking on Yes that you want to start the application you can access the app by clicking on the link under Application URL.

 

Screen Shot 2015-02-11 at 16.59.45.png

 

Use the simulator

The last thing we need to do now is to check our new simulator. You can either simply add simulator.html to the URL of the app.

Screen Shot 2015-02-11 at 17.00.51.png

 

Or - in case you have a QR code scanner on your mobile device - simply scan the QR code from the page that opens up, when you tap on the tile named Simulate sensors now.

Screen Shot 2015-02-11 at 17.01.48.png

 

Screen Shot 2015-02-11 at 17.02.28.png

 

When the simulator opens up you get similar tiles like for your regular app.

But when you tap now on one of the tiles, you'll be able to created a randomly generated temperature value that is sent to your Java app from part 2 of this blog post series and that app persists the values on your HANA instance.

 

That's it.

 

In the next blog post we'll get back again to the Raspberry Pi and do some modifications there to make it more interesting for us :-)

See you then!

 

Best,

Rui

RaspberryPi on SAP HANA Cloud Platform

$
0
0

When thinking about the SAP HANA Cloud Platform there are some things you'd not immediately connect to it. One is certainly a Raspberry Pi.

 

The Raspberry Pi is a low-cost credit-card-size computer with an ARM-processor that has a huge community and since today more than . It costs around 35 Euro and runs on special Linux versions like e.g. Raspian (adapted Debian Linux). Produced for the first time in 2012 by the end of 2013 already more than 2 million devices were sold!

 

Along with one HDMI, one Ethernet, and two USB ports the RaspberryPi has also digital input pins. Meanwhile there is even a new revision B+ available providing 4 USB ports and some more improvements. Meaning you can connect digital sensors to it or, via an analog-to-digital convert, or analog sensors. With the low price and these connectivity features it's the ideal candidate to run internet-of-things scenarios on it.

 

That's the reason why I thought: why not letting the Raspberry Pi send sensor data to an account on the SAP HANA Cloud Platform? And that's why I've setup this blog post series around this topic.

 

In the next weeks and months I'll keep on adding additional blog posts to this series so that you can see you to use your Raspberry Pi for internet-of-things scenarios.

And maybe you get inspired and think of other scenarios where you need sensor data in your SAP HANA Cloud Platform account to bring the internet-of-things into the products and services of your company.

 

Currently these are the blog posts I'm planning to release in a monthly or bi-weekly cycle:

 

 

Best,

Rui

Issue when creating CDS artifacts.

$
0
0

Hello Experts


I'm still following the Open SAP tutorial for development in Hana, i was trying to create a CDS artifact but i'm getting the following error:


Failed to generate CDS artifact "p12345trial.myhanaxs.ivyrepxs::partner" to schema "XYZ" as index server config switch "view_activation_for_hcp" is set. In this mode only generation to schema "_SYS_BIC" is allowed.


I thought that the DEV Schema was supposed to be there for using it during tests, is there anything else that is missing for been able to work with it?


This is the code that i'm using:


namespace p1101189trial.xstrial1.XSProject3.data;

 

  @Schema: 'DEV_1VKKPRJI2LZT43BFTKBIJ510A'

 

 

context user {

  type SString : String(40);

  type LString : String(255);

 

  @Catalog.tableType: #COLUMN

    Entity Details{

      key PERS_NO: String(10);

      FIRSTNAME: SString;

      LASTNAME: SString;

      E_MAIL: LString;

    };

 

};



Thanks

Francisco

SAP HANA Cloud Platform local runtime is does not exist in SAP Folder

$
0
0

Hello,

 

I am trying to Setup the IDE. Week1, Unit3 of "Introduction to SAP HANA Cloud Platform". When setting up the server, The SAP HANA Cloud Platform local runtime is missing from the SAP folder.

Can any one help to let me know what step I have missed in the setup?

 

Thanks,

Maryam


Release Notes for SAP HANA Cloud Platform

$
0
0

Release Notes for SAP HANA Cloud Platform - 12 February 2015
FunctionType of ChangeDescription
Identity ServiceNew

You can now set SuccessFactors as the role provider for extension applications. This allows you to manage the roles of such applications only in the SuccessFactors system. For more information, see Changing the Default Role Provider.

CockpitEnhancement

Only the main links (Settings, Help, and Feedback) remain in the cockpit header. All the other links were moved to the new footer.

SAPUI5Enhancement

SAPUI5 distribution 1.26.5 for Java and HTML5 applications (including runtime 1.26.4 & documentation) has been released.

Connectivity ServiceEnhancement
  • Тhe OAuth tokens of HTTP destinations with authentication type OAuth2SAMLBearerAssertion are now auto-renovated. When a token is about to expire, a new token is created shortly before the expiration of the old one.
  • To allow parallel usage of HTTP client instances, HTTP clients created by HTTP destinations will now use ThreadSafeClientConnManager.
SecurityBugfix

By default, the FORM and SAML2 login methods used to fall back to user name and password authentication (HTTP basic authentication) in case of failure of the trusted SAML identity provider. This default fallback is now removed. To preserve the behavior, in Authentication Configuration create for your application a custom login method, in which you select the User name and password option. The change requires application restart. For more information, see Configuring Authentication for Your Application.

 

 

Other Release Notes:

SAP Web IDE (Docu)

 


Release Notes for SAP HANA Cloud Platform - 29 January 2015
FunctionType of ChangeDescription
CockpitNew

Breadcrumbs show the full object hierarchy in the pattern:

Data Center> Account> application> process

Connectivity ServiceEnhancement

The interface com.sap.core.connectivity.api.configuration.ConnectivityConfiguration is extended with a new clearCache() method. It allows each application to clear its local cache to ensure that the next configuration will be taken from a central storage. The method also clears the configuration cache used by HTTP destinations. For more information, seeConnectivity Javadoc.

SAPUI5Enhancement

SAPUI5 distribution 1.26.3 for Java and HTML5 applications (including runtime 1.26.3 & documentation) has been released.

SAP HANAEnhancement

SAP HANA revision 91 (SPS 09) is now available.

  • In a production environment or planned Go-live in less than 6 weeks,we recommend that you stay on the current SAP HANA SPS until the next SAP HANA Datacenter Service Point is reached.
  • In a non-production environment or planned initial system setup, you can update to the new SPS 09 via request to SAP HANA Cloud Platform operators.
HTML5 ApplicationsEnhancement

Virtual roles are now available for HTML5 applications.

  • AccountAdministrator– account members with Administrator role.
  • AccountDeveloper– account members with Developer or Administrator role.
  • Everyone– all authenticated users of the configured identity provider.

 

You can map virtual roles to HTML5 application permissions. AccountAdministrator and AccountDeveloper require SAP IDP to be configured as identity provider. In case a custom IDP is configured, you can manually create these roles in the corresponding account.

 

By default, every permission required to access a protected resource of an application is granted to members of the AccountDeveloper role. As long as no other role is assigned to the permission, only account members with the Developer or Administrator role have access to the protected resource. This is also true for the default permission NonActiveApplicationPermission, which is required to access a non-active version of an HTML5 application.

 

 


Release Notes for SAP HANA Cloud Platform - 15 January 2015
FunctionType of ChangeDescription
CockpitEnhancement
  • The Subscribed Java Applications table now has columns State and Start Time, so you can see the run state and start time of your subscribed Java applications.
  • Every row in the log viewer has a View button that opens the respective log line in text-only format.
Console ClientEnhancement

The rolling-update command is now available for productive use. For more information, seerolling-update.

SAPUI5Enhancement

SAPUI5 distribution 1.24.6 for Java and HTML5 applications (including runtime 1.24.5 & documentation) has been released.

Debugging/ProfilingEnhancement

New version of SAP JVM Tools is released. For more information about the new major features, seeWhat is New in SAP JVM Tools 2.2.

Connectivity ServiceEnhancement
  • JCoDestination.ping() times out after <rfc.client_connect_timeout>  seconds. It also throws a JCoException with error group JCO_ERROR_TIMEOUT if the system does not respond in that time.
  • When using a destination with pooling, you can configure the destination to check the validity of a connection before using the connection for a function call. This way you can avoid zombie connections that may lead to error-prone situations.
  • Traffic traces are added, which allows analyzing transferred data amounts.

Connectivity Service

Bugfix
  • JCoRecord.isInitialized(name|index) no longer returns wrong "false" for nested tables or structures.
  • Performance improvement is done for client calls that do not use AbapClassException.

Platform Infrastructure

Bugfix

The Safari browser no longer blocks iFrame-embedded applications.

 

For more information about older release notes, see:

Error message when executing WITH statement in HANA on HCP

$
0
0

I tried to execute this statement:


WITH COOL AS (select 1 from dummy)

select * from COOL

 

on your factory account on HCP with SAP HANA  91 Version installed. It gives the followin error message:

13:59:57 (SQL Editor) Could not execute 'WITH COOL AS (select 1 from dummy) select * from COOL' Error:

(dberror) 585 - operation is not permitted

 

Any idea why?

 

Thanks Frank

How to get the application name?

$
0
0

Hi all,

 

how can an application running in HCP get its name using the SDK? Using the getTenantId() and the getAccountName() methods of the TenantContext class, it is possible to get the tenant id and the account name. Is it also possible to get the application name?

 

Best,

Baris

Error 503

$
0
0

Hi,

 

I am getting error 503, service unavailable when I run my first application. I use windows8 and chrome.

Application not running in SAP HANA CLOUD local runtime

$
0
0

Hi,

 

I am trying to run the hello world application through hana cloud local runtime. But am receiving the following errors while trying to start the local runtime server.

 

helloworld.jpg

 

In the details in console I could get a similar error while trying to run the neo.bat file from cmd.

console.jpg

Can any one help?

 

Any suggestions will also be great.

 

Thanks,

Meera

Viewing all 3285 articles
Browse latest View live


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