Friday, September 6, 2013

SAP NETWEAVER MII Applet Problem

Due to my custom action SAP Netweaver MII Workbench would not load on my computer. Tried different JRE Versions up to no use. 
The exception was: java.security.AccessControlException

Since the custom action is not signed, it could most probably have been because of that.
Nevertheless the issue was resolved by editing/creating java.policy file in JRE/lib/security directory with this content:
grant {
permission java.security.AllPermission;
};

Note: With this all the you give the applets to do whatever they wish. So be careful.


Another issue that came up was a duplicate class file that existed. Clearing out the cache and not storing the cache resolved it.

Thursday, August 22, 2013

Android - Sending packets

I have always suspected my phone communicating without my knowledge. Sometimes, it is pretty obvious that large amount of data is being transferred other times a little bit of hellos.

Since I do not synchronize my phone online, or automatically check for updates, this is kind of worrying.

Installing some apps to monitor data usage did not help much as it only showed which apps have consumed how much of the data. What I want is which app is sending out and downloading data.

tPacketCapture is one app that was a bit of a help allowing to capture data flowing through my phone just like wireshark.
I stopped pretty much all the applications that I knew had to communicate with their servers, such as viber, whatsapp and facebook etc and captured some data for about 15 minutes.


I found out that my phone is receiving packets intended for other systems, just like a computer would.

It is also communicating with an ip 74.125.136.101 (Google) exchanging ACK and FIN packets over HTTPS.

There was data going through TSLV1 protocol to 173.194.79.221 (to Google).


At another time logging packets, that is without turning off all the apps on my phone, showed







Data over HTTPS to Google on these ip addresses
 - 173.194.65.94
 - 173.194.65.120
 - 173.194.65.95 - TSLV1 protocol - Application Data
 - 74.125.136.101
 - 74.125.136.103
 - 74.125.136.188

TCP Hpvroom data with Google:
 - 175.158.4.76
 - 175.158.4.78

 Data sent to 175.158.4.76 (NAVER - South Korea, because of the app LINE) I have uninstalled LINE since there was no way of closing it and the app would start on its own once "Force Stopped".

I yet have to find what data is being shared with Google and why.

Friday, May 31, 2013

Using Web Service action in SAP MII

Drag the web service action block on to a sequence in MII transaction.

Configure the object and must use the wizard. Configure links should not be used.

Provide the wsdl url press next.

If the wizard hangs / blocks / stops / does not respond, it could be an issue with your java. The web service action does not work with Java 7, so run it on java 6.

Java SE Runtime Environment 6 Update 43 or Java SE Development Kit 6 Update 43


http://scn.sap.com/thread/3327443



Click next to select a port from the Port list taken from WSDL.


Click next to select an operation from a list with operations taken from the WSDL.

Click finish to save the configuration.


Now you can open the properties of the web service action in the link editor and set the payload data.

Wednesday, May 29, 2013

JNDI Resources in NetWeaver

Login to Netweaver Administrator

Create a database resource:
Go to Configuration Management > Infrastructure > Application Resources
 Create a JDBC resource for a database in Microsoft SQL Server


Check your resource is available in JNDI:

Go to Troubleshooting and JNDI Browser:



In your Spring application access the JNDI as:

<jee:jndi-lookup id="dataSource" jndi-name="<Object Name as shown in the picture>"  resource-ref="true" expected-type="javax.sql.DataSource" />

Export as war convert to sda, using \usr\sap\MII\J01\j2ee\deployment\scripts\make_SDA.bat command.

Deploy java application in Telnet.

Access your application: http://<nwa ip>:<nwa port>/<sda name>

Go to nwa > troubleshooting > log viewer for any errors/warnings.
Logs are available on file system at: usr\sap\MII\J01\j2ee\cluster\server0\log


Deploy/Undeploy a Java Application (SDA) from SAP NetWeaver

Undeploy an application

Check the name and vendor of your application that you want to undeploy. Goto SAP NetWeaver Administrator interface:
http://ip:port/nwa
Operations > Systems > Start and Stop



Goto Java Applications and look for the application you want to undeploy, note the name and vendor.


Telnet into SAP AS and login.

> lsc
To list the available server nodes.

> jump <server node> (usually jump 0)
Jumps to the server

> add deploy

> undeploy name=<name of the application> vendor=<vendor> on_undeploy_error=stop


To deploy an SDA

use the command deploy:
>deploy c:\sdafiles\mysda.sda

On the file system you deployed applications will normally reside in:

\usr\sap\MII\J01\j2ee\cluster\apps\JavaEE