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

Cant start local SAP HANA cloud runtime

$
0
0

Hello community,

 

I did helloworld servlet, now I'm trying to run it on local SAP HANA cloud runtime in Eclipse Juno, but i can't start it. Tomcat web server starts without issues. I always get this error:

 

 

java version "1.7.0_51"


Java(TM) SE Runtime Environment (build 1.7.0_51-b13)


Java HotSpot(TM) Client VM (build 24.51-b03, mixed mode, sharing)


 


C:\Users\xxxx\Desktop\Juno Multichannel\workspace\Servers\SAP HANA Cloud Platform local runtime-config>"C:\Program Files (x86)\Java\jre7\bin\java"   "-XX:+HeapDumpOnOutOfMemoryError" "-XX:+DisableExplicitGC" "-Xms512m" "-Xmx1024m" "-XX:PermSize=256M" "-XX:MaxPermSize=256M" "-Dcom.sun.management.jmxremote.port=1717" "-Dcom.sun.management.jmxremote.authenticate=false" "-Dcom.sun.management.jmxremote.ssl=false" "-Dosgi.requiredJavaVersion=1.6" "-Dosgi.install.area=." "-DuseNaming=osgi" "-Dorg.eclipse.equinox.simpleconfigurator.exclusiveInstallation=false" "-Dcom.sap.core.process=ljs_node" "-Declipse.ignoreApp=true" "-Dosgi.noShutdown=true" "-Dosgi.framework.activeThreadType=normal" "-Dosgi.embedded.cleanupOnSave=true" "-Dosgi.usesLimit=30" "-Djava.awt.headless=true" "-Djava.rmi.server.hostname=127.0.0.1"  -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar  -console -dev "file:C:/Users/xxx/Desktop/Juno Multichannel/workspace/Servers/SAP HANA Cloud Platform local runtime-config/configuration/dev.properties"


Error occurred during initialization of VM


Could not reserve enough space for object heap

 

Error: Could not create the Java Virtual Machine.


Error: A fatal exception has occurred. Program will exit.

 

Best Regards, yevgen


Issues in installing SAP HANA cloud platform tools

$
0
0

Hello Experts,

I am new to AiE/HANA tools.

 

I am trying to install SAP HANA cloud platform tools, but adding the URL Eclipse Kepler (4.3), URL: https://tools.hana.ondemand.com/kepler in the Eclipse menu.

 

However, I get the 'This repository is currently not available' message.

 

Am I doing something wrong here?

 

Any tips appreciated.

 

Best Regards

Dev

Speed up your development with hot-update

$
0
0

Do you know that you don’t have to deploy and restart the whole application over and over again just to see your latest changes while developing on SAP HANA Cloud Platform? You can now speed up your development by applying and activating changes on the already running application.

Just use the hot-update command (beta) in the console client..

 

Strategy

 

With hot-update, you redeploy and update the binaries of an application started on one process faster than the normal deploy and restart.

Use the -- strategy parameter to choose among three approaches to hot-update:

  • replace-binaries - redeploys and updates the application binaries
  • restart-runtime - redeploys and updates the application binaries and restarts the application process
  • reprovision-runtime - cleans up the file system, reprovisions the runtime and redeploys and updates the application binaries

 

The different strategies help you to update your application depending on its behavior.

For example, to update a web resource like image, you can use the first strategy. To support applications that need to retrigger the initialization logic, use the restart-runtime strategy, while apps that want to have a clean file system can make use of the reprovision strategy.

 

Example

 

neo hot-update --host us1.hana.ondemand.com --account myacc --application myapp --source samples/deploy_war/example.war  --user mymail@example.com --strategy replace-binaries

 

 

Beta

 

The hot update is still in beta so do not use it to update productive applications. Use it only for testing purposes during development.

 

The beta state still has the following limitations:

 

  • Works only if there is a single running process of the application.
  • Removing WAR files is not supported.
    You cannot change deploy parameters and context path of the application.


Try it out!

 

It will save you a lot of time.
Give us your feedback and we will make it even better.

SAP HANA Cloud Platform - Content Overview

$
0
0

As the number of assets keeps growing I thought it may be a good idea to provide an overview about the various blog posts/documents and their content.

 

 

Of course the ultimate starting point to get started with the platform is the official documentation provided here:
SAP HANA Cloud Documentation

 

 

Overview

 

BlogAuthorTopics
SAP NetWeaver Cloud - We're open!Matthias SteinerOverview
SAP NetWeaver Cloud & Open Source - A match made in heavenMatthias SteinerOverview
The SAP HANA & Cloud Platform SymbiosisMatthias SteinerOverview

 

Native HANA development

 

BlogAuthorTopics
8 Easy Steps to Develop an XS application on the SAP HANA Cloud PlatformStoyan ManchevHANA
Using HANA Modeler in the SAP HANA CloudStoyan ManchevHANA
Enhance Your Cloud Application with HANA SearchDimitar TenevHANA
Creating and using HANA native scripted calculation view in SAP HANA CloudNikolay StoichkovHANA
Click and Try Sample XS Applications on the SAP HANA Cloud PlatformDimitar TenevHANA
How to send mail from a productive HANA XS applicationBoris AngelovHANA
Connecting to #SAP #HANA Instances on #SAPHCP from #Eclipse IDEVladimir PavlovHANA

 

End-to-End tutorials

 

BlogAuthorTopics
ESPM - End-to-End Cross Technology Jens GlanderE2E
Enterprise Granny Matthias SteinerE2E

 

User experience (UX)

 

BlogAuthorTopics
Using Neo and SAPUI5 - Part 1, Part 2Rui NogueiraUI5
TechEd 2012 CD208 - Responsive UI - Part 1, Part 2, Part 3Lars KargBootstrap
Extending SAPUI5 web applications with SAP HANA Cloud PortalMatthias SteinerMashups
SAP TechEd'13: End-2-End exercise [CD265]Matthias SteinerMashups

 

Connectivity/Integration

 

BlogAuthorTopics
Executing RFC Calls from a NetWeaver Cloud ApplicationUlrich SchmidtRFC
(experimental)
Get your local SAP NetWeaver Gateway instance up and running on Mac OS XLars KargGateway
How to call the SAP Netweaver Gateway Demo System from SMP CloudYohan kariyawasanGateway
Expose data from the backend to the Cloud without GatewayWouter LemaireCloud Connector
(experimental)
SAP Cloud Connector ConfigurationBarry RyanCloud Connector
Get your hands dirty: SuccessFactors API access for HCP-based extensionsKrasimir SemerdzhievSFSF extensions
Enhancing SuccessFactors Employee Central v12 Home Page - to HCP or not?Chris Paine

SFSF extensions

Integrate Your Applications with SAP HANA Cloud PlatformTimo LaknerCloud Connector
SFlight sample application showing how to extend an on-premise ABAP system using JCo/RFCTimo LaknerRFC / JCo
How to consume an OData Service of SAP NetWeaver Gateway with Apache OlingoMichael BolzOData

 

Security, Identity and Access Management

 

BlogAuthorTopics
Single Sign-On and Identity Federation with SAP NetWeaver Identity ManagementMartin RaeppleSSO
Single Sign-On and Identity Federation with Microsoft Active Directory Federation Services (ADFS) 2.0Martin RaeppleSSO
Single Sign-On and Identity Federation with ForgeRock OpenAMMartin RaeppleSSO
Securing your Web API with OAuth 2.0Martin RaeppleREST, SSO
On-Premise User Connector for SAP HANA Cloud ApplicationsNikola SimeonovSSO

 

RESTful Services (APIs)

 

BlogAuthorTopics
Exposing a REST API from #SAPNWCloudDagfinn ParnasREST
The Rise of Enterprise APIs - Part IIMatthias SteinerREST
The Rise of Enterprise APIs - Part IIIMatthias SteinerREST
Develop and Deploy JAX-RS based REST application using CXF and Spring on SAP NetWeaver Cloud - 1Pankaj KumarREST
Develop and Deploy JAX-RS based REST application using CXF and Spring on SAP NetWeaver Cloud - 2 Pankaj KumarREST
SAP HANA Cloud and BPM Rest APILeo van HengelREST
Expose JPA Entity as Odata Service with Odata4jFrancesco BersaniODATA

 

