Java 1.5 autoboxing and conversion
Hi,
What is the correct cast sequence for this.
Short s;
Integer i = 8;
s = (short)(int) i;
This works, but seems somewhat ackward. Any better?
-- Kasper
What is the correct cast sequence for this.
Short s;
Integer i = 8;
s = (short)(int) i;
This works ...That code will not compile.
with 'Tiger' the autoboxing will allow you to
go stright from an Integer to a short. I don't think so.
short s;
Integer i = new Integer(8);
s = i;This code doesn't compile with 1.5.
Similar Messages
-
Java Add-in or unicode conversion first?
Hi all.
I have just performed a BW 3.5 (NW 6.40) to BI 7.0 (NW 7.0) NON-unicode upgrade. The next two things we want to do are unicode conversion and java add-in installation.
I am wondering which of these actions should come first; Java add-in or unicode conversion?
Any thought on this?
Regards,
ThomasIt´s pretty straighforward using the sapinst.
Make sure you patch up the AddIn to the same patchlevel your ABAP is running on (means,if you BIND support package 13 to the upgrade, upgrade the Java engine to SP13 as well after installation).
Personal opinion:
If we have the choice we don´t use the Java Addin but install the Java part on a separate system. The Addin adds more complexity and dependency to the system. On top of that it makes memory configuration and predictability of sizing very difficult.
This is - however - my personal opinion, this may or may not be true for your environment.
Markus -
Why Java not allowed Widening and auto-boxing in single expression?
Hi All,
I have a very small question in my mind, that I would like to put on this discussion board.
Why Java not allowed Widening and auto-boxing in single expression?
Like:
short s = 10;
Long l = s;I want to know if java allowed above expression then what problem may occur?
I know it is not a intelligent question, However still I ask for discussion.
Thanks advance for all viewer of this question.JoachimSauer wrote:
jverd wrote:
I didn't like it at first, but it turns out my initial complaints were pretty much unfounded. I find it quite useful. It takes a fair amount of clutter out of code. The only real problem with it is that if you're not careful, you can end up doing a lot of unnecessary bouncing back and forth between primitives and wrappers without knowing it, which could hurt performance.In my opinion the biggest problem is getting NPEs at code lines, that look completely harmless. That used to bother me too, but then, if I'm writing
int i = getAnInteger();it's just a replacement for
int i = getAnInteger().intValue();which would also have caused NPE.
That is, if I'm using autoboxing properly, it's just shorthand for what I'd have been doing otherwise anyway. True, it's easy to not think about it, to forget to consider whether NPE is a possibility and what the proper approach is, but mostly, if I want int, I know it can't be null (or if it is, I should get NPE).
And when it comes time to debug the NPE, it's no great mystery, once you know the rules.
If you don't think of autoboxing at the right position, then you can spend hours after hours tracking down a trivial bug ... or so I've heard ;-)Even if you're not thinking about it when you write the code, when you see an "impossible" NPE during debugging, it should be an instant giveaway. -
hello all,
the new java autoboxing and unboxing feature says when using autoboxing unboxing
The performance of the resulting list is likely to be poor, as it boxes or unboxes on every get or set operation. It is plenty fast enough for occasional use, but it would be folly to use it in a performance critical inner loop.
taken from http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html
is doing it myself in my code faster than using the auto features.
in other words is it faster for me to Integer i = new Integer(5);
or let java do it automatically or would it be the same
thanksI would guess it would be the same. But if I seriously needed to know that I would find out for myself by writing a small program to time it. I wouldn't write that program unless it was demonstrated that the code in question (either version) was taking a large amount of runtime. Or if it was a homework assignment that I had to find out the answer to.
-
Java 7 installed today and now I can't open any web page in FF!!
I downloaded JAVA 7 today and now my mozilla will barely open any pages especially youtube and google! I have uninstalled Java rebooted the PC and still the problem persists! I don't like to use Chrome or any other browser for obvious reasons. Please can you help me?
are you getting any error?
Start Firefox in [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Safe Mode to Troubleshoot the issue] and to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
* https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Problem in SAP WAS Java 6.40 SP9 and MaxDB 7.5 Preview installation
I am trying to install SAP WAS Java 6.40 SP9 and MaxDB 7.5 I have received the following error.
Can somebody help me to resolve this.
Thanks
kishor
SAPinst is getting started.
Please be patient ...
guiengine: no GUI connected; waiting for a connection on host DB6D1T61, port 21212 to continue with the installation
guiengine: login in process.
INFO 2005-05-29 16:01:09 [syxxcfile.cpp:325]
CSyFileImpl::copy(const CSyPath & q0w9e9r8t7.1.xml, ISyNode::eCopyMode 3, ISyProgressObserver*) const
Copying file C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.xml to: q0w9e9r8t7.1.xml.
INFO 2005-05-29 16:01:09 [syxxcfile.cpp:446]
CSyFileImpl::copy(const CSyPath & q0w9e9r8t7.1.xml, ISyNode::eCopyMode 3, ISyProgressObserver*) const
Copying file C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.xml to: q0w9e9r8t7.1.xml.
INFO 2005-05-29 16:01:09 [synxcpath.cpp:834]
CSyPath::createFile()
Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\q0w9e9r8t7.1.xml.
INFO 2005-05-29 16:01:10 [syxxcfile.cpp:325]
CSyFileImpl::copy(const CSyPath & C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.1.xml, ISyNode::eCopyMode 3, ISyProgressObserver*) const
Copying file C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.xml to: C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.1.xml.
INFO 2005-05-29 16:01:10 [syxxcfile.cpp:446]
CSyFileImpl::copy(const CSyPath & C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.1.xml, ISyNode::eCopyMode 3, ISyProgressObserver*) const
Copying file C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.xml to: C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/keydb.1.xml.
INFO 2005-05-29 16:01:10 [synxcpath.cpp:834]
CSyPath::createFile()
Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\keydb.1.xml.
INFO 2005-05-29 16:01:11 [ianxbusprv.cpp:337]
CIaNtUserPrivileges::add_impl(., DB6D1T61\Kishor Kolhe, SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeIncreaseQuotaPrivilege)
Successfully added privileges 'SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeIncreaseQuotaPrivilege' to account 'DB6D1T61\Kishor Kolhe' on host '.'.
INFO 2005-05-29 16:01:15 [synxcpath.cpp:834]
CSyPath::createFile()
Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\summary.html.
PHASE 2005-05-29 16:01:15 [iaxxcwalker.cpp:416]
CDomWalker::printPhaseInfo()
Prepare the installation program.
INFO 2005-05-29 16:01:20 [iaxxcwalker.cpp:59]
CDomWalker::walk()
Installation start: Sunday, 29 May 2005, 16:01:07; installation directory: C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST; product to be installed: SAP NetWeaver '04 Support Release 1> Java System> MaxDB> Central System> Custom Installation - Java System
INFO[E] 2005-05-29 16:01:22 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO 2005-05-29 16:01:22
CJSlibModule::writeInfo_impl()
Looking for SAP system instances installed on this host...
INFO 2005-05-29 16:01:22
CJSlibModule::writeInfo_impl()
No installed instances found!
INFO 2005-05-29 16:01:22
CJSlibModule::writeInfo_impl()
DNS is configured correctly.
INFO[E] 2005-05-29 16:01:23 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO 2005-05-29 16:01:45 [syxxcfile.cpp:325]
CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const
Copying file C:/WAS6.4J2EE_NEW/WebAS/J2EE_OSINDEP/JDKVersion.xml to: ..
INFO 2005-05-29 16:01:45 [syxxcfile.cpp:446]
CSyFileImpl::copy(const CSyPath & ., ISyNode::eCopyMode 3, ISyProgressObserver*) const
Copying file C:/WAS6.4J2EE_NEW/WebAS/J2EE_OSINDEP/JDKVersion.xml to: ..
INFO 2005-05-29 16:01:45 [synxcpath.cpp:834]
CSyPath::createFile()
Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\JDKVersion.xml.
INFO[E] 2005-05-29 16:01:45 [syxxccuren.hpp:189]
CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)
Unable to get value for environment variable JAVA_HOME.
INFO 2005-05-29 16:01:46
CJSlibModule::writeInfo_impl()
Execution of the command "C:/j2sdk1.4.2_08/bin/java.exe '-version'" finished with return code 0. Output:
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
INFO 2005-05-29 16:01:47
CJSlibModule::writeInfo_impl()
Execution of the command "C:/j2sdk1.4.2_08/bin/java.exe '-classpath' 'C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/ins-j2ee.jar;C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/sapxmltoolkit.jar' 'com.sap.ins.j2ee.TestClassLoader'" finished with return code 0. Output:
CORRECT
INFO 2005-05-29 16:01:47
CJSlibModule::writeInfo_impl()
Directory C:/WINDOWS is not a valid JDK directory: the java executable is missing.
INFO 2005-05-29 16:01:47
CJSlibModule::writeInfo_impl()
Found a valid JAVA_HOME directory C:\j2sdk1.4.2_08 with JDK version 1.4.2_08.
INFO 2005-05-29 16:01:48
CJSlibModule::writeInfo_impl()
Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-version'" finished with return code 0. Output:
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
INFO 2005-05-29 16:01:50
CJSlibModule::writeInfo_impl()
Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-version'" finished with return code 0. Output:
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
INFO 2005-05-29 16:01:50
CJSlibModule::writeInfo_impl()
Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-classpath' 'C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/ins-j2ee.jar;C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/sapxmltoolkit.jar' 'com.sap.ins.j2ee.TestClassLoader'" finished with return code 0. Output:
CORRECT
INFO 2005-05-29 16:01:50 [synxcpath.cpp:865]
CSyPath::createDirectory()
Creating directory C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck.
INFO[E] 2005-05-29 16:01:50 [syxxccuren.hpp:189]
CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)
Unable to get value for environment variable JAVA_HOME.
INFO 2005-05-29 16:01:50 [syxxccuren.hpp:347]
CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
Working directory changed to C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/jdkPolicyCheck.
INFO 2005-05-29 16:01:50 [syxxccuren.hpp:347]
CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
Working directory changed to C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST.
INFO 2005-05-29 16:01:50 [synxcpath.cpp:834]
CSyPath::createFile()
Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\local_policy.log.
INFO 2005-05-29 16:01:50
CJSlibModule::writeInfo_impl()
Output of C:\j2sdk1.4.2_08/bin/jar.exe is written to the logfile local_policy.log.
INFO 2005-05-29 16:01:50
CJSlibModule::writeInfo_impl()
Output of C:\j2sdk1.4.2_08/bin/jar.exe 'xvf' 'C:/j2sdk1.4.2_08/jre/lib/security/local_policy.jar':
INFO[E] 2005-05-29 16:01:50 [syxxccuren.hpp:189]
CSyCurrentProcessEnvironmentImpl::getEnvironmentVariable(iastring)
Unable to get value for environment variable JAVA_HOME.
INFO 2005-05-29 16:01:50 [syxxccuren.hpp:347]
CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
Working directory changed to C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/jdkPolicyCheck.
INFO 2005-05-29 16:01:50 [syxxccuren.hpp:347]
CSyCurrentProcessEnvironmentImpl::setWorkingDirectory(iastring)
Working directory changed to C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST.
INFO 2005-05-29 16:01:51 [synxcpath.cpp:834]
CSyPath::createFile()
Creating file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\US_export_policy.log.
INFO 2005-05-29 16:01:51
CJSlibModule::writeInfo_impl()
Output of C:\j2sdk1.4.2_08/bin/jar.exe is written to the logfile US_export_policy.log.
INFO 2005-05-29 16:01:51
CJSlibModule::writeInfo_impl()
Output of C:\j2sdk1.4.2_08/bin/jar.exe 'xvf' 'C:/j2sdk1.4.2_08/jre/lib/security/US_export_policy.jar':
INFO 2005-05-29 16:01:51 [synxcfile.cpp:152]
CSyFileImpl::remove()
Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\default_local.policy.
INFO 2005-05-29 16:01:51 [synxcfile.cpp:152]
CSyFileImpl::remove()
Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\default_US_export.policy.
INFO 2005-05-29 16:01:51 [synxcfile.cpp:152]
CSyFileImpl::remove()
Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\exempt_local.policy.
INFO 2005-05-29 16:01:51 [synxcfile.cpp:152]
CSyFileImpl::remove()
Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\META-INF\JCE_RSA.RSA.
INFO 2005-05-29 16:01:51 [synxcfile.cpp:152]
CSyFileImpl::remove()
Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\META-INF\JCE_RSA.SF.
INFO 2005-05-29 16:01:51 [synxcfile.cpp:152]
CSyFileImpl::remove()
Removing file C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_JAVA\CENTRAL\ONE_HOST\jdkPolicyCheck\META-INF\MANIFEST.MF.
INFO 2005-05-29 16:01:51 [synxcdir.cpp:144]
CSyDirectoryImpl::remove()
Removing directory C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/jdkPolicyCheck/META-INF.
INFO 2005-05-29 16:01:51 [synxcdir.cpp:144]
CSyDirectoryImpl::remove()
Removing directory C:/Program Files/sapinst_instdir/NW04SR1/WEBAS_JAVA/CENTRAL/ONE_HOST/jdkPolicyCheck.
INFO[E] 2005-05-29 16:01:58 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="j2eadm" does not exist.
INFO[E] 2005-05-29 16:02:05 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO[E] 2005-05-29 16:02:09 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\j2eadm" does not exist.
INFO[E] 2005-05-29 16:02:14 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\SAPServiceJ2E" does not exist.
INFO[E] 2005-05-29 16:02:26 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO[E] 2005-05-29 16:02:37 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\j2eadm" does not exist.
INFO[E] 2005-05-29 16:02:42 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\SAPServiceJ2E" does not exist.
INFO[E] 2005-05-29 16:02:42 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO[E] 2005-05-29 16:02:42 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO[E] 2005-05-29 16:02:47 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\j2eadm" does not exist.
INFO[E] 2005-05-29 16:02:51 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\j2eadm" does not exist.
INFO[E] 2005-05-29 16:02:58 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\SAPServiceJ2E" does not exist.
INFO[E] 2005-05-29 16:03:03 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\SAPServiceJ2E" does not exist.
INFO[E] 2005-05-29 16:03:05 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO 2005-05-29 16:03:05
CJSlibModule::writeInfo_impl()
Looking for SAP system instances installed on this host...
INFO 2005-05-29 16:03:05
CJSlibModule::writeInfo_impl()
No installed instances found!
INFO[E] 2005-05-29 16:03:06 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
WARNING[E] 2005-05-29 16:03:06 [syxxcnamrs.cpp:128]
PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
INFO[E] 2005-05-29 16:03:08 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
WARNING[E] 2005-05-29 16:03:08 [syxxcnamrs.cpp:337]
PSyServicesEntry CSyIPNameResolverImpl::getServiceByPort(const unsigned int portNumber, const iastring& protocol) const
Error converting from port number=3601/protocol=tcp to service names. SAPRETURN=12
WARNING[E] 2005-05-29 16:03:09 [syxxcnamrs.cpp:128]
PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
Error converting from service name=sapmsJ2E/protocol=tcp to port number. SAPRETURN=12
INFO[E] 2005-05-29 16:03:09 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO[E] 2005-05-29 16:03:11 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO[E] 2005-05-29 16:03:41 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO[E] 2005-05-29 16:03:45 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO 2005-05-29 16:03:46
CJSlibModule::writeInfo_impl()
Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-version'" finished with return code 0. Output:
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
INFO 2005-05-29 16:03:46
CJSlibModule::writeInfo_impl()
Execution of the command "C:\j2sdk1.4.2_08/bin/java.exe '-classpath' 'C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/ins-j2ee.jar;C:/DOCUME1/KISHOR1/LOCALS1/Temp/sapinst_exe.3360.1117396809/JAR/sapxmltoolkit.jar' 'com.sap.ins.j2ee.TestClassLoader'" finished with return code 0. Output:
CORRECT
INFO[E] 2005-05-29 16:03:47 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
INFO[E] 2005-05-29 16:03:51 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\j2eadm" does not exist.
INFO[E] 2005-05-29 16:03:56 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\j2eadm" does not exist.
INFO[E] 2005-05-29 16:04:03 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\SAPServiceJ2E" does not exist.
INFO[E] 2005-05-29 16:04:07 [synxcuser.cpp:102]
CSyUserImpl::CSyUserImpl(const CUserData&, bool)
Account user="DB6D1T61\SAPServiceJ2E" does not exist.
INFO 2005-05-29 16:04:10
CJSlibModule::writeInfo_impl()
Looking for SAP system instances installed on this host...
INFO 2005-05-29 16:04:11
CJSlibModule::writeInfo_impl()
Found these instances:
sid: J2E, number: 01, name: SCS01, host: DB6D1T61
INFO[E] 2005-05-29 16:04:13 [synxcfsmgt.cpp:132]
CSyFileSystemMgtImpl::getFSExport(iastring)
File system export (share) saploc does not exist.
ERROR 2005-05-29 16:04:42 [iaxxinscbk.cpp:289]
abortInstallation
MDB-070021 Registry information for database software found in system but the software check failed. The software was not properly removed or installed incorrectly.
WARNING 2005-05-29 16:04:42 [iaxxccntrl.cpp:477]
CController::stepExecuted()
The step Validate_Sapdb_System with step key J2EE_EngineEnterprise_OneHost|ind|ind|ind|WebAS|630|0|J2EE_EngineEnterpriseDialogs|ind|ind|ind|WebAS|630|0|J2EE_Engine|ind|ind|ind|J2EE_Engine|630|0|J2EE_Engine_SAPDB_Client|ind|ind|ind|ind|ind|0|SAPDB_DB_SOFTWARE|ind|ind|ind|ind|ind|0|Validate_Sapdb_System was executed with status ERROR.
SAPinst component stack:
========================
Preinstall|ind|ind|ind|ind|ind|0
Current script:
===============
sapdb_validate_system();
WARNING 2005-05-29 16:04:45 [iaxxcsihlp.hpp:250]
main()
An error occurred during the installation.
Exit status of child: 1Have you found a fix for your problem? I am having the same with a JAVA install on ORACLE:
WARNING[E] 2005-11-02 18:46:34 [syxxcnamrs.cpp:128]
PSyServicesEntry CSyIPNameResolverImpl::getServiceByName(const iastring& serviceName, const iastring& protocol) const
Error converting from service name=sapmsQP2/protocol=tcp to port number. SAPRETURN=12 -
Java mapping for Remove and Add of DOCTYPE Tag
HI All,
i have one issue while the Java mapping for Remove and Add of DOCTYPE Tag in Operation Mapping .
it says that , while am testing in Configuration Test " Problem while determining receivers using interface mapping: Error while determining root tag of XML"
Receiver Determination...
error in SXMB MOni
" SAP:Category>XIServer</SAP:Category>
<SAP:Code area="RCVR_DETERMINATION">CX_RD_PLSRV</SAP:Code>
<SAP:P1>Problem while determining receivers using interface mapping: Error while determining root tag of XML: '<!--' or '<![CDATA[' expected</SAP:P1>
plz provide solutions
Thanks in advance.Hi Mahesh,
I understand, you are using extended Receiver Determination using Operational Mapping (which has Java Mapping). And, there is an error message u201CError while determining root tag of XMLu201D, when you are doing configuration test.
Can you please test, the Operational Mapping (which has Java Mapping) separately in ESR, with payload which is coming now. It should produce a XML something like this [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/48/ce53aea0d7154ee10000000a421937/frameset.htm]
<Receivers>
<Receiver>
<Party agency="016" scheme="DUNS">123456789</Party>
<Service>MyService</Service>
</Receiver>
<Receiver>
<Party agency="http://sap.com/xi/XI" scheme="XIParty"></Party>
<Service>ABC_200</Service>
</Receiver>
</Receivers>
If it is not (I Think it will not), then there is some problem in Java Mapping coding. Please correct it. Last option, if your Java code is small in length; you may paste it here, so that we can have a look at the cause of issue.
Regards,
Raghu_Vamsee -
Java 1.5 JNI and C++ exception
Hello, All
I've troubles with handling C++ exceptions using JNI and shared library. I'm using Java 1.5_06, RedHat 7.3 and JBoss 4.0.5
From Java class I call JNI a method in my shared library(libx.so) which calls a method in other shared library(liby.so). Liby.so uses Xerces library. During parsing process an exception occurs. But according to Xerces sources it's a normal behavior and should be caught. But instead I've got SIGNABRT in JVM and a core dump will created. What's wrong? Backtrace shows similar something:
XXXXX __default_terminate() ....
XXXXX __terminate() ....
XXXXX __throws
XXXXX C++ method ..
XXXXX.....
XXXXX.....
XXXXX JNI methodI found similar bugs reports in the forum. But they says about Java 1.4 version and according to bugs descriptions it should be already fixed.
Message was edited by:
kostik78The question is closed. The root cause was incorrect building of shared library.
-
PI 7.31 Java only stack (PI and Orchestration package) post installation
Hi,
Recently we installed PI 7.31 server, i searched in sdn but i couldn't get any post installation steps.
Could you please provide PI 7.31 Java only stack (PI and Orchestration package) post installation steps.
Thanks,
Venkata RameshHI Venkata Ramesh,
Ref: UPGRADE TO SAP NETWEAVER PROCESS INTEGRATION 7.3
http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/505374f4-9cbe-2e10-a6b9-c74a22924d26
Regards, -
How to remove Java Applications from "Add and Remove Programs" list?
I have deployed my Java applications (both JWS and Applet) via JNLP with allow-offline option enabled and without installer-desc option specified.
My questions are:
1. An entry is added to the Add and Remove Programs list after launching the application via JNLP. Is it due to the specification of JNLP or JWS? Is there anyway to prevent this behavior?
2. I removed my application by clearing the cache via Java Control Panel but the entry for the application is still listed in Add and Remove Programs. How can I remove the entry in the Add and Remove Programs?
I have tried following methods but neither works:
1.Go to Add and Remove Programs, and click [remove] button to the right of my application.
*Warning message like 'Application cannot be uninstalled completely' is thrown.
2.Follow instructions listed @ [Microsoft Online Support site|http://support.microsoft.com/kb/314481/en-us] to remove my application manually via Windows registry.
*Couldn't find appropriate registry entry to delete.
Thanks in advance!Hi, guys!
This issue has been officially approved as a new bug (Bug Id: 6946221) for the JDK 1.6_20(might include any release below) release.
It will take a couple of days for it to be shown up in the external Bug database. However, once it becomes available for viewing on external Bug database.I would like to encourage your valuable participation to vote on this bug to get it fixed ASAP by the SUN developer teams.
Java Bug Database @
[http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6946221|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6946221]
Voting for the bug @
[http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6946221|http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6946221]
Thank you for your cooperation!
Edited by: Jay-K on Apr 23, 2010 12:14 AM -
Installed Java update three days ago. Now, can't play yahoo games as it's now blocked by security settings. Already have tried moving Java security to Medium and adding yahoo.games.com (including web address of game) as a "Permissive exception". Also tried removing java and installing older version. Still nothing. Really Apple?!? What's your beef with yahoo games?
csnorth,
all of the older update versions of Java SE 7 can be found here. If 7u45 also didn’t work with your Yahoo! games, you can choose from any of the even older versions there as well. -
I heard there was a security breach in Java installed in Macs and that there is a patch to fix it, but that's all I know. Does anyone know how to fix it?
There isn't a patch for a computer running Leopard .
Leopard and earlier users see recommendations at: https://discussions.apple.com/thread/3872491 -
Java classes in Jar and Cab files
Hello all,
Our product supply java classes in Jar and Cab files that the browser downloads each time.
The files are big and it takes a long time.
Do you know of a way to make the cab/jar files be copied in to the user computer and that the browser would know to download files again only if there is a new version (otherwise take it from the local computer)
Please help me
TamgI think I've seen an option for this with manifest files (or was it something that had to do with the java plug-in). There was something about the version and only download a new version if it was newer than the one on your local computer. This version thing is something you define in the manifest file at least. Take a look at jar and manifest files, there might be something there.
-
InterMedia Java Classes for Servlets and JSPs and Netscape
I am using the interMedia Java Classes for Servlets and JSPs to upload and retrieve multimedia data. I have found that it is much more performant in Internet Explorer (5.5) than in Netscape Communicator (4.7). In fact, I cannot upload images larger than 10K at all using netscape. However, the same image can be uploaded into the same application using IE. Is this a known issue?
Thanks in advance.Hi,
We have successfully uploaded multimedia data in the giga-byte range (Quicktime and AVI files) at the same speed with both the Netscape (4.7n) and MS IE (4.n and 5.n) browsers. One thing we have noticed is that its very important to set the manual proxy settings correctly if you have an environment with a proxy server. If you don't, then uploads can go via the proxy server and, for some reason, that seems to take considerably longer. For example, suppose you are in the www.xyzco.com domain and are connecting to a host named webserver.www.xyzco.com, then specify webserver and webserver.www.xyzco.com (to cover both cases) in the "Do not use proxy servers for..." box in the manual proxy server configuration screen. Also, if you're using a tool such as JDeveloper that uses the host IP address in the debugger environment, then you also need to add the numeric-based (nnn.nnn.nnn.nnn) IP address to this list.
Hope this helps.
In order to better understand the variety of ways in which our customers are using interMedia, we'd be very interested in knowing a little more about your application, the interMedia functionality that you are using, and how you are developing and deploying your application. If you are able to help us, please send a short email message with some information about your application, together with any comments you may have, to the Oracle interMedia Product Manager, Joe Mauro, at [email protected] Thank you!
Regards,
Simon
null -
What is Java Applet 1.0, and why does it launch when I do an applet action?
When I go to http://www.chemaxon.com/marvin/sketch/index.php with Safari 5.1.7 on MacOS 10.6.8, an applet launches. If I then click and hold on one of the toolbars of this applet and drag to the left, the toolbar is supposed to detach. Instead, my computer launches a program called Java Applet 1.0, and a blank rectangle appears where the toolbar is supposed to be, but no buttons appear in the toolbar. The program Java Applet 1.0 does not appear to have any functions associated with it; if I click on its icon in my dock, the blank toolbar comes to he foreground, but nothing else happens. If I quit Java Applet 1.0, the original applet quits as well. A separate instance of Java Applet 1.0 launches for each browser that I use to go to http://www.chemaxon.com/marvin/sketch/index.php.
So my question is, what is the purpose of Java Applet 1.0? Is Java Applet 1.0 launching because there is a bug in the applet, or is a bug in Java Applet 1.0 causing the applet to misfire?I don't know this action, specifically, but such a message often means an action step has tried to do an activity that was successfully recorded with an image that has different attributes, e.g., RGB vs Grayscale, or maybe a different bit depth or other modal difference. It's also possible you have a non-image layer selected when you're running the action.
-Noel
Maybe you are looking for
-
I put "levelwidget" on the dashboard - it is supposed to make a macbook into a Level. Sounded interesting...now I regret! The widget is corrupted and now when I try to open the dashboard it immediately closes and gives me an error message "you can't
-
External Hard Drives and Fonts -- Help!
I run a Mac OSX laptop, with Boot Camp to run Windows XP Pro. I recently decided to dabble in Photoshop again (trying to design fun wedding invitations). I have Photoshop CS2 for Windows which runs perfectly on my external hard drive. The problem tha
-
Who wants to be a billionaire ?
Im busy desinging a game...Who Wants To Be A Billionaire...but could someone explain why the following won't draw the Round Rectangles that i ask to be drawn... // Main Application Class import java.awt.*; import BuildCanvas.*; public class User publ
-
Header in ALV print (no OO)
Hi friends! I need some help. I made an ALV using function (not OO). IN screen everything is fine, inclusive header with logo, but when I send it to printer, all header don't print! Why my header don't get printed? Thanks for any help!
-
I create animations at 30 fps. When I put them in FCE HD the last frame is left out or black. I need to set the frame rate to 30 fps instead of the default 29.97 or maybe use non-drop fame setting. I am not sure which will work. How do I reset the fr