Exception while running weblogicImportMetaData.sh - weblogic

I am running weblogicImportMetaData.sh with weblogic user its working fine but for the xelsysadm its failing with the following exception:
Problem invoking WLST - Traceback (innermost last):
File "/home/oracle/Oracle/Middleware/Oracle_OIM/server/bin/weblogicImportMetadata.py", line 21, in ?
File "/home/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 298, in importMetadata
File "/home/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 850, in executeAppRuntimeMBeanOperation
File "/home/oracle/Oracle/Middleware/oracle_common/common/wlst/mdsWLSTCommands.py", line 1131, in saveStackAndRaiseException
WLSTException: java.lang.SecurityException: MBean operation access denied.
MBean: oracle.mds.lcm:name=MDSAppRuntime,type=MDSAppRuntime,Application=OIMAppMetadata,ApplicationVersion=11.1.2.0.0
Operation: importMetadata(java.lang.String, [Ljava.lang.String;, [Ljava.lang.String;, boolean, boolean, boolean, boolean, boolean, java.lang.String)
Detail: Access denied. Required roles: Admin, executing subject: principals=[BIReportAdministrator, SYSTEM ADMINISTRATORS, xelsysadm, challengenotset]
MDS-91009: Operation "importMetadata" failure. Use dumpStack() to view the full stacktrace.

I need to put xelsysadm in the weblogic realm so as to enable xelsysadm to run webloginMetadataImport.sh

Related

cfgfwk-64254 error occurred in security processing phase execution while creating a new domain

I'm trying to create a new domain (Weblogic 12.2.1.2.0, Database 12.1.0.2, Jdk 1.8.0_191, SUSE Linux Enterprise Server 11 SP4) but i'm facing the error below:
cfgfwk-64254 error occurred in security processing phase execution
Encoutered error, traceback (innermost last):
File "<iostream>", Line 51,in ?
File "~Oracle_Home/wlserver/common/wlst/modules/jython-modules.jar/Lib/socket$py.class" ,
line338, in gethostname
gaierror (20001,'getaddrinfo failed')
Have you any idea about the cause of this problem.
Thanks in advance.

WLSTException: Error occured while performing connect : Error getting the initial context. There is no server running

Hii I am facing issue while connecting to weblogic server. The command i used to connect to it is as follows:
java -Dweblogic.security.SSL.ignoreHostnameVerification=true -
Djava.security.egd=file:/dev/./urandom -DUseSunHttpHandler=true -
Djava.net.preferIPv4Stack=true -Djava.awt.headless=true -
Dsun.jnu.encoding=ISO-8859-1 -Dfile.encoding=ISO-8859-1 weblogic.WLST
<path>/weblogic_configuration_domain_update.py <path>/weblogic-
domain.properties
It gives following error:
javax.naming.CommunicationException [Root exception is
java.net.ConnectException: t3://<IP>:<port>: Destination
unreachable; nested exception is: java.net.ConnectException: Connection
refused; No available router to destination]
Problem invoking WLST - Traceback (innermost last):
File "/<path>/weblogic_configuration_domain_update.py", line 134, in ?
File "<iostream>", line 22, in connect
File "<iostream>", line 648, in raiseWLSTException
WLSTException: Error occured while performing connect : Error getting the
initial context. There is no server running at t3://<IP>:<port>
Please let me know is there any way to resolve this issue. Thank you in advance.
you have to insert the correct values in the script: weblogic_configuration_domain_update.py
for example: connect(t3://thelisteingadressofthehost.network.com:thelisteningportoftheAdminServer)
and be sure which protocol you are using t3 or t3s...
https://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/reference.html
Open terminal and add mentioned below variable JVM_ARGS
[oracle#node1 bin]$ set JVM_ARGS="-Dprod.props.file='${WL_HOME}'/.product.properties ${WLST_PROPERTIES} ${JVM_D64} ${UTILS_MEM_ARGS} ${COMMON_JVM_ARGS} ${CONFIG_JVM_ARGS} -Dweblogic.security.TrustKeyStore=DemoTrust"
[oracle#node1 bin]$ wlst.sh
Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
wls:/offline>

Cassandra 2.0 cluster's PasswordAuthenticator fails to init default user: "some nodes were not ready"

How to setup this? I have a three node cluster with replication factor 3, and getting the following errors at startup:
WARN [NonPeriodicTasks:1] 2013-10-08 14:06:42,751 PasswordAuthenticator.java (line 242) PasswordAuthenticator skipped default user setup: some nodes were not ready
WARN [NonPeriodicTasks:1] 2013-10-08 14:06:42,763 Auth.java (line 223) Skipped default superuser setup: some nodes were not ready
No default user is created, and trying to log in with e.g. cqlsh fails:
$ cqlsh mynode myport -u cassandra -p cassandra
Traceback (most recent call last):
File "/usr/opt/apache-cassandra-2.0.1/bin/cqlsh", line 2031, in <module>
main(*read_options(sys.argv[1:], os.environ))
File "/usr/opt/apache-cassandra-2.0.1/bin/cqlsh", line 2017, in main
display_float_precision=options.float_precision)
File "/usr/opt/apache-cassandra-2.0.1/bin/cqlsh", line 477, in __init__
cql_version=cqlver, transport=transport)
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 143, in connect
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py", line 59, in __init__
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/thrifteries.py", line 157, in establish_connection
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 455, in login
File "/usr/opt/apache-cassandra-2.0.1/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 476, in recv_login
cql.cassandra.ttypes.AuthenticationException: AuthenticationException(why='Username and/or password are incorrect')
The error message "some nodes were not ready" is somewhat misguiding, as it seems that the reason was having two other nodes in the cluster up and running but configured to still use the AllowAllAuthenticator. After bringing down the other nodes and starting up the one with PasswordAuthentitor, creating default user succeeds:
INFO [NonPeriodicTasks:1] 2013-10-09 14:44:57,028 PasswordAuthenticator.java (line 237) PasswordAuthenticator created default user 'cassandra'
INFO [NonPeriodicTasks:1] 2013-10-09 14:44:57,760 Auth.java (line 218) Created default superuser 'cassandra'
In my case it was because the datacenter name was changed and then rolled out to the config files (cassandra-topology.properties) thanks to Puppet. Therefore the already configured NetworkTopologyStrategy for system_auth failed.
You have to change "authenticator:" and "authorizer:" in serial not in parallel when starting the node first time with these options. This way worked for me when struggling with above error.
You should also check conf/cassandra-topology.properties if you are using PropertyFileSnitch. It should be same across all the nodes

Using WLST script how to create DbAdapter EIS Connection Factory (remotely)

I am trying to create Create DbAdapter in Admin Server using WLST sript.
def createDbAdapter():
connect('weblogic', 'welcome1','t3://asdf-pdm:7001')
edit()
startEdit()
planPath = get('/AppDeployments/DbAdapter/PlanPath')
#D:\Oracle\Middleware\home_ps2\Oracle_SOA1\soa\connectors\Plan.xml
appPath = get('/AppDeployments/DbAdapter/SourcePath')
# D:/Oracle/Middleware/home_ps2/Oracle_SOA1/soa/connectors/DbAdapter.rar
wpPlan=loadApplication(appPath, planPath) # got exception here
...
...
...
While i am trying to load in to memory DbAdapter.rar with Plan.xml it throws following error
wls:/base_domain/serverConfig> loadApplication(appPath, planPath)
Loading application from D:/Oracle/Middleware/home_ps2/Oracle_SOA1/soa/connectors/DbAdapter.rar ...
Plan for your application will be written to D:\Oracle\Middleware\home_ps2\Oracle_SOA1\soa\connectors\Plan.xml
Traceback (innermost last):
File "<console>", line 1, in ?
File "<iostream>", line 290, in loadApplication
Use dumpStack() to view the full stacktrace
at weblogic.management.scripting.ExceptionHandler.handleException(ExceptionHandler.java:59)
at weblogic.management.scripting.WLSTUtils.throwWLSTException(WLSTUtils.java:181)
at weblogic.management.scripting.JSR88DeployHandler.loadApplication(JSR88DeployHandler.java:196)
at weblogic.management.scripting.WLScriptContext.loadApplication(WLScriptContext.java:787)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
weblogic.management.scripting.ScriptException: weblogic.management.scripting.ScriptException: Error occured while performing loadApplication : Could not read confi
guration. : Exception in AppMerge flows' progression
Basically it tries to load those file from the file system where it running, rather where it connected.
while I am doing the same from the server console (locally) then everything works fine.
So, at this point i want to know, is it possible to update DbAdapter remotely?
Suvankar,
There could be path problem for the Plan.xml that using '\' instead of '/'. Please check and revert.
I too have faced the same issue looks like loadApplication() doesn't support remote loading of the application into the memory . Strangely it's not mentioned anywhere in the doc

HSQLDB: .data file access denied

I have HSQLDB database which i was unable to open.
SQL client throws following exception:
java.sql.SQLException: error in script file line: 32 file input/output errorerror c:\db\mydb.data (Access is denied) opening file - file c:\db\mydb.data
at org.hsqldb.jdbc.Util.sqlException(Util.java:380)
at org.hsqldb.jdbc.Util.sqlException(Util.java:103)
at org.hsqldb.jdbc.JDBCConnection.<init>(JDBCConnection.java:3303)
at org.hsqldb.jdbc.JDBCDriver.getConnection(JDBCDriver.java:321)
at org.hsqldb.jdbc.JDBCDriver.connect(JDBCDriver.java:259)
at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.createConnection(JDBCConnection.java:214)
at org.eclipse.datatools.connectivity.DriverConnectionBase.internalCreateConnection(DriverConnectionBase.java:105)
at org.eclipse.datatools.connectivity.DriverConnectionBase.open(DriverConnectionBase.java:54)
at org.eclipse.datatools.connectivity.drivers.jdbc.JDBCConnection.open(JDBCConnection.java:73)
at org.eclipse.datatools.enablement.hsqldb.connection.HSQLDBJDBCConnectionFactory.createConnection(HSQLDBJDBCConnectionFactory.java:35)
at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(ConnectionFactoryProvider.java:83)
at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(ConnectionProfile.java:359)
at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(PingJob.java:76)
at org.eclipse.datatools.connectivity.ui.PingJob.run(PingJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.hsqldb.HsqlException: error in script file line: 32 file input/output errorerror c:\db\mydb.data (Access is denied) opening file - file c:\db\mydb.data
at org.hsqldb.error.Error.error(Error.java:131)
at org.hsqldb.scriptio.ScriptReaderText.readDDL(ScriptReaderText.java:151)
at org.hsqldb.scriptio.ScriptReaderBase.readAll(ScriptReaderBase.java:65)
at org.hsqldb.persist.Log.processScript(Log.java:759)
at org.hsqldb.persist.Log.open(Log.java:159)
at org.hsqldb.persist.Logger.openPersistence(Logger.java:288)
at org.hsqldb.Database.reopen(Database.java:218)
at org.hsqldb.Database.open(Database.java:185)
at org.hsqldb.DatabaseManager.getDatabase(DatabaseManager.java:240)
at org.hsqldb.DatabaseManager.newSession(DatabaseManager.java:157)
at org.hsqldb.jdbc.JDBCConnection.<init>(JDBCConnection.java:3281)
... 12 more
Line 32 is the first line where data model is being created, it contains create cached table statement. What could possibly cause that? Is it curable? Need to recover data.
"Access is denied" generally means you file is readonly, or has already been opened by a different process (for example virus checker). Occasionally windows itself locks the file, which can be unlocked only by restarting the machine.