sap nwds as java,NWDS Troubleshooting

本文提供了针对SAP NetWeaver Developer Studio (NWDS)中出现的多种常见问题的解决方案,包括无法显示TableofContentsEngine、解决_java.lang.UnsupportedClassVersionError错误、因错误JDK而导致的构建失败、通过更新站点进行更新时遇到的问题以及添加ASJAVA服务器时的安全验证提示等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Table of Contents

Engine not displayed in preferences

Symptom:

AS Java Server is not visible from NWDS:

06b21d6f30d34907d2d5e82d1084a5d0.png

Answer:

Open DEFAULT.PFL file in /usr/sap/(SID)/SYS/profile and set service/protectedwebmethods to DEFAULT(from SDEFAULT) and then restart the engine.

Workaround:

In case you would face any problem when applying the above solution, then use the workaround:

in NWDS' menu go to Window -> Show View -> Other, and select the Management Console. Right click on SAP Systems, add system, and enter the hostname and instance number. A pop up will ask to enter an adm user and password, enter them both. Then go back to the Preferences, SAP AS Java screen and your system will be there.

Back to top .

How to solve _java.lang.UnsupportedClassVersionError in NWDS

Symptom: How to solve java.lang.UnsupportedClassVersionError: Bad version number in .class file provoked by a calling a WebDynpro app developed in NWDS EhP1 for CE 7.1?

Answer: Probably, the deployed class is Java 6 whereas WebAS is Java 5. Steps to solve the issue:NWDS -> Preferences -> Java -> Compiler -> "Compiler compliance level" has to be 5.0

Rebuild and redeploy and call the app.

If error still occours, NWDS may not use Java 5 JDK/JRE.Close NWDS.

Check if you have a Java folder jdk1.5.0_xx (jdk1.5.0_16 for example) and xx has to be >= 14. If you don't have such JDK version, please go to the official site http://java.sun.com/products/archive/and download and install the old version.

Way 1: Open \eclipse\SapNetweaverDeveloperStudio.ini and make sure that the parameter -vm points to a Java 5 installation. If not, change it accordingly.

Way 2: Rename all Java 6 folders (e.g. prefix "x") so NWDS can not find them any more. Restart the NWDS. NWDS shall complain about missing JDK/JRE and, depending on your version, may show the JDK/JRE-selection dialog like at very first startup after installation.

Start NWDS.

Rebuild and redeploy and call the app.

In case this does not work check the build configuration of the development trackOpen Development Infrastructure perspective

Select development configuration that you are using for development

In "Component Properties" view, open "Technology Specific" section.

Check that the JDK for local build is configured to JDK1.5.0_xx (jre may not work here)

Rebuild and redeploy and call the app.

Back to top .

NWDS build fails due to wrong JDK

Symptom:

Your build fails, and you can see in the build log:

javac compiler;

com.sun.tools.javac.Main is not on the classpath.

Perhaps JAVA_HOME does not point to the JDK

at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)

at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)

and

Error: Build stopped due to an error: Unable to find a javac compiler;

com.sun.tools.javac.Main is not on the classpath.

Perhaps JAVA_HOME does not point to the JDK

Error: Build stopped due to an error: Unable to find a javac compiler;

com.sun.tools.javac.Main is not on the classpath.

Perhaps JAVA_HOME does not point to the JDK

In your analysis JAVA_HOME is set up properly.

Answer: Most probably your NWDS is using JRE instead of JDK. Check the startup script in the properties of the NWDS icon on the desktop. Back to top .

Update via the Update Site is not possible

Symptom:

You installed NWDS >=71X and updaing it or setting the proxy is not possible due to the following errors.Error #1: you face when trying to ping the proxy from the preferences:

Could not connect to https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/nw/711/policy.xml.Error #2 when you try to "Help - Software Updates - Find and Install...":

Error parsing site stream. [Premature end of file.]

Answer: You need to set up the proxy properly, the update site uses SSL, see the image:

fa73c8500cc5bf004bf3e1b9329e7629.png

Authentication popup appearing when adding AS JAVA server in NWDS

Symptom:

You are in NWDS – Window – Preferences – SAP AS JAVA

When the details of the server are entered the user is prompted to enter OS user id and password. The developer does not have this information and will not be provided this information.

7d15a2baee59069f0f8e67cc0e2db5ab.png

Answer:

SAP provides a lot of security features and one of them is to restrict the access to the provided web methods from SAPControl web service. The change in NW 7.3 EHP 1 is that by default almost all of the provided web methods are restricted (authorization is required). It is done in the profile file with changed value DEFAULT to SDEFAULT for parameter:

service/protectedwebmethods. To resolve the problem the corresponding webmethod must be revoked from the restricted list as per this note suggests:

Setting share point for the NWDS workspace not allowed

Symptom:

You specified a share for workspace in the NWDS shortcut icon

Example: „...--data \\myserver\myworkspace..."

Answer:

This is not supported, only local space definition is allowed.

Example: „...--data C:\myserver\myworkspace..."

Else among the many many side-effects you will face massive performance issues as well. Back to top .

Can not add AS JAVA server in NWDS

Symptom:

You are in NWDS–Window–Preferences–SAP AS JAVAWhen adding AS Java server the following popup appears on the screen:

a7f31b5e65bdf0afd8805e86f161f141.png

Answer:

First you should verify you use the correct instance number.

If the instance number is correct the 3. solution of the KBA 1439348 (Restrict network access) can help.Verify the ACL list is set correctly (if it includes your System.) If you change the list you must restart the affected service sapstartsrv.

Back to

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值