Mobile

 

BlogAuthorTopics

Mobile Chat App with NW Cloud: Part 1, Part 2, Part 3, Part 4, Part 5

Julia Lakatos

Johannes Riedel

Mobile
Linking to and managing a mobile app using a simple solution in SAP NetWeaver Cloud Chris PaineMobile
RESTful APIs in SAP NetWeaver Cloud with a mobile deviceChris PaineMobile
Using SAP NetWeaver Cloud to link from a QR code to Apple App Store or Google Play Chris PaineMobile
Mobile Development @SAP - A glimpse of the (near!) futureMatthias SteinerMobile
Mobile Chat App with HANA Cloud: Part VII - Continuing developmentSimon HofmannMobile
Document Management using HANA Cloud Document Service on AndroidMarc Lester TanMobile
Understanding how Cloud and Mobility fit together by developing a simple mobile app (SAPUI5/iOS)Krishna Kumar SMobile

 

Alternative Programming models

 

BlogAuthorTopics

Server-side JavaScript on #sapnwcloud

Dagfinn ParnasRhinoJS
Running Ringo Javascript On SAP Netweaver CloudSamir ZeortRingo
Building Clojure Web Applications for the NetWeaver CloudAlisdair TempletonClojure
First tests with Spring Roo to create #SAPNWCloud appsRichard HirschSpring Roo
Supporting REST via Spring Roo in #SAPNWCloud: A lazy developer’s challenge  Richard HirschSpring Roo
TechEd 2012 CD208 (Chapter 4/6) – Spring RooLars KargSpring Roo
Deploying Grails Applications on SAP NetWeaver Cloud with MavenJakub SendorGrails
Using SAP UI5 and NW Cloud Persistence Service with Grails ScaffoldingMarc Lester TanGrails
Riding JRuby on Rails on SAP NetWeaver Cloud: the local tasteKrum BakalskyJRuby
Riding JRuby on Rails on SAP NetWeaver Cloud: the cloud caseKrum BakalskyJRuby
Dissecting JRuby on Rails on SAP NetWeaver CloudKrum BakalskyJRuby
Running Actors on SAP HANA CloudIsaías Cristiano BarrosoAkka
SSO with Grails on HANA Cloud PlatformMarc Lester TanGrails
Dirigible on SAP HANA Cloud PlatformNedelcho DelchevIDEaaS

 

Misc.

 

BlogAuthorTopics

Which freaking PaaS should I use (1/2)?

Harald MuellerGranny
Essentials - Working with the local databaseMatthias Steiner

Local DB Setup

SAP Netweaver Cloud - it's childs playJohn AstillDeveloper Experience Story
Using Liquibase for Database Migrations in SAP Netweaver CloudMichael WenzDB Management
NetWeaver Cloud @DemoJamMatthias SteinerDemoJam
Playing in the clouds: Paul PredictsJohn AstillShowcase
The story of SAP NetWeaver Cloud LabsLars KargCloud Labs
Migrating existing applications to #SAPNWCloud with Apache MavenRichard HirschMaven
Using #Jolokia and JSON to display JMX data in #SAPNWCloud Richard HirschJMX
Essentials - Working with Git & Maven in EclipseMatthias SteinerMaven, Git
NetWeaver Cloud – A Look behind the CurtainThomas WalterArchitecture
ANTSAPNWC, aka ANother Tutorial for SAP NetWeaver CloudChristophe ThiebaudTutorial
Can you use NW Cloud to run … Sonar?Tobias HofmannSonar
A small story from the kitchenVesselin MitrovLogging
Can you use NW Cloud to run … Jenkins?Tobias HofmannJenkins
SAP NetWeaver Cloud is Java EE 6, Web Profile CertifiedIliyan NenovJava EE 6 WP
SAP NetWeaver Cloud developers can now join the rebellion against Java RedeploysKrasimir SemerdzhievJRebel
Can you use NW Cloud to run … PHP?Tobias HofmannPHP
(experimental)
How to use a "Database Viewer" when testing a NW Cloud Application locally?Jens GlanderLocal DB Setup
Making Liquibase Rock-SolidRobert WetzoldDB Management
TechEd 2012 CD208 (Chapter 3/6) - Social Media IntegrationMatthias SteinerSocial Media
Can you use NW Cloud to run …  MediaWiki?Tobias HofmannMediaWiki
Get Ready For Your Paul PositionPetar IvanovShowcase
SAP NetWeaver Cloud Labs: A look into the rear mirror and a glimpse into 2013Lars KargCloud Labs
Paul Dissected - Part 1Robert WetzoldShowcase
Using OAuth as an alternate user authentication strategy for SAP NetWeaver CloudChris PaineOAuth
Setting up Ubuntu for SAP HANA CloudRui NogueiraUbuntu
Sending formatted email with inline images from #sapnwcloudChris PaineEmail
Sending formatted email with inline images from #sapnwcloud (part two, the fixes)Chris PaineEmail
Paul Dissected - Part 2 - User AuthenticationRobert WetzoldShowcase
CORS and #sapnwcloud on a whiteboardChris PaineCORS
Scheduling Jobs on SAP NetWeaver Cloud using the EJB Timer ServiceKaloyan RaevScheduled Jobs
The Borg and the Document Service on SAP HANA Cloud PlatformRui NogueiraDocument Management (CMS)
Non-blocking Java with Servlets 3.0Samir ZeortAsync Services
Optimizing your SAP NetWeaver Cloud application with Gzip compressionKrum BakalskyGZIP
Paul Dissected - Part 3 - Profiling & OptimizationRobert WetzoldProfiling
Get around cross-origin issues in your JavaScript applications using a proxyTimo LaknerCORS
Welcome to the Library!Ilhan MyumyunSample
Using an open source based development infrastructure with SAP HANA Cloud PlatformMatthias VachContinuous Integration
Employee Scenario of SAP ID ServiceNikola SimeonovIdentity Management
Consumer Scenario of the SAP Cloud Identity OfferingNikola SimeonovIdentity Management
Building Resilient Services On SAP HANA Cloud Platform Using Netflix OSSIsaías Cristiano BarrosoNetflix OSS
SAP HANA Cloud Gzip compression is now hereKrum BakalskyGZIP
Run your own Jenkins on SAP HANA Cloud PlatformStephan WeberJenkins
Deploy HANA XS apps on SAP HANA Cloud Platform with an Ubuntu VMRui NogueiraUbuntu
SAP HANA Cloud Platform console client: a lot more than deployVanya ManevaConsole client
Is your cloud application secure? Part1: HTTP Parameter PollutionSvetoslav ManolovSecurity
Is your cloud application secure? Part2: Using own web domainSvetoslav ManolovSecurity
Run hybris on HANA Cloud Database for freeFrancesco BersaniHybris
(experimental)
WebSocket on SAP HANA Cloud PlatformNikolai DokovskiHCP Runtimes
Maven or Finding joy in the little thingsMatthias SteinerMaven
Running SAP HCP Tools in Eclipse on Windows 8Vladimir PavlovEclipse Tools
Troubleshooting Java Applications on SAP HANA Cloud PlatformVladimir Pavlov

Debugging, Profiling, Logging

Speed up your development with hot-updateVanya ManevaConsole client, Deployment

 

 

Events

 

BlogAuthorTopics
SAP CodeJam Huizen: a win for everybodyFred VerheulCodeJam
SAP CodeJam Bratislava: let's jam the cloudKaloyan RaevCodeJam
SAP CodeJam Skopje: Cloud developers, unite!Stoyan VellevCodeJam
The second #SAPCodeJam Huizen: what's new?Fred VerheulCodeJam
SAP CodeJam in the land of TiramisuRui NogueiraCodeJam
My random thoughts after SAP HCP CodeJam RomeAlessandro SpadoniCodeJam
SAP HANA Cloud CodeJam in Rome.....Walking on a dreamPatrizia RossiCodeJam
First SAP CodeJam in Russia(n)Vladimir PavlovCodeJam

 


