This discussion is archived
7 Replies Latest reply: Jan 30, 2013 5:28 AM by 714235 RSS

AttributeError: 'NoneType' object has no attribute 'createFileStore'

714235 Newbie
Currently Being Moderated
Hi,

I wanted a script to create a topic with durable subscriber.

I could create the script till the point of creating the topic. When I try to run it from oracle_common/common/bin/./wlst.sh srciptjmstopic.py I get following error

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Error: No domain or domain template has been read.
Problem invoking WLST - Traceback (innermost last):
File "/scratch/psahasra/soabam12c/oracle_common/common/bin/ScriptForJMSTopic.py", line 5, in ?
AttributeError: 'NoneType' object has no attribute 'createFileStore'

My script for the first five lines is given below. Could anybody of you tell me what is wrong? I have already started the server.

# This is the start of the script



cd('/')
cmo.createFileStore('FileStore-1') // LINE NUMBER 5.

cd('/FileStores/FileStore-1')

Edited by: padmanabh s on Jan 29, 2013 11:12 PM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points