Unable to load vm properties (instance.properties.vmprop)
Hi Expert,
in our DAA agent error log, it unable to load the vm properties from the usr\sap\SID\J00\j2ee\cluster\instance.properties.vmprop . Any clues on this?
Hi Raymond,
Is this error occuring in Managed system DAA agent log ? Is the Managed System SAP Netweaver 7.31 ?
If yes then please check below SAP Note :
1904282 - Error "Failed to load vm properties" for Netweaver 7.31 system in Diagnostics Agent's log
Hope this helps.
Thanks & Regards,
Similar Messages
-
Why "instance.properties.vmprop" is re-created again and again?
We are in JDK j2sdk1.4.2_17-x64.
We deleted instance.properties.vmprop per the guide.
However, whenever the SAP is -restarted, above "instance.properties.vmprop" is re-created
immediately.
We cannot start JAVA and the error is "cannot find jvmx.jar".
Are they from the same issue?
Thanks!Hi,
Could you please post details about how this problem started appearing and which guide you followed? Also please post detailed trace file.
However, whenever the SAP is -restarted, above "instance.properties.vmprop" is re-created
immediately.
It is normal file is re-created automatically.
Please find attached thread containing similar problem.
[SMD instance in BI 7.0 is not coming up;
Hope this helps.
Manoj -
Difference between(Usage) instance.properties and bootstrap.properties
Hi every one,
Might be the basic Q but unable to locate the exact forum for the same.
What is the usage/diff between instance.properties and bootstrap.properties and instance.properties.vmprop and instance.properties.vmprop.XX
Thanks in advance.Hello,
Instance.properties contain all the values which you set in the config tool for memory parameters . This file is created every time when the J2EE engine is started . The information which stored in DB is written into this file and placed on the server at the cluster directory .
bootstrap.properties contains all the basic j2ee profile parametrs whicha re needed for the server process to start .
the vmprop.xx file is also used for keeping a record of the memory parametrs .
Thanks -
[Help] Search Instance Properties Setup in PT8.52 for SES integration
Hello,
I've got an issue for the Search Instance Properties to integrated with SES in PeopleTools 8.52. Here's the Scenario of my testing environment:
I've installed 2 VM on VMWare soft as following:
*1.* a.mydomain.com - using NAT as the VMWare NIC protocal, Microsoft Windows 2008 R2 with DNS & Active Domain Controller installed, PT8.52.06 with FSCM 9.1 FP2 installed (all Database server, App Server, Batch Server, Web Server, File Server in one box) - PIA working fine
*2.* b.mydomain.com - using NAT as the VMWare NIC protocal, Microsoft Windows 2008 R2 as memeber of the mydomain.com, the SES installed and the SES is working fine.
Below is what the check list I've gone so far to following the Search Framework setup:
Then I followed the instructions from PT8.52 installation guide for Oracle, Chapter 11. For the check list prior to the implementing the Search Framework,
SES installed & running - passed - I can open the http://b.mydomain.com:17777/ page (changed the default port from 7777 to 17777)
PeopleSoft configuration - Database, App Server, Process Server - Running, PIA working fine, Background process posted, etc.
IB configuration - Load the gateway, update the domain status, Gateway App Server Node / Default Node updated - Ping Successfully
As following the installation guide, create new trust entity on SES site, update Timeout value
Also validate the App Server with at least 2 PSAPPSERV (Actually 2 or 3), Pub/Sub is enabled as well - PSRENSRV (with Auth Token enabled as well)
Creating a new User PSOFT to included both the 3 Search Framework Role of Developer, Admin and Server.
Validate the Local Default Node (Note: Renamed the default local node from PSFT_EP to MY_NODE), Gateway ID is LOCAL, and Connector ID is PSFTTARGET for the node.
And in the Gateway properties page, the secureFileKeyStorePath is default path, secureFileKeyStorePassword is encrypted via the tool below with the value of "mypwd".
Node Portal info such as Content URI and Portal URI updated. - Node can ping success
Service of ADMINSERVICE & ORACLESEARCHSERVICE exists
Then I create a new Search Instance under the Search Instance page from PIA, (Named PSSES)
Below is the value setup on the page:
Search Enginee Detail:
SSL: Disabled
Host: b.mydomain.com
Port: 17777
Admin Service Credentials:
User: eqsys
Password: <password> setup during the SES installation
Query Service Credentials:
Proxy: the new created trust entity name on SES global settings
Password: password for the new trust entity on SES global settings
Call Back properties:
URL: http://a.mydomain.com/PSIGW/PeopleSoftServiceListeningConnector/MY_NODE
User Name: PSOFT
Password: <password> for PSOFT
Then Save, after saved, the test Ping button appearred, and when I click the Ping button to test search enginee b.mydomain.com at *17777*, it show the following error:
Cannot establish HTTP connection (158, 2842)
Can be caused by any of the following:
*1. Cannot load certificates due to keystore password (not encrypted)*
*2. Keystore file not found.*
*3. Proxy server not configured.*
Then I checked the following, and looks to me all are correct.
I've checked the Gateway properties page, and the secureFileKeyStorePassword is encrypted as something {V1.}xxxxxx= value
I've also check the pskey file is under the a.mydomain.com server, also to ensure the access, add addition permission on the file with everyone read permission.
For Proxy, not sure if this is needed, and if so, how to setup? I don't think there's any proxy server needed under my test case.
My PIA Url: http://a.mydomain.com/XXX/signon.html
My SES Url: http://b.mydomain.com:17777/
Both the URL can be accessed from Firefox directly from a server and b server. But from the PeopleSoft Search Instance Properties page, the test Ping failed.
Please help to give any hints on this issue.
It would be appreciated if any reply on this topic.
Thanks,
Saxon SIHello Hakan,
Thanks for your reply, I follow the same as you posted in your blog, the only difference is that I didn't installed a MS Loopback adapter.
Yes, the keystore full path contain all the windows drive, folder and the key filename as well.
I may find out the issue, the pskey file does exist under the %PIA_HOME%/webserv/psft/piaconfig/keystore folder, but I found the last updated date is 3/16/2004, even I grant everyone permission on pskey file with write/modify rights, after I do some change in Gateway Properties from PIA page, the pskey file didn't get the last modified date updated, still the old 2004 date.
It should be the issue with related to this file not update. Do you have any idea how to get it update? Currently it seems the modification on PIA page for gateway property didn't auto update this file. Even I change the new of pskey to pskeyNew, but no pskeyNew files found under that folder after saved from PIA page.
Thanks,
Saxon SI -
OracleConnectionCacheImpl setter values for instance properties
Hi!
I'm using OracleConnectionCacheImpl to cache my connections to the Oracle 8i (8.1.7.4)
The JDBC driver that I'm using is 9.2.x
I've read through the SQLJ/JDBC documentation and learned that it is possible to use certain properties for controlling the behaviour of connection cache.
Only thing is that the documentation does not specify whether the values for the properties should be milliseconds, seconds, minutes or something else. The long type of the parameter value would indicate milliseconds but according my minimal testing at least some of the values propably are not milliseconds. Help is greatly appreciated. Below is the list of the properties I'm interested in:
// Controls how often cache thread check whether a physical connection has become available
/*ods.setThreadWakeUpInterval(threadWakeUpInterval);
// How long the logical connection can be used before forced back to the cache pool and all
// resources are freed.
ods.setCacheTimeToLiveTimeout(cacheTimeToLiveTimeout);
// How long the physical connection can be unused before it is closed and all the resources are freed.
ods.setCacheInactivityTimeout(cacheInactivityTimeout);
// How long the connection request will be waiting before EOJ_FIXED_WAIT_TIMEOUT is thrown.
ods.setCacheFixedWaitTimeout(cacheFixedWaitTimeout);
// How long the cache waits before polling for an available connection
ods.setCacheFixedWaitIdleTime(cacheFixedWaitIdleTime); */
Best Regards:
Aapo RomuHello Radhakrishna D S,
The note you provided did not fit our problem. The bootstrap.maxheapsize in the instance.properties file is already 128MB. Thanks anyway! -
SAP-XI, permission of the instance.properties file changes unexpectedly
Hi forum,
I have XI installed in HP-UX,
the permission of the instance.properties file (/usr/sap/<SID>/<instance name>/j2ee/cluster/instance.properties) in my XI system (installed in HP-UX), changes automatically, and hence the server starts giving problem like, JCO error while message-mapping, etc,
can u tell me how the permission changes on the fly,
I mean to say, in proper condition we keep it as rw_rw_rw, but it changes to rw_ ___ ___,
pls help,Hi Sudeep
I just checked on two systems. It looks like the permissions should be:
sidadm > ll j2ee/cluster/instance.properties
-rw-r--r-- 1 sidadm sapsys 3669 Nov 25 12:41 j2ee/cluster/instance.properties
Can you please check if <b>sidadm> umask</b> returns 022?
Regards Michael -
Revision: 21285
Revision: 21285
Author: [email protected]
Date: 2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
Log Message:
Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
Modified Paths:
blazeds/trunk/apps/ds-console/console/ConsoleManager.asRevision: 21285
Revision: 21285
Author: [email protected]
Date: 2011-05-20 07:53:23 -0700 (Fri, 20 May 2011)
Log Message:
Need to change _parent, privateCall and instance properties from private to protected in order to extend this class for another project
Modified Paths:
blazeds/trunk/apps/ds-console/console/ConsoleManager.as -
Hi Everyone,
Please help me on this issue. I'm a new SSIS User.
I've installed Sql Server 2005 Developer Edition
When I create a new SSIS Project in Business Intelligence Development Studio,
I get the following message:
"Microsoft Visual Studio is unable to load this document: Object reference is not set to an instance of an object".
Error loading 'package.dtsx'bject reference is not set to an instance of an object
When I try to debug the package, I get the below message:
parameter Component(System.Design) is null.
I've uninstalled and installed SS 2005 several times, yet the problem persists.
Please help.
This is the package.dtsx
<?xml version="1.0"?><DTS:Executable xmlnsTS="www.microsoft.com/SqlServer/Dts" DTS:ExecutableType="MSDTS.Package.1"><DTSroperty DTS:Name="PackageFormatVersion">2</DTSroperty><DTSroperty DTS:Name="VersionComments"></DTSroperty><DTSroperty DTS:Name="CreatorName">US\kothand1</DTSroperty><DTSroperty DTS:Name="CreatorComputerName">US6051KOTHAND1</DTSroperty><DTSroperty DTS:Name="CreationDate" DTSataType="7">4/8/2008 10:53:39 AM</DTSroperty><DTSroperty DTS:Name="PackageType">5</DTSroperty><DTSroperty DTS:Name="ProtectionLevel">1</DTSroperty><DTSroperty DTS:Name="MaxConcurrentExecutables">-1</DTSroperty><DTSroperty DTS:Name="PackagePriorityClass">0</DTSroperty><DTSroperty DTS:Name="VersionMajor">1</DTSroperty><DTSroperty DTS:Name="VersionMinor">0</DTSroperty><DTSroperty DTS:Name="VersionBuild">0</DTSroperty><DTSroperty DTS:Name="VersionGUID">{FBD98635-EDDE-4F58-9D53-356E8CB653FB}</DTSroperty><DTSroperty DTS:Name="EnableConfig">0</DTSroperty><DTSroperty DTS:Name="CheckpointFileName"></DTSroperty><DTSroperty DTS:Name="SaveCheckpoints">0</DTSroperty><DTSroperty DTS:Name="CheckpointUsage">0</DTSroperty><DTSroperty DTS:Name="SuppressConfigurationWarnings">0</DTSroperty><DTSroperty DTS:Name="ForceExecValue">0</DTSroperty><DTSroperty DTS:Name="ExecValue" DTSataType="3">0</DTSroperty><DTSroperty DTS:Name="ForceExecutionResult">-1</DTSroperty><DTSroperty DTS:Name="Disabled">0</DTSroperty><DTSroperty DTS:Name="FailPackageOnFailure">0</DTSroperty><DTSroperty DTS:Name="FailParentOnFailure">0</DTSroperty><DTSroperty DTS:Name="MaxErrorCount">1</DTSroperty><DTSroperty DTS:Name="ISOLevel">1048576</DTSroperty><DTSroperty DTS:Name="LocaleID">1033</DTSroperty><DTSroperty DTS:Name="TransactionOption">1</DTSroperty><DTSroperty DTS:Name="DelayValidation">0</DTSroperty>
<DTS:LoggingOptions><DTSroperty DTS:Name="LoggingMode">0</DTSroperty><DTSroperty DTS:Name="FilterKind">1</DTSroperty><DTSroperty DTS:Name="EventFilter" DTSataType="8"></DTSroperty></DTS:LoggingOptions><DTSroperty DTS:Name="ObjectName">Package</DTSroperty><DTSroperty DTS:Name="DTSID">{191D188C-EA6E-46D6-A46A-8C9F3C21C321}</DTSroperty><DTSroperty DTS:Name="Description"></DTSroperty><DTSroperty DTS:Name="CreationName">MSDTS.Package.1</DTSroperty><DTSroperty DTS:Name="DisableEventHandlers">0</DTSroperty></DTS:Executable>
Thanks
Best RegardsNo I have not yet. I've applied just the windows updates. I rebooted after the updates, but the problem persists.
I evern tried importing the .vssettings file from my co-worker's. Also, I tried resetting the user settings
using "%programfiles%\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" /resetuserdata.
I'm on Windows xp 2002 service pack 2. Sql server 2005 Developer edition.
Visual Studio info:
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
Microsoft .NET Framework
Version 2.0.50727 SP1
Installed Edition: IDE Standard
Microsoft Visual Studio 2005 Premier Partner Edition - ENU Service Pack 1 (KB926601)
This service pack is for Microsoft Visual Studio 2005 Premier Partner Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/926601
SQL Server Analysis Services
Microsoft SQL Server Analysis Services Designer
Version 9.00.1399.00
SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 9.00.1399.00
SQL Server Reporting Services
Microsoft SQL Server Reporting Services Designers
Version 9.00.1399.00
Thanks
Best regards -
Request for an example of the instance.properties file
Hi everyone,
Somebody can give me an example of the file <b>instance.properties</b> ? : When I installed sap netweaver 2004s SP 9 , this file was not created in its place It caused me a problem (the SAP J2EE engine does not working).
I want to solve the problem by creating this file manually into its place, and then try to see if it works or not.
Thanks in advance.ID16574800.ClassPath=./bin/boot/boot.jar:./bin/system/bytecode.jar:.
ID16574800.Debuggable=no
ID16574800.JLaunchParameters=
ID16574800.JavaParameters=-Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -Xms15M -XX:NewSize=5M -XX:MaxNewSize=5M -XX:PermSize=10M -XX:MaxPermSize=20M -verbose:gc -XX:DisableExplicitGC -verbose:gc -XX:UseConcMarkSweepGC
ID16574800.JavaPath=C:/java/j2sdk1.4.2_15
ID16574800.LogName=dispatcher
ID16574800.MainClass=com.sap.engine.boot.Start
ID16574800.MaxHeapSize=170
ID16574800.Name=dispatcher
ID16574800.Parameters=
ID16574800.RootPath=C:/usr/sap/J2E/JC01/j2ee/cluster/dispatcher
ID16574800.Type=dispatcher
ID16574850.ClassPath=./bin/boot/boot.jar:./bin/boot/jaas.jar:./bin/system/bytecode.jar:.
ID16574850.DebugMode=no
ID16574850.DebugPort=50121
ID16574850.Debuggable=yes
ID16574850.JLaunchParameters=
ID16574850.JavaParameters=-Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -Djco.jarm=1 -XX:MaxPermSize=256M -XX:PermSize=128M -Xms100M -XX:NewSize=30M -XX:MaxNewSize=30M -XX:DisableExplicitGC -verbose:gc -Xloggc:GC.log -XX:PrintGCDetails -XX:+PrintGCTimeStamps -Djava.awt.headless=true -Dsun.io.useCanonCaches=false -XX:SoftRefLRUPolicyMSPerMB=1 -XX:SurvivorRatio=2 -XX:TargetSurvivorRatio=90 -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.ts.jts.ots.PortableInterceptor.JTSInitializer
ID16574850.JavaPath=C:/java/j2sdk1.4.2_15
ID16574850.LogName=server0
ID16574850.MainClass=com.sap.engine.boot.Start
ID16574850.MaxHeapSize=1023
ID16574850.Name=server0
ID16574850.Parameters=
ID16574850.RootPath=C:/usr/sap/J2E/JC01/j2ee/cluster/server0
ID16574850.Type=server
bootstrap.ClassPath=./bootstrap/launcher.jar
bootstrap.JavaParameters=-Djco.jarm=1 -Djco.jarm=1
bootstrap.JavaPath=C:/java/j2sdk1.4.2_15
bootstrap.MainClass=com.sap.engine.offline.OfflineToolStart
bootstrap.MaxHeapSize=512
bootstrap.Name=bootstrap
bootstrap.Parameters=com.sap.engine.bootstrap.Bootstrap ./bootstrap ID0165748
bootstrap.RootPath=C:/usr/sap/J2E/JC01/j2ee/cluster
bootstrap.Type=bootstrap
bootstrap_ID16574800.ClassPath=./bootstrap/launcher.jar
bootstrap_ID16574800.JLaunchParameters=
bootstrap_ID16574800.JavaParameters=-Djco.jarm=1
bootstrap_ID16574800.JavaPath=C:/java/j2sdk1.4.2_15
bootstrap_ID16574800.MainClass=com.sap.engine.offline.OfflineToolStart
bootstrap_ID16574800.MaxHeapSize=256
bootstrap_ID16574800.Name=dispatcher bootstrap
bootstrap_ID16574800.Parameters=com.sap.engine.bootstrap.Bootstrap ./bootstrap ID016574800
bootstrap_ID16574800.RootPath=C:/usr/sap/J2E/JC01/j2ee/cluster
bootstrap_ID16574800.Type=bootstrap
bootstrap_ID16574850.ClassPath=./bootstrap/launcher.jar
bootstrap_ID16574850.JLaunchParameters=
bootstrap_ID16574850.JavaParameters=-Djco.jarm=1
bootstrap_ID16574850.JavaPath=C:/java/j2sdk1.4.2_15
bootstrap_ID16574850.MainClass=com.sap.engine.offline.OfflineToolStart
bootstrap_ID16574850.MaxHeapSize=256
bootstrap_ID16574850.Name=server0 bootstrap
bootstrap_ID16574850.Parameters=com.sap.engine.bootstrap.Bootstrap ./bootstrap ID016574850
bootstrap_ID16574850.RootPath=C:/usr/sap/J2E/JC01/j2ee/cluster
bootstrap_ID16574850.Type=bootstrap
instance.box.number=J2EJC01georgilf
instance.en.host=GeorgiLF
instance.en.port=3200
instance.enabled=yes
instance.install.dir=C:/usr/sap/J2E/JC01/j2ee
instance.ms.host=GeorgiLF
instance.ms.port=3900
instance.osLibsPath=C:/usr/sap/J2E/JC01/j2ee/os_libs
instance.runAction=NONE
instance.runMode=normal
instance.system.id=1 -
What is runMode and runAction in instance.properties?
Hi, all.
Currently, i'm using WAS J2EE 6.40 SP10.
In the file /usr/sap/<SID>/<Instance ID>/j2ee/cluster/instance.properties, the following parameters exist.
instance.runAction=NONE
instance.runMode=NORMAL
What are these parameters and what other values are available for these parameters?
Thanks.Hi All,
I am on SP12, Yes I do know that during the installation of SP13 it asks for switching to safe more. But I am more concerned about what is this safe mode all about. Can somebody pls let me know why is this new run mode introduced and what is its significance.
Regards,
Naresh -
I've randomly experienced a problem on our production server. I can no longer add RDSH servers to existing collections but I can create a new collection. The error message from add-rdsessionhost:
Unable to retrieve the session collection properties.
+ CategoryInfo : InvalidResult: (:) [], RDManagementException
+ FullyQualifiedErrorId : JobStateFailed
+ PSComputerName : localhost
I can amend the rds.RoleRdsh table to add the server to the collection but more gtables need to be edited manually to get it working. There appears to be some kind of permissions issue editing exisitng collections but not new ones? I'm not aware of anything
that has changed since I last amended a collection, the day before.
Any help would be appreciated. I can provide more information if necessary.Hi,
Based on my research, there was a similar case where an empty collection existed in Connection Broker SQL database, deleting the empty collection resolved the issue.
Please run PowerShell cmdlet Get-RDSessionCollection
to list all collections in the RDS deployment.
Get-RDSessionCollection
https://technet.microsoft.com/en-us/library/jj215456.aspx
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] -
How to load some text from properties file ?
Hi again,
problem is i dont know how can i load a text from properties file like #{xxx['key']} in managed bean, i tried to find some solution but havent seen this kind of use this file in java code. Is it supposed to work only for labels in jspx pages ?
thanks for help ...Hi,
a managed bean is nothing special from any other Java file. However, if you look at SRDemo, you find a nice way of using the same message bundle that you use on the page
See the messageFromBundle() method in the JSFUtils class of the UserInterface project
Frank
P.s. You can download and setup SRDemo from JDeveloper help--> check for updates -
Unable to validate a java.util.Properties XML based File
I cannot for the life of me figure out what is wrong with this xml file, but it fails the validation of java.util.Properties and as such won't be parsed in. Help!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties version="1.0">
<entry key="bottleneckServer.address"></entry>
<entry key="bottleneckServer.port">8206</entry>
<entry key="bottleneckServer.confirmDelay">10</entry>
<entry key="bottleneckServer.cleanupDelay">120</entry>
</properties>Thanks in advance!This xml file works perfectly.
Here is some test code:
Properties p = new Properties();
p.loadFromXML(getClass().getClassLoader().getResourceAsStream("someFilePath/someFileName.xml"));
assert "8206".equals(p.getProperty("bottleneckServer.port")) : "Property 'bottleneckServer.port' != 8206"; -
1002097 Unable to load database [Plan1]
Hi all,
I am not able to start the database from essbase. When i start the databse from app, I am getting below message from the panel.
server.XXXXAPP.Plan1 Get database properties April 5, 2011 2:57:27 PM CAT Failed
Error: 1002097 Unable to load database [Plan1]
Error: 1042015 Network error: Cannot Locate Connect Information For []
server.XXXXAPP.Plan1 Get database properties April 5, 2011 2:57:36 PM CAT Failed
Error: 1053001 Cannot open object file: C:\Hyperion\products\Essbase\EssbaseServer\app\XXXXAPP\Plan1\Plan1.esm
server.XXXXAPP.Plan1 Get database properties April 5, 2011 2:57:36 PM CAT Failed
Error: 1053001 Cannot open object file: C:\Hyperion\products\Essbase\EssbaseServer\app\XXXXAPP\Plan1\Plan1.esm
server.XXXXAPP.Plan1 Get database properties April 5, 2011 2:57:40 PM CAT Failed
Error: 1002097 Unable to load database [Plan1]
I tried deleting the app from essbase and create it from planning (through refreh/create) that is also giving me a olap planning exception "Unable to load database"
I can not open forms as well. it is giving me "Unable to obtain a connection to Hyperion Essbase. If this problem persists, please contact your administrator"
Any Help..?
Thanks !
Edited by: user8819264 on Apr 5, 2011 7:52 AM
Edited by: user8819264 on Apr 5, 2011 8:27 AMHi John,
Sry for the delayed reply. The issue was the same as you suggested. There were few esssvr processes running. I couldnt see that from the taskmanager i as was looking on the process that were running with the user i logged in. I could see all once i selected checkbox from "All users". Killed those services and now it is fine.
Thanks. -
Unable to load database connector - using JRC w/report connecting to Oracle
A simple Java program was created to test a Crystal Report using JRC. The Java program is a thick-client Swing desktop application (modified from an example of crxi_r2_migrating_rdc_to_jrc.pdf). The program failed to execute the report with the following error:
Unable to load database connector u2018com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'
It might be something simple to correct the problem, but I am not able to find related answers in the documentation and from the forum.
CR version is XI R2. The Java program was compiled and run using jdk1.4.2_13. Oracle is 10.2.
Do I have to use JDBC? or the CR Oracle driver will do? What needs to be setup? If I use JDBC, what do I need to setup (I tried to following the links in the forums or other documentation, but most of the links to http://support.businessobjects.com/.... are broken - i.e. re-route to the SAP support page but not directly linked to the articles)
When the report JRCTestReport.rpt was saved with the option "Save Data With Report", it works fine. So the problem is only with Oracle database driver, the other jars are fine.
In the report JRCTestReport.rpt the database properties are:
DatabaseDLL crdb_oralce.dll
Password
Server myTestDB
Trusted_Connection False
User ID MyUser
The crdb_oracle.dll is located at:
C:\Program Files\Business Objects\Common\3.5\bin
Files are stored in the following tree structure:
<Testing Folder>
JRCTest.java
JRCTest.class
WEB-INF
lib
All required JRC jars and CRConfig.xml
Reports
JRCTestReport.rpt
Java source code JRCTest.java
import java.awt.*;
import javax.swing.*;
import java.io.*;
import com.crystaldecisions.ReportViewer.*;
// Use this for talking to JRC in-process
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
public class JRCTest
private static void createAndShowGUI()
try
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(false);
//Create and set up the window.
JFrame frame = new JFrame("JRCTest");
frame.setTitle("JRCTest");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ReportViewerBean viewer = new ReportViewerBean();
System.out.println("ReportViewerBean.init");
viewer.init(new String[0], null, null, null);
System.out.println("new ReportClientDocument");
ReportClientDocument rpt = new ReportClientDocument();
try
System.out.println("Openning Report...");
rpt.open("JRCTestReport.rpt", 0);
catch (Exception ex)
System.out.println("Failed to open report");
System.out.println(ex.toString());
return;
try
System.out.println("logon...");
rpt.getDatabaseController().logon("myUser", "myPass");
catch (Exception ex)
System.out.println("Failed to logon");
System.out.println(ex.toString());
return;
System.out.println("ReportClientDocument.getReportSource");
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource(rptSource);
System.out.println("viewer.setReportSource");
frame.getContentPane().add
(viewer, BorderLayout.CENTER);
frame.setSize(700, 500);
frame.setVisible(true);
viewer.start();
catch (Exception exception)
System.out.println(exception.toString());
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI();
Execution result:
C:\tmp\CrystalJavaTest>java -classpath .;./WEB-INF/lib;./WEB-INF/lib/ReportViewe
r.jar;./WEB-INF/lib/jrcerom.jar;./WEB-INF/lib/jrcadapter.jar;./WEB-INF/lib/Concu
rrent.jar;./WEB-INF/lib/CrystalCharting.jar;./WEB-INF/lib/CrystalCommon.jar;./WE
B-INF/lib/CrystalContentModels.jar;./WEB-INF/lib/CrystalExporters.jar;./WEB-INF/
lib/CrystalExportingBase.jar;./WEB-INF/lib/CrystalFormulas.jar;./WEB-INF/lib/Cry
stalQueryEngine.jar;./WEB-INF/lib/CrystalReportEngine.jar;./WEB-INF/lib/CrystalR
eportingCommon.jar;./WEB-INF/lib/icu4j.jar;./WEB-INF/lib/keycodeDecoder.jar;./WE
B-INF/lib/log4j.jar;./WEB-INF/lib/MetafileRenderer.jar;./WEB-INF/lib/rasapp.jar;
./WEB-INF/lib/rascore.jar;./WEB-INF/lib/rpoifs.jar;./WEB-INF/lib/Serialization.j
ar;./WEB-INF/lib/URIUtil.jar;./WEB-INF/lib/xercesImpl.jar;./WEB-INF/lib/xml-apis
.jar JRCTest
Starting
Crystal Report Viewer 2.1.21.2
java.vendor = Sun Microsystems Inc.
java.version = 1.4.2_13
os.name = Windows XP
os.version = 5.1
os.arch = x86
ReportViewerBean.init
new ReportClientDocument
Openning Report...
logon...
ReportClientDocument.getReportSource
viewer.setReportSource
ERROR - JRCAgent1 detected an exception: Unable to load database connector 'com.
crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwRepo
rtSDKException(Unknown Source)
at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
at com.businessobjects.reports.sdk.b.i.a(Unknown Source)
at com.businessobjects.reports.sdk.b.i.byte(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unkno
wn Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unkno
wn Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage
(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource
.getPage(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReport
Source.getPage(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.rs.b.if(Unknown Source
at com.businessobjects.crystalreports.viewer.core.av.a(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.av.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Unable to load database connector 'com.crystaldecisions.reports.queryengine.driv
erImpl.DriverLoader'.After I switched the report to use JDBC, I am still getting the same error.
Machine has multiple jdk, oracle 10g, Oracle11g client installed though. So I need to set my path to use the jdk from Crystal Report and Oracle 10g.
The program was compiled and ran with the following path and CLASSPATH:
set path="C:\Program Files\Business Objects\j2sdk1.4.2_08\bin";"C:\Program Files\Business Objects\j2sdk1.4.2_08\jre\bin";"C:\Program Files\Business Objects\j2sdk1.4.2_08\jre\bin\client";c:\oracle\ora102\bin
set CLASSPATH=.;./WEB-INF/lib;./WEB-INF/lib/ReportViewer.jar;./WEB-INF/lib/jrcerom.jar;./WEB-INF/lib/jrcadapter.jar;./WEB-INF/lib/Concurrent.jar;./WEB-INF/lib/CrystalCharting.jar;./WEB-INF/lib/CrystalCommon.jar;./WEB-INF/lib/CrystalContentModels.jar;./WEB-INF/lib/CrystalExporters.jar;./WEB-INF/lib/CrystalExportingBase.jar;./WEB-INF/lib/CrystalFormulas.jar;./WEB-INF/lib/CrystalQueryEngine.jar;./WEB-INF/lib/CrystalReportEngine.jar;./WEB-INF/lib/CrystalReportingCommon.jar;./WEB-INF/lib/icu4j.jar;./WEB-INF/lib/keycodeDecoder.jar;./WEB-INF/lib/log4j.jar;./WEB-INF/lib/MetafileRenderer.jar;./WEB-INF/lib/rasapp.jar;./WEB-INF/lib/rascore.jar;./WEB-INF/lib/rpoifs.jar;./WEB-INF/lib/Serialization.jar;./WEB-INF/lib/URIUtil.jar;./WEB-INF/lib/xercesImpl.jar;./WEB-INF/lib/xml-apis.jar;C:/oracle/ora102/jdbc/lib/ojdbc14.jar
I modified my java testing program to display more info:
Modified program:
import java.awt.*;
import javax.swing.*;
import java.io.*;
import com.crystaldecisions.ReportViewer.*;
// Use this for talking to JRC in-process
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
import com.crystaldecisions.sdk.occa.report.exportoptions.*;
import com.crystaldecisions.sdk.occa.report.data.*;
import com.crystaldecisions.sdk.occa.report.lib.PropertyBag;
import com.crystaldecisions.sdk.occa.report.lib.IStrings;
public class JRCTest2
private static void createAndShowGUI()
try
System.out.println("Starting");
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(false);
//Create and set up the window.
JFrame frame = new JFrame("JRCTest2");
frame.setTitle("Testing 1, 2, 3");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
System.out.println("new ReportViewerBean");
ReportViewerBean viewer = new ReportViewerBean();
System.out.println("ReportViewerBean.init");
viewer.init(new String[0], null, null, null);
System.out.println("new ReportClientDocument");
ReportClientDocument rpt = new ReportClientDocument();
try
System.out.println("Openning Report...");
rpt.open("JRCTestReport.rpt", 0);
catch (Exception ex)
System.out.println("Failed to open report");
System.out.println(ex.toString());
return;
try
// try logon here to see if any exceptions
rpt.getDatabaseController().logon("myUser", "myPass");
catch (Exception ex)
System.out.println("Failed to logon");
System.out.println(ex.toString());
return;
IDatabase idb = rpt.getDatabaseController().getDatabase();
Tables dtb = idb.getTables();
IConnectionInfo conInfo = dtb.getTable(0).getConnectionInfo();
PropertyBag attrs = conInfo.getAttributes();
conInfo.setPassword("myPass");
conInfo.setUserName("myUser");
IStrings s = attrs.getPropertyIDs();
for (int i=0; i < s.size(); i++)
System.out.println(s.getString(i));
System.out.println(attrs.getStringValue(s.getString(i)));
System.out.println(" ");
conInfo.setAttributes(attrs);
attrs = conInfo.getAttributes();
s = attrs.getPropertyIDs();
// Print property again after setting attributes
for (int i=0; i < s.size(); i++)
System.out.println(s.getString(i));
System.out.println(attrs.getStringValue(s.getString(i)));
System.out.println(" ");
System.out.println("ReportClientDocument.getReportSource");
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource(rptSource);
frame.getContentPane().add
(viewer, BorderLayout.CENTER);
frame.setSize(700, 500);
frame.setVisible(true);
viewer.start();
catch (Exception exception)
System.out.println(exception.toString());
public static void main(String[] args)
System.out.println("main");
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI();
Running result:
C:\tmp\CrystalJavaTest>java JRCTest2
main
Starting
new ReportViewerBean
Crystal Report Viewer 2.1.21.2
java.vendor = Sun Microsystems Inc.
java.version = 1.4.2_13
os.name = Windows XP
os.version = 5.1
os.arch = x86
ReportViewerBean.init
new ReportClientDocument
Openning Report...
Trusted_Connection
false
Server Name
dbHost
Connection String
Use JDBC=b(true);Connection URL=s(jdbc:oracle:thin:@dbHost:1521:myDB);Database Class Name=s(oracle.jdbc.OracleDriver);Server=s(dbHost);User ID=s(myUser);Password=;Trusted_Connection=b(false);JDBC Connection String=s(!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB)
Server Type
JDBC (JNDI)
Database Class Name
oracle.jdbc.OracleDriver
Use JDBC
true
URI
!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB
Database DLL
crdb_jdbc.dll
Trusted_Connection
false
Server Name
dbHost
Connection String
Use JDBC=b(true);Connection URL=s(jdbc:oracle:thin:@dbHost:1521:myDB);Database Class Name=s(oracle.jdbc.OracleDriver);Server=s(dbHost);User ID=s(myUser);Password=;Trusted_Connection=b(false);JDBC Connection String=s(!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB)
Server Type
JDBC (JNDI)
Database Class Name
oracle.jdbc.OracleDriver
Use JDBC
true
URI
!oracle.jdbc.OracleDriver!jdbc:oracle:thin:/@dbHost:1521:myDB
Database DLL
crdb_jdbc.dll
ReportClientDocument.getReportSource
ERROR - JRCAgent1 detected an exception: Unable to load database connector 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)
at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
at com.businessobjects.reports.sdk.b.i.a(Unknown Source)
at com.businessobjects.reports.sdk.b.i.byte(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.y.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.rs.b.if(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.av.a(Unknown Source)
at com.businessobjects.crystalreports.viewer.core.av.run(Unknown Source)
at java.lang.Thread.run(Thread.java:534)
Unable to load database connector 'com.crystaldecisions.reports.queryengine.driverImpl.DriverLoader'.
Also got similar error when the path and classpath was switched to Oracle 11g.
Is there a way to tell which file that it failed to load?
Thanks
Kin
Maybe you are looking for
-
I lost an xcel doc a couple of days ago. Tried to find the Library folder in Users but not there when I use Finder (even when I do shift-command-G). But when trying to upload a photo in iphoto I found the library folder in Users. I can see my doc in
-
Inter Company STO without delivery
Hello All, I have a scenario related to STO for both inter and intra company. Please guide me. a) For intra company , we will be using UB type b) For inter company without delivery, do wehave to use NB type ( correct me if am wrong and can anyone ple
-
Hi all, GoodMorning,. what exactly does the option of "Allow Bulk Data Load" option on Company Profile page do, it is clear in doc. that it allows crm on demand consultants to load bulk data. But i am not clear on how they load etc etc, do they use a
-
My ipad is not recognised in itunes
I am struggling to recognise my ipad in itunes. I have tried everything from updating, rebooting etc. Help please?
-
Hi I call you from Iran. Today I encountered a problem I hope you can help me. I have iPhone 5 with version 6.1.4. Jailbreak I would rather not unlock. My problem is that the Operator name (top left) searching ... The appearance of! And no matter how