Videos (DevTalks/CodeTalks)

 

BlogAuthorTopics
The DevTalks Series - Identity ManagmentRui NogueiraDevTalk
The DevTalks Series - Episode 2 - Document ServiceRui NogueiraDevTalk
The DevTalks Series - Episode 3 - Connectivity ServiceRui NogueiraDevTalk
The DevTalks Series - Episode 4 - The Email functionalityRui NogueiraDevTalk
The DevTalks Series - Episode 5 - Persistence ServiceRui NogueiraDevTalk
Videos of openSAP course "Introduction to SAP HANA Cloud Platform"Rui NogueiraopenSAP

 

Enterprise Granny (Reference application)

 

BlogAuthorTopics
Which freaking PaaS should I use (1/2)?Harald MuellerOpen standards
Which freaking PaaS should I use (2/2)?Harald MuellerEnterprise readiness
Enterprise Granny Part 1: There's no spoon - but a fork!Matthias SteinerProject intro & setup
Enterprise Granny Part 2: Making it runMatthias SteinerDB agnostic persistence
Enterprise Granny Part 3: The Good, the Bad and the UglyMatthias SteinerArchitecture review
Enterprise Granny Part 4: Get in controlMatthias SteinerSeparation of concerns
Enterprise Granny Part 5: Granny's Next TopmodelMatthias SteinerJPA (Data modelling)
Enterprise Granny Part 6: Back to the basicsMatthias SteinerPrimary keys
Enterprise Granny Part 7: Put Granny to the testMatthias SteinerUnit testing
Enterprise Granny Part 8: Inner beauty Matthias SteinerUI

(Work in progress...)

Developing in cloud for cloud and on premise solutions

$
0
0

Hello,

 

I'll be developing software and plan on doing the development in the cloud to help with programs like Successfactors. Will the programs that I develop in the cloud be useable, 'as is' for the on-prem versions of that software? Is this the same for all other SAP cloud offerings?

 

Thanks,

SAP HANA Cloud Trial - insufficient privilege

$
0
0

Dear community

 

Have installed

- Hana Studio

- SDK

- Client

 

Everything works fine (connection to Hana cloud platform via tunnel) and I can e.g. create Tables and Views with Hana Studio.

 

However I can not access the data of views - even if I created them. I can however access the data of Tables.

 

If I select a view that I created and select Data Preview I get "Cannot get the data provider outline - SAP DBTech JDBC: [258]: insufficient privilege. Not authorized."

 

Any help appreciated!

 

Best Felix

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

Unable to create trial instance - Unexpected exception in createSchema()

$
0
0

Hello HCP Experts,

 

today i tried to play with HCP (using SAP HANA Cloud Platform Cockpit).

 

However, it was not possible to create a Trial SAP HANA Instance.

 

Problem description:

 

1. Press link "HANA XS Applications"
2. Specify 'myinstance' for instrance name
   (database is HANA XS, version 1.00.73.00.389160)
3. Press Save button

 

-> After aprox. 15 seconds comes error popup:

 

Unable to create trial instance 'myinstance': Internal Server Error (500)

 

Unexpected exception in createSchema() called with account 'XXXXtrial', schema 'myinstance', DB Type 'hanaxs',

DB Version '1.00.73.00.389160', and DB Server 'null'

 

----

One more interesting thing i noticedin HCP Cockpit:

- if i try to create Trial Instance then HANA version is 1.00.73.00.389160

- if i create new database schema (it works) then HANA version is 1.00.64.382044

 

-> Do we really use two different HANA systems in HCP (SPS7 for instance and SPS6 for schemas) ?

What is the scenario for such configuration ?

 

 

Could you please check and advise how to proceed.

 

Thank you.

 

Best Regards,

Yuri


Connect HANAtrial with Lumira

$
0
0

Hi,

 

I want to connect my HANA Could (trial) Account with SAP Lumira. The way looks very easy but I don´t get an access. At the end I get the message: "No connection to hanatrial.ondemand.com"

 

The details are:

"

com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sap://hanatrial.ondemand.com:30015 [Cannot connect to host hanatrial.ondemand.com:30015 [Connection timed out: connect], -813.].com.sap.db.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sap://hanatrial.ondemand.com:30015 [Cannot connect to host hanatrial.ondemand.com:30015 [Connection timed out: connect], -813.].com.sap.hilo.datasource.hanaview.internal.HanaViewBrowserImpl.getAvailableHanaViews(HanaViewBrowserImpl.java:149)

com.sap.hilo.desktop.datasource.hanaview.services.internal.HanaViewBrowserHiloImpl.getViews(HanaViewBrowserHiloImpl.java:22)

com.sap.hilo.desktop.datasource.hanaview.services.internal.GetHANAViewFactory.getViews(GetHANAViewFactory.java:30)

com.sap.hilo.desktop.datasource.hanaview.services.GetHANAViews.execute(GetHANAViews.java:65)

com.sap.hilo.desktop.h5v2.common.service.BaseService.execute(BaseService.java:33)

com.sap.hilo.desktop.embeddedserver.httpservice.HTTPAdapter.execute(HTTPAdapter.java:87)

com.sap.hilo.desktop.embeddedserver.DispatcherServlet.handleRequest(DispatcherServlet.java:99)

com.sap.hilo.desktop.embeddedserver.DispatcherServlet.doPost(DispatcherServlet.java:85)

javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)

org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1367)

com.sap.hilo.desktop.embeddedserver.configurator.internal.SecurityFilter.doFilter(SecurityFilter.java:59)

org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338)

org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484)

org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)

org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)

org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)

org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)

org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)

org.eclipse.jetty.server.Server.handle(Server.java:350)

org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)

org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900)

org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954)

org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)

org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)

org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)

org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)

org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)

org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)

java.lang.Thread.run(Unknown Source)

 

SAP DBTech JDBC: Cannot connect to jdbc:sap://hanatrial.ondemand.com:30015 [Cannot connect to host hanatrial.ondemand.com:30015 [Connection timed out: connect], -813.].com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:219)

com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:203)

com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:186)

com.sap.db.jdbc.Driver.connect(Driver.java:238)

java.sql.DriverManager.getConnection(Unknown Source)

java.sql.DriverManager.getConnection(Unknown Source)

com.sap.hilo.common.hana.HanaConnectionFactory.getConnection(HanaConnectionFactory.java:54)

com.sap.hilo.common.hana.HanaConnectionFactory.getConnection(HanaConnectionFactory.java:38)

com.sap.hilo.datasource.hanaview.internal.HanaViewBrowserImpl.getAvailableHanaViews(HanaViewBrowserImpl.java:78)

com.sap.hilo.desktop.datasource.hanaview.services.internal.HanaViewBrowserHiloImpl.getViews(HanaViewBrowserHiloImpl.java:22)

com.sap.hilo.desktop.datasource.hanaview.services.internal.GetHANAViewFactory.getViews(GetHANAViewFactory.java:30)

com.sap.hilo.desktop.datasource.hanaview.services.GetHANAViews.execute(GetHANAViews.java:65)

com.sap.hilo.desktop.h5v2.common.service.BaseService.execute(BaseService.java:33)

com.sap.hilo.desktop.embeddedserver.httpservice.HTTPAdapter.execute(HTTPAdapter.java:87)

com.sap.hilo.desktop.embeddedserver.DispatcherServlet.handleRequest(DispatcherServlet.java:99)

com.sap.hilo.desktop.embeddedserver.DispatcherServlet.doPost(DispatcherServlet.java:85)

javax.servlet.http.HttpServlet.service(HttpServlet.java:755)

javax.servlet.http.HttpServlet.service(HttpServlet.java:848)

org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)

org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1367)

com.sap.hilo.desktop.embeddedserver.configurator.internal.SecurityFilter.doFilter(SecurityFilter.java:59)

org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1338)

org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484)

org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)

org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)

org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)

org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)

org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)

org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)

org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)

org.eclipse.jetty.server.Server.handle(Server.java:350)

org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)

org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900)

org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954)

org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)

org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)

org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)

org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)

org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)

org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)

org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)

java.lang.Thread.run(Unknown Source)"

 

My question: Is it a mistake on my side? Did I write something wrong or isn´t it not allowed to use a trial account for SAP Lumira?

 

Thanks for your help.

Edina

Import data from local file: insufficient privilege

$
0
0

As part of a project I'm working on, I have to load data (only a few thousand records) into a HANA Development instance on HCP. Last week I did this several times with no problem using File > Import from HANA Studio and choosing Data From Local File. Yesterday and today I get this message (most of the time, but not all the time): SAP DBTech JDBC: [258]: insufficient privilege: Not authorized.

 

Does anybody know why this might be and what do to about it?

Are there batch alternatives? I have not found any. The INPUT INTO statement also gives authorization problems.

Release Notes for SAP HANA Cloud Platform

$
0
0
Release Notes for SAP HANA Cloud Platform - 10 April 2014
FunctionType of ChangeDescription
Security, Identity and Access ManagementNew
You can manage your custom SAML 2.0 identity providers with productive HANA XS instances. For more information, see Configuring SAML 2.0 Authentication.
SAP HANA Web-based Development WorkbenchEnhancement
You can use the SAP HANA Web-based Development Workbench also on the trial landscape. For more information, see Developing with SAP HANA Web-based Development Workbench.
Console Client, SAP HANA ServicesEnhancement

You can restart SAP HANA services on productive SAP HANA instances from the console client. For more information, see restart-hana.

Console Client, DeployEnhancement
You can start an application process from the console client in disabled mode so that it is not available for new connections. For more information, see start.
SAP HANA XS, MonitoringEnhancement

You can register availability checks for multiple SAP HANA XS applications running on a productive SAP HANA instance from the console client. For more information, see Configuring an Availability Check to Monitor Your SAP HANA XS Application.

Cockpit, Destinations EditorEnhancement
The Destinations editor has been re-designed for easier navigation and extended with new features, such as cloning existing destinations and deleting configured certificates. For more information, see Configuring Destinations from the Cockpit.
SAPUI5
Enhancement
New version 1.18.10 of SAPUI5 runtime and documentation has been released. For more information, see the release notes.

 

 

 

Release Notes for SAP HANA Cloud Platform - 27 March 2014
FunctionType of ChangeDescription
Document ServiceNew
The Document Service features console client commands for managing document repositories.  For more information seeConsole Client Commands-> Document Service section.
SAP HANA Predictive Analytic LibraryNew

You can evaluate and work with SAP HANA Predictive Analytic Library (PAL) functions on SAP HANA Cloud Platform Trial landscape. For more information, seeUsing Predictive Analysis Library.

SecurityNew
A set of new commands in the console client allows the account administrator to modify the keystore of productive SAP HANA XS systems to upload, delete and list certificates. For more information, seeupload-hanaxs-certificates, list-hanaxs-certificatesanddelete-hanaxs-certificates.
Console Client, DeployEnhancement

You can configure a custom downtime application to be used in case of unplanned downtime. For more information, seeHandling Unplanned Downtime.

CockpitEnhancement
You can disable (and enable) Java application processes from the cockpit. Disabled Java application processes don't accept new session requests. For more information, seeStarting and Stopping Applications.
CockpitEnhancement

You can put Java applications in and out of maintenance mode from the cockpit.  Java applications in maintenance mode redirect requests to a chosen target application until you put them again into normal operation. For more information, seePutting Applications into Maintenance Mode.

Connectivity Service, SecurityEnhancement
The list of certificate authorities that SAP HANA Cloud Platform trusts by default is now available. For more information, seeTrusted Certificate Authorities.
SAPUI5Enhancement
New version 1.18.9 of SAPUI5 runtime and documentation has been released. For more information, see therelease notes.
SAP HANA Cloud ConnectorDeprecation

SAP HANA Cloud Connector 1.x has reached end-of-life. It is no longer accessible ontools.hana.ondemand.comand its documentation has been removed as well. UseSAP HANA Cloud Connector 2.xas the major version that will be extended and maintained in the future.

MonitoringBugfix
An issue with custom monitoring metrics not reported correctly in case you have registered many custom metrics is fixed.
SAP HANA Cloud Platform Tools for Connecting to SAP HANA Systems
Bugfix
The following issues are fixed:
  • Unclear error message appeared if password for connecting to a SAP HANA system was wrong
  • The "Add Cloud System..." action was missing from the menu when the selection was on a system that is logged off.

 

 

 

Release Notes for SAP HANA Cloud Platform - 13 March 2014
FunctionType of ChangeDescription
LicensingNew
SAP HANA Cloud Platform has enlarged its scope and now encompasses SAP HANA Infrastructure Services, SAP HANA DB Services and SAP HANA Application Services. The new package offering comes with a new pricing model. For more information, seeSAP HANA Marketplaceand the blogpostThe full package.
Password Storage APINew

An API for storing, updating and deleting passwords is now available to applications. For more information, seeStoring Passwords.

Console Client, Java ApplicationsNew
A new command hot-update (beta) enables you to redeploy and update the binaries of an application faster than the normal deploy and restart. The update happens directly on the already running application process. For more information, seehot-update.
SAP Development Tools for Eclipse (Download Site)New

SAP HANA Tools Revision 72 are now delivered via the download site(https://tools.hana.ondemand.com/#hanatools). For more information, see

Setting Up the Tools.

MultitenancyEnhancement
The existingtenant APIhas been extended by a new execute() method to run background threads on behalf of a given tenant.
Cockpit, LogsEnhancement

The log viewer now opens in a new window, shows the log volume over time and supports you in finding time ranges of high activity. For more information, seeLog Viewers.

You can now configure loggers also via the Recent Logging panel in the Java Application Dashboard. For more information, seeUsing Logs in the Cockpit.

Cockpit, MonitoringEnhancement
You can now register availability checks for your Java applications also from the cockpit and check the application availability status from the Java Application Dashboard. For more information, seeConfiguring Availability Checks from the Cockpit.
SAP Development Tools for Eclipse (Download Site)Enhancement
The download site now uses geolocation-based load balancing for SAP Development Tools for Eclipse (tools.hana.ondemand.com). When installing tools, you are routed to the nearest data center. The response time and the download times are significantly improved for users in the US region.
Eclipse ToolsEnhancement
SAPUI5Enhancement
New version 1.18.8 of SAPUI5 runtime and documentation has been released. For more information, see therelease notes.
HTTPSDeprecation

SSL 3.0 is no longer supported as a communication protocol.

In case you have connection problems, make sure your HTTP client (e.g. browser) supports TLS 1.0, TLS 1.1, or TLS 1.2.

Eclipse Tools, SDKDeprecation

Deployment with SAP HANA Cloud Platform Tools with version older than 1.17.0 or SDK with version older than 1.16.0 is no longer supported.

Eclipse Tools
Bugfix
The following issues are now fixed in Eclipse tools:
  • "Landscape host" in the preference page is renamed to "Server's host name" to match the New Server wizard
  • Trailing white spaces are now ignored in the Cloud Server wizard
  • Starting a local server in an external directory which exists in the workspace is now possible
  • Stopping a local server from the Debug view is now possible
  • The Users editor does not throw an exception when you open it right after a server is created.

 

 

 

Release Notes for SAP HANA Cloud Platform - 27 February 2014
FunctionType of ChangeDescription
Java ApplicationsNew
SAP HANA Cloud Platform now supports JSR 356 Java API for WebSocket in productive state.
For more information, seeJava EE 6 Web Profile.
CockpitEnhancement
The cockpit now has integrated help. You can click the Help link next to a panel title in a cockpit page to access the contextual help for the respective panel and further links to the documentation.
CockpitEnhancement

A new dashboard serves as an entry page of the cockpit. The dashboard provides an overview of and access to the SAP HANA XS and Java applications available in the account and shows other key information about the account.

Cockpit, SAP HANA XSEnhancement
The use of packages in developer accounts on the trial landscape is simplified: a developer account can have only one  SAP HANA package, and you can create that package easily with one button click.

For more information, see Creating SAP HANA Packages.

Cockpit, LogsEnhancement
  • A new log viewer in the cockpit allows you to view trace and HTTP access logs directly in the browser and to sort and filter the log entries.
  • You can still download log files – for each file you can choose whether to open in the viewer or download to your machine.
  • Log files are also grouped by type.

For more information, see Using Logs in the Cockpit.

Cockpit, Logs, MonitoringEnhancement
The cockpit has now completely adopted the process ID as an identifier of application processes in logs and monitoring charts.
SDKEnhancement
  • The console client commands for the local server inside the SDK (install-local, start-local, andstop-local) now have port parameters that help avoid port collisions, thus enabling you to set up parallel builds and test procedures. These parameters are now visible by default in the console help. 
  • The install-local command now also supports setting non-proxy hosts for a local server (installed from the SDK for development purposes).
  • A new command deploy-local that allows you to deploy WAR files on a local server instance is now available.
TenancyEnhancement
Application logs now include tenant names in each log entry, which allows you to filter and explore relevant logs for a particular tenant.
For more information, seeViewing the Default Trace.
Cockpit, OAuthEnhancement
The UI for registering OAuth clients is now available for cross-account subscribed applications.

For more information, see Configuring OAuth Authorizations.

SAP UI5Enhancement
New version 1.18.6 of UI Development Toolkit has been released.
CockpitDeprecation
The cockpit no longer supports Internet Explorer 8. For more information about supported browsers, seeProduct Prerequisites and Restrictions.
SDK, DestinationsBugfix
The following bugfixes are provided for SDK 2.x:
  • You are now properly requested to enter your password for the console client commands (before there was an error with HTTP code: 401)
  • Тhe --application parameter in console client commands for managing connectivity destinations for subscribed applications now works with the format --application <provider_account>:<provider_application>. For more information, see Configuring Destinations from the Console Client.
Connectivity Service
Bugfix
The JCo runtime for SAP HANA Cloud Platform is upgraded and includes the following bugfixes:
  • When only modifying jco.client.cloud_connector_version, a JCoDestination was not recognized to be changed so that the old cached instance was still used.
  • Depending on the defined DDIC (Data Dictionary) types and structures and on the defined RFM (Remote Function Module) interfaces at SAP AS ABAP system side, a java.lang.StackOverflowError could have been thrown when a JCoRepository instance was storing the queried RFC meta data into its internal MetaDataStorage instance.
  • A java.lang.NullPointerException was thrown when saving a JCoRepository instance, which contained a remote function module template with an empty import parameter list.
  • The meta data information that specifies whether a parameter is optional or not was lost after loading a JCoRepository instance from a Java I/O character stream. Calling method JCoListMetaData.isOptional(<name|index>) on any parameter meta data that was loaded by a JCoRepository always returned false in this case.
  • A java.lang.NullPointerException was always thrown when trying to log on to a non-Unicode ABAP system using one of the new logon languages that are available in Unicode SAP systems only. Now an appropriate JCoException with error group RFC_ERROR_LOGON_FAILURE will be thrown in this case.

 

 

 

Release Notes for SAP HANA Cloud Platform - 13 February 2014
FunctionType of ChangeDescription
Console Client, DeployEnhancement
You can now use the following two new commands:
  • rolling-update - to run an update of an application without downtime in one run. Prerequisite is that the new version is compatible with the old one.
  • enable - to switch a previously disabled application process(es) to started state in the load balancer.

For more information, see rolling-updateandenable.

CockpitEnhancement
In the cockpit, you can now clearly differentiate infrastructure from application error states for Java applications which makes it easier for you to detect and fix application issues.

The status icons are improved, in particular the OK status icon which was sometimes confused with an action.

Cloud Environment VariablesEnhancement

There is now a new cloud environment variable HC_PROCESS_ID that contains the process id of the current application process.

For more information, seeUsing Cloud Environment Variables.

SDKEnhancement
The SDK samples will now demonstrate and make use of the SAP HANA Cloud Platform API which is now also published to Maven Central for easier consumption in Maven-based development projects.
SAP UI5Enhancement
New version 1.18.5 of UI Development Toolkit has been released.

For more information, see the release notes.

Feedback ServiceEnhancement
You can now provide feedback for the feedback service and its UIs.

For more information, see Getting Feedback for Applications.

Cockpit, DestinationsEnhancement
The Destinations editor in the cockpit is extended to support the new authentication type PrincipalPropagation. This new authentication type works for on-premise destinations (proxyType=OnPremise) and requires Cloud Connector version 2 (CloudConnectorVersion=2).
SAP HANA Cloud Connector
Enhancement
SAP HANA Cloud Connector 2.2 has been released with the following features:
  • Support of multiple accounts within a single installation. Account administration allows you to add/delete connections to several accounts. For more information, see Managing Accounts.
  • Redesigned UI experience, similar to the cockpit
  • Support for Principal Propagation has been added. By configuring trusted SAML IdPs, the identity, which is  logged on to the cloud, will also be logged on in the on-premise systems, if the prerequisites are fulfilled. For more information, see Setting Up Trust.
  • Audit logs can be checked for integrity so that it can be verified that no one has modified them. For more information, seeAudit Logging in the Cloud Connector.
  • Payload traces for the communication traffic can be activated for problem analysis. For more information, seeTroubleshooting.

 

 

 

Release Notes for SAP HANA Cloud Platform - 30 January 2014
FunctionType of ChangeDescription
Cockpit, HANA XSEnhancement
Users of productive HANA XS systems are now able to create their SAP HANA database users within the cockpit.
For more information, seeCreating Your Database User.
CockpitEnhancement
You can now see the runtime type, for example Java Web or Java EE 6 Web Profile, together with the runtime version.
CockpitEnhancement
You can now see the process ID for Java application processes in the UI. The process ID for processes that are still running is also shown with each log file, so that you can match a certain log file to a running process. 
CockpitEnhancement
In the process list of the application dashboard, you can now see the aggregated status of processes including run state, runtime version and metrics. This makes spotting problems with individual processes much easier.

For more information, seeChecking the Application Status.

Cockpit, MonitoringEnhancement
The following usability improvements are now available:
  • You can navigate to the metrics details from the Status Summary in the Process Dashboard
  • Current metrics are now shown in compact view in the Monitoring tab
  • You can now select a custom period when viewing history of metrics for whole applications.

For more information, see Viewing Monitoring Metrics.

SDK, Connectivity ServiceEnhancement
The existing SDK sample application “connectivity-outbound-internet” is renamed to "connectivity" and is also extended to cover an example for on-demand to on-premise connectivity. The tutorials below are adopted accordingly to describe both connectivity scenarios, fitting to the extended sample application:

Using Internet Services in Cloud Applications

Using On-Premise Back-End Services in Cloud Applications

SAP UI5Enhancement
New version 1.16.9 of UI Development Toolkit has been released.
DocumentationEnhancement
SAP HANA Cloud Platform now uses geolocation-based load balancing for SAP HANA Cloud Platform documentation (help.hana.ondemand.com). When opening the documentation, users are routed to the nearest data center. The response time for opening and browsing the documentation is significantly improved for users in the US region.
Connectivity Service: Destination ConfigurationIncompatibility
To support SAP HANA Cloud Platform service JNDI resource lookups in EJBs with the release of neo-sdk-javaee6-wp-2.25.7, an incompatible behavior had to be introduced concerning the time destinations need to be configured. For more information, seeIncompatibility announcement for neo-sdk-javaee6-wp-2.25.7 affecting destination configuration time.
Eclipse ToolsBugfix
The following issues are now fixed:
  • A user could not start a cloud server in debug mode if the Server Adapter was attached to an existing running application.
  • The profiling session name was incorrectly generated.
  • Servers used to hang if running with an older SAP JVM.
  • Applications created with migrated runtime and running on a cloud server, were deployed with wrong runtime version
  • Migration failed imperceptibly if SDK had been deleted.
  • Accessibility fixes in the Connectivity and Users editors in the Eclipse IDE.
Java EE 6 Web Profile
Bugfix
SAP HANA Cloud Platform services can be injected as JNDI resources in EJBs.

 

 

 

Release Notes for SAP HANA Cloud Platform - 16 January 2014

 

FunctionType of ChangeDescription
Cockpit, MonitoringEnhancement
You can now choose a custom time period when viewing history of metrics for a single process.
You can also compare the metrics history of different processes within an application.
For more information, see Viewing Monitoring Metrics.
ID Service, Authorization ManagementEnhancement
You can now directly assign users to groups.
Cloud ConnectorEnhancement
Version 1.3.2 improves the security of SCC traffic tracing by introducing a 4-eyes principle for the activation of HTTP and RFC protocol traces: activating a trace level that dumps traffic data requires the approval of two separate users.
SAP UI5Enhancement
New version 1.16.7 of UI Development Toolkit has been released.
Console ClientEnhancement
The disabled status for applications processes, as well as maintenance status for applications are now shown in the console client.
Console Client, DeployDeprecation
The parameter --severity for setting log severity during deploy has been deprecated.
Eclipse ToolsBugfix
An issue with applications deployed on a newly created cloud server (via Run → Run on Server) sporadically not being published on the server has been fixed.
Console Client, DeployBugfix
The deploy command now shows improved output in case you are trying to select a non-existing runtime version.
Console Client
Bugfix
It is no longer possible to start maintenance for an application that is used as a maintenance page.

For more information about older release notes, see:

Failing to start app with HCP runtime version 2.30

$
0
0

Hello,

 

This morning I have been unable to deploy and start an instance of my web app under newly released version 2.30 of the HANA Cloud Platform runtime.  Whilst the application appeared to be in status Started in the cockpit, trying to access it returned the "Service Unavailable" page.  I could not see any errors in the logs.  I tried deploying again, this time requesting runtime version 2.29 and everything was fine again.

 

Likewise, simply trying to restart another instance, that was running fine yesterday under version 2.29, failed this morning under version 2.30.  Once again I resolved this by re-deploying the same WAR requesting version 2.29.

 

Looks like there may be some issue with version 2.30.

 

Cheers,
Scott

Authorization Issue Accessing new HCI OData Provisioning

$
0
0

Hello all,

 

with the new release from yesterday I get the following error when trying the former GWAAS, now HCI OData Provisioning (https://gwaas-dxxxxxtrial.hanatrial.ondemand.com/Admin):

 

HTTP Status 401 - Unauthorized


type Status report

messageUnauthorized

descriptionThis request requires HTTP authentication.


Any hints?

 

Thank you and best regards,

Lukas Riederle

Options for user authentication for Gateway

$
0
0

Hi experts, we have a B2C application with users stored on Gateway on-premise. When I deployed our SAP UI5 app on HCP, I hardcoded the user in the destination, that is fine for prototype. For real life I would need a login screen, where the user has to authorize himself. If I remove the hardcoded user from destination, I get basic authentication popup from Gateway system, how can i intercept that and redirect to login screen?

 

I read about this upcoming feature:

Consumer Scenario of the SAP Cloud Identity Offering

 

This would be great to have but in the meantime what are the options?

 

Best regards, Yevgen

Using Predictive Analysis Library (PAL) in SAP HANA Cloud Platform

$
0
0

Disclaimer:This document relates to Beta functionality available on SAP HANA Cloud Platform trial landscape.


Predictive Analysis is "... the process of discovering meaningful new correlations, patterns and trends by sifting through large amounts of data stored in repositories, using pattern recognition technologies as well as statistical and mathematical techniques."Gartner Group
SAP Predictive Analysis Library (PAL) is an add-on set of application functions that implement a wide range of analysis algorithms in the areas of clustering, classification, association, etc. It comes natively with very high performance because the complex and heavy analytic computations are executed directly into the DB instead of being brought up to the application server.

 

The PAL functionality is now available for free for TRIAL users of SAP HANA Cloud Platform. You just need an account and an Eclipse IDE in order to get a direct hands-on of how to embed predictive analytics in your business application.

 

In this document we will illustrate how PAL can be used in SAP HANA Cloud Platform based on the popular Enterprise Procurement Model reference application. To see the specifics of using PAL in SAP HANA Cloud Platform environment compared to the standard usage scenario described in the PAL Documentation, check the SAP HANA Cloud Platform Help.

 

Prerequisites

 

Example

In this example we apply the ABC Analysis function from PAL to classify our partner companies based on their importance in terms of gross amount of sales orders. As input we use the sample data from the Enterprise Procurement Model application, which comes pre-delivered on SAP HANA Cloud Platform. The algorithm will put the companies into three categories:

  • "A" partners - 20% of the companies accountable for 70% of the sales orders amount
  • "B" partners - 30% of the companies accountable for 20% of the sales orders amount
  • "C" partners - 50% of the companies accountable for 10% of the sales orders amount

 

Note: In the example is used a sample account named: p123456trial and a sample trial instance named: sample. Having this setup <your_package> is replaced with p123456trial.sample.

 

Step 1: Create an XS Project

project.png

Step 2: Prepare the Data

The ABC Analysis example in the PAL Documentation uses a manually created and filled data table, which has just the right format to be used as input. Business data, however, typically comes scattered across various DB tables and needs to be properly aggregated before being passed to the analytic function. In our case the necessary data is stored in SNWD_SO and SNWD_BPA tables from the EPMSAMPLEDATA schema -  the former is the raw sales orders data and the latter is master data containing company details.

  • Create a calculation view SO_CV in <your_package>.paldemo. Example: p123456trial.sample.paldemo
  • Join SNWD_SO and SNWD_BPA (cardinality n:1) on ON SNWD_SO. "BUYER_GUID" = SNWD_BPA."NODE_KEY":

SO_CV_Join.png

  • Add columns GROSS_AMOUNT and COMPANY_NAME to the output

CO_CV_add_to _output.png

  • Remove client filtering (choose Cross Client), and analytic privileges

CO_CV_cross_client.png

  • To use the activated SO_CV view in SQL editor call
CALL "HCP"."HCP_GRANT_SELECT_ON_ACTIVATED_OBJECTS";
  • Refresh your Catalog folder and now you should see the _SYS_BIC schema and your calculation view inside. You can make a data preview to check that everything is OK

SO_CV_data_preview.png

 

Step 3: Generate the PAL wrapper procedure

Once we have the input data in appropriate format we should generate a wrapper procedure for the ABC Analysis function. In the next few lines we define the metadata of this wrapper procedure - its input format (PAL_ABC_DATA_VIEW_T), control table format (TYPE PAL_CONTROL_T) and its resulting table format (PAL_ABC_RESULT_T), and put this metadata in PAL_ABC_PDATA_TBL. Finally we generate the wrapper procedure by calling "HCP"."HCP_AFL_WRAPPER_GENERATOR" with the desired name of the wrapper, the AFLPAL area and the metadata table.

As a result we have "_SYS_AFL"."<your NEO_xxx schema>_PAL_ABC" wrapper procedure for the ABC Analysis PAL function.

  • To find <your NEO_xxx schema>, in SQL editor execute
SELECT SCHEMA_NAME FROM "HCP"."HCP_DEV_METADATA"
  • To generate the PAL wrapper procedure, in SQL editor execute
SET SCHEMA "<your NEO_xxx schema>";
CREATE TYPE PAL_ABC_DATA_VIEW_T AS TABLE ("COMPANY_NAME" VARCHAR(100),
"GROSS_AMOUNT" DOUBLE);
CREATE TYPE PAL_CONTROL_T AS TABLE("Name" VARCHAR(100), "intArgs" INT,
"doubleArgs" DOUBLE, "strArgs" VARCHAR(100));
CREATE TYPE PAL_ABC_RESULT_T AS TABLE("ABC" VARCHAR(10),
"COMPANY_NAME" VARCHAR(100));
CREATE COLUMN TABLE PAL_ABC_PDATA_TBL("ID" INT, "TYPENAME" VARCHAR(100),
"DIRECTION" VARCHAR(100));
INSERT INTO PAL_ABC_PDATA_TBL VALUES (1,'<your NEO_xxx schema>.PAL_ABC_DATA_VIEW_T', 'in');
INSERT INTO PAL_ABC_PDATA_TBL VALUES (2,'<your NEO_xxx schema>.PAL_CONTROL_T', 'in');
INSERT INTO PAL_ABC_PDATA_TBL VALUES (3,'<your NEO_xxx schema>.PAL_ABC_RESULT_T','out');
CALL "HCP"."HCP_AFL_WRAPPER_GENERATOR"('PAL_ABC','AFLPAL', 'ABC', PAL_ABC_PDATA_TBL);


Step 4: Prepare configuration data of the generated PAL wrapper procedure

We create a control table PAL_CONTROL_TBL with the format specified in the previous step and fill it with the specific configuration for the ABC Analysis function. Then we also create the result table PAL_ABC_RESULT_TBL which will hold the results.

  • Create folder paldemo\data and file PAL_DEMO_TABLES.hdbdd with the following contents

namespace <your_package>.paldemo.data;

 

@Schema: '_SYS_BIC'

context PAL_DEMO_TABLES {

 

@Catalog.tableType : #COLUMN

Entity PAL_ABC_RESULT_TBL {

  key ABC: String(10);

    key COMPANY_NAME: String(100);

};

@Catalog.tableType : #COLUMN

Entity PAL_CONTROL_TBL {

  key Name: String(100);

    intArgs: Integer null;

    doubleArgs: Decimal(15,2) null;

    strArgs: String(100) null;

};};

  • Create folder paldemo\data\loads and file PAL_DEMO_TABLES.hdbti with the following contents

import = [{

  schema = "_SYS_BIC";

  cdstable = "<your_package>.paldemo.data::PAL_DEMO_TABLES.PAL_CONTROL_TBL";

  file = "<your_package>.paldemo.data.loads:pal_control.csv";

  header = false;

}];

  • In folder paldemo\data\loads create file pal_control.csv with the following contents

THREAD_NUMBER,1,,

PERCENT_A,,0.7,

PERCENT_B,,0.2,

PERCENT_C,,0.1,

  • To apply the changes use the Team -> Activate menu over the paldemo project

hdbdd_save.png


Step 5: Create XSJS service using the generated PAL wrapper procedure

In our XSJS service we want to call the generated PAL wrapper procedure. It will use the configured ABC analysis to split the information from SO_CV view into three categories A,B,and C. From the PAL_ABC_RESULT_TBL table we get the results, and construct a JSON that can be visualized by SAPUI5.

  • Create folder paldemo\services and file partner_analysis.xsjs with the following contents
var ABC_RESULTS_VIEW_SQL = "SELECT R.ABC, R.\"COMPANY_NAME\", T.\"GROSS_AMOUNT\"" +
" FROM \"_SYS_BIC\".\"<your_package>.paldemo/SO_CV\" AS T FULL JOIN" +
" \"_SYS_BIC\".\"<your_package>.paldemo.data::PAL_DEMO_TABLES.PAL_ABC_RESULT_TBL\"" +
" AS R ON T.\"COMPANY_NAME\" = R.\"COMPANY_NAME\"" +
" ORDER BY T.\"GROSS_AMOUNT\" DESC";
var TRUNC_RESULTS_SQL = "TRUNCATE TABLE " +
"\"_SYS_BIC\".\"<your_package>.paldemo.data::PAL_DEMO_TABLES.PAL_ABC_RESULT_TBL\"";
var CALL_PAL_WRAPPER_SQL = "CALL \"_SYS_AFL\".\"<your NEO_xxx schema>_PAL_ABC\"" +
"(\"_SYS_BIC\".\"<your_package>.paldemo/SO_CV\", " +
"\"_SYS_BIC\".\"<your_package>.paldemo.data::PAL_DEMO_TABLES.PAL_CONTROL_TBL\"," +
" \"_SYS_BIC\".\"<your_package>.paldemo.data::PAL_DEMO_TABLES.PAL_ABC_RESULT_TBL\")" +
" WITH OVERVIEW";
var connection;
function close(closables) {  var closable;  var i;  for (i = 0; closables && i < closables.length; i++) {  closable = closables[i];  if (closable) {  closable.close();  }  }
}
function readData() {  var statement = null;  var queryResultSet = null;  var data = {  "A" : [],  "B" : [],  "C" : []  };  try {      statement = connection.prepareStatement(ABC_RESULTS_VIEW_SQL);      queryResultSet = statement.executeQuery();      while (queryResultSet.next()) {            var groupId = queryResultSet.getString(1);            data[groupId].push({                                          groupId : groupId,                                          companyName : queryResultSet.getString(2),                                          grossAmount : queryResultSet.getDouble(3)            });      }  } finally {  close(queryResultSet, statement);  }  return data;
}
function callPalWrapperProcedure() {  var statementTrunc = null;  var statementCall = null;  var queryResultSet = null;  try {      statementTrunc = connection.prepareStatement(TRUNC_RESULTS_SQL);      queryResultSet = statementTrunc.executeUpdate();      statementCall = connection.prepareCall(CALL_PAL_WRAPPER_SQL);      statementCall.execute();  } finally {  close(queryResultSet, statementTrunc, statementCall);  }
}
function doGet() {  var result;  try {      connection = $.db.getConnection();      callPalWrapperProcedure();      result = readData();  } finally {  close(connection);  }  $.response.contentType = "application/json";  $.response.setBody(JSON.stringify(result));
}
doGet();


Step 6: Create SAPUI5 visualization of ABC analysis

The following SAPUI5 consumes JSON result from the XSJS service, and uses three pie charts for visualization. The index.html simply shows the partner_analysis view.

  • Create folder paldemo\views and file partner_analysis.view.js with the following contents
sap.ui.jsview("views.partner_analysis", {  oBarChart : undefined,  getControllerName : function() {return null;},  createDonutControl : function(height, label, dataset) {  return new sap.viz.ui5.Donut({            width : "100%",            height : height,            title : {              visible : true,              text : label            },            dataset : dataset          });  },  createDataset : function(measureTitle, dataRootPath) {  return new sap.viz.ui5.data.FlattenedDataset({            dimensions : [ {              axis : 1,              name : 'Company Name',              value : "{companyName}"            } ],            measures : [ {              name : measureTitle,              value : '{grossAmount}'            } ],            data : {              path : dataRootPath            }          });  },  buildLayout : function() {  var oLayout = new sap.ui.commons.layout.MatrixLayout({            id : 'matrix3',            layoutFixed : true,            columns : 3,            width : '100%'        });    var oRow = new sap.ui.commons.layout.MatrixLayoutRow({id : 'Row-0', width : '100%' });    oLayout.addRow(oRow);    var oCell1 = new sap.ui.commons.layout.MatrixLayoutCell({id : 'Cell-0-0', width : '33%' });    oCell1.addContent(this.donutA);    oRow.addCell(oCell1);    oCell2 = new sap.ui.commons.layout.MatrixLayoutCell({id : 'Cell-0-2', width : '33%' });    oCell2.addContent(this.donutB);    oRow.addCell(oCell2);    oCell3 = new sap.ui.commons.layout.MatrixLayoutCell({ id : 'Cell-0-3',  width : '33%' });    oCell3.addContent(this.donutC);    oRow.addCell(oCell3);    return oLayout;  },  createContent : function(oController) {  var analModel = new sap.ui.model.json.JSONModel();  analModel.loadData("services/partner_analysis.xsjs");  var datasetA  = this.createDataset('A', '/A');  this.donutA = this.createDonutControl("400px", 'A - 70% revenue customers', datasetA);  this.donutA.setModel(analModel);  var datasetB  = this.createDataset('B', '/B');  this.donutB = this.createDonutControl("300px", 'B - 20% revenue customers', datasetB);  this.donutB.setModel(analModel);  var datasetC  = this.createDataset('C', '/C');  this.donutC = this.createDonutControl("250px", 'C - 10% revenue customers', datasetC);  this.donutC.setModel(analModel);  return this.buildLayout();  }
});
  • In folder paldemo create file index.html with the following contents
<html><head><meta http-equiv="X-UA-Compatible" content="IE=edge"><script src="/sap/ui5/1/resources/sap-ui-core.js" id="sap-ui-bootstrap"  data-sap-ui-libs="sap.ui.ux3,sap.ui.commons,sap.ui.table,sap.viz"  data-sap-ui-theme="sap_goldreflection"></script><script>  sap.ui.localResources("views");  var view = sap.ui.view({      id : "companies",      viewName : "views.partner_analysis",      type : sap.ui.core.mvc.ViewType.JS  });  view.placeAt("content");</script></head><body class="sapUiBody" role="application">      <div id="content"></div></body></html>


Step 7: Authorize users to access project's artifacts

In the paldemo project we created different artifacts like views, tables, and procedures. Business users who will analyse data, e.g. uses these artifacts have to be authorized to access them. This is done with the model_access.hdbrole file, described as follows.

  • Create folder paldemo\roles and file model_access.hdbrole with the following contents

role <your_package>.paldemo.roles::model_access {

  sql object <your_package>.paldemo:SO_CV.calculationview : SELECT;

  sql object <your_package>.paldemo.data::PAL_DEMO_TABLES.PAL_CONTROL_TBL,

  <your_package>.paldemo.data::PAL_DEMO_TABLES.PAL_ABC_RESULT_TBL : SELECT, INSERT, UPDATE, DELETE;

  catalog sql object "_SYS_AFL"."<your NEO_xxx schema>_PAL_ABC" : EXECUTE;

}

  • To apply changes use the Team -> Activate menu over the paldemo project. On the screenshot below you may see how the project should looks like.

paldemo_project.png

  • Grant model_access role to business/SCN user. In SQL console execute
CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('<your package>.paldemo.roles::model_access', '<any SCN user>')
Example:
CALL "HCP"."HCP_GRANT_ROLE_TO_USER"('p123456trial.sample.paldemo.roles::model_access', 'p789012')

 

Step 8: Running paldemo application

Now it's time to see PAL ABC analysis as business users. Open theSAP HANA Cloud Platform cockpitand open theHANA XS Applicationsmenu. Open applications ofsample trial instance. To see the actual application and the visualization of the application data open Application URL in your browser. Here is how the application looks like:

paldemo_xs_appl.png


(Optional) Delete the PAL wrapper procedure

Optionally, if you no longer need the wrapper procedure for the ABC Analysis function you can delete it by calling "HCP"."HCP_AFL_WRAPPER_ERASER" with the same name you passed when you were generating this wrapper.

CALL "HCP"."HCP_AFL_WRAPPER_ERASER"('PAL_ABC');

Note that if you recreate (delete/create) the same wrapper procedure, you have to reactivate model_access.hdbrole file, and execute the following procedure:

CALL "HCP"."HCP_SYNCHRONIZE_ROLES";

 

Summary

As a user of SAP HANA Cloud Platform you get immediate access to Predictive Analysis Library (PAL) without any installation and configuration. You can use it just as described in the PAL Documentation with some minor specifics described in the SAP HANA Cloud Platform Help.

 

 

Contributor:

Dobrinka Stefanova

Dimitar Tenev

 

Related Links

 

8 Easy Steps to Develop an XS application on the SAP HANA Cloud Platform

Click and Try Sample XS Applications on the SAP HANA Cloud Platform
Using HANA Modeler in the SAP HANA Cloud

Creating and using HANA native scripted calculation view in SAP HANA Cloud

Enhance Your Cloud Application with HANA Search


Using AFL BFL and PAL Hana library on Hana Cloud

$
0
0

Hello HANA Cloud team and developers,

 

Please let me know how can we use HANA DB on HANA cloud from with in our Java application for Analytic's.

We are already using HANA for persistence but now want to leverage the PAL capabilities are well.

 

From HANA documentation its clear that there are some steps that need to be followed in order to achieve this such as: creating AFL_WRAPPER_GENERATOR and generating a PAL Procedure etc.

On HANA Cloud how do we proceed to do this. Or is this available via JNDI or through some other stored procedure that cloud already provides and application can call. HANA Cloud documentation points nothing in this direction so I am clueless. Please help.

 

 

Thanks,

Dhaval

HANA Cloud Platform is NOT Vulnerable to Heartbleed

$
0
0

As there has been a lot of fuss around the recently announced Heartbleed vulnerability in OpenSSL we would like to inform you that HCP is not vulnerable to Heartbleed.

 

The internet connections can also be tested by open tools.

 

The OpenSSL version available on the OS images is not vulnerable. Therefore, even if your application uses OpenSSL it is safe if it uses the libraries provided by the platform.

 

Regards,

Svetoslav

how to launch asynchronous/background task

$
0
0

Hi all,

I'd like to launch a background/asynchronous task performing some logic.

I know that JEE6 includes the @asynchronous annotation for EJB 3.1 methods, but it's not supported in the EJB 3.1 Lite spec implemented.

In addition, the usage of JMS is not possible since HANA Cloud does not implement it.

 

How can I launch an asynchronous task?

Thanks and regards

Vincenzo

EJB Timer in SAP HANA

$
0
0

Hi,

 

I am trying to create an EJB Timer using the method mentioned in the following post.

 

http://scn.sap.com/community/developer-center/cloud-platform/blog/2013/02/14/scheduling-jobs-on-sap-netweaver-cloud-using-the-ejb-timer-service

 

Procedure:

 

1. First I am creating a simple servlet by following https://help.netweaver.ondemand.com/default.htm?creating_helloworld.html.

 

2. Then I am trying to create a timer by using EJB Timer Wizard (File > New > Other > EJB > EJB Timer) .

 

3. Now I am trying to inject this timer bean into servlet created in step 1 using @EJB annotation.

 

Below is the servlet code.

package timerServlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Date;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import timer.Sampletimer;
/**
 * Servlet implementation class Servlet
 */
@WebServlet("/")
public class Servlet extends HttpServlet {          @EJB          Sampletimer timerBean;          private static final long serialVersionUID = 1L;          private static HttpServletResponse resp;          public static HttpServletResponse getServletResp() {                    return resp;          }          /**           * @see HttpServlet#HttpServlet()           */          public Servlet() {                    super();                    // TODO Auto-generated constructor stub          }          /**           * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse           *      response)           */          protected void doGet(HttpServletRequest request,                              HttpServletResponse response) throws ServletException, IOException {                    Servlet.resp = response;                    PrintWriter page = new PrintWriter(response.getWriter());                    Date now = new Date();                    page.println(now.toString() + "Servlet Hello");                    page.println(now.toString() + timerBean.BeanHello());          }          /**           * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse           *      response)           */          protected void doPost(HttpServletRequest request,                              HttpServletResponse response) throws ServletException, IOException {                    // TODO Auto-generated method stub          }
}

 

And this is the bean code.

 

package timer;
import java.io.IOException;
import javax.ejb.Schedule;
import javax.ejb.Stateless;
import javax.ejb.Timer;
import javax.servlet.ServletException;
@Stateless
public class Sampletimer {          /**           * Default constructor.           */          public Sampletimer() {                    // TODO Auto-generated constructor stub          }          @Schedule(second = "*/2")          private void scheduledTimeout(final Timer t) throws ServletException,                              IOException {                    System.out.println("Timer Timed Out");          }          public String BeanHello() {                    return "Bean Hello";          }
}

 

With this code, I am not able to deploy the application in SAP HANA local server. Deployment is failing with the "application creation failed error".

 

Help required to make this work.

 

Regards,

 

Vishnu

What should i know to develop Cloud Applications

$
0
0

Hi Experts,

 

I have some experience in ABAP. I want to know about sap cloud technologies.

 

For this i have searched a lot on web, but i didn't find answers to my following questions.

 

1.What is SAP Cloud environment. ?

 

2.What we should know to become an SAP Cloud Expert.?

 

3.What kind of software i need to install to learn it?

 

4.What are pre requisites?

 

5.Any Books?

 

6.Can i learn it, in my stand alone system.?

 

7.Is only HANA is related to cloud ?

 

Thanks in Advance.

Regards,

Gajanand.

Viewing all 3285 articles
Browse latest View live


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