Wlst error redirection

Hi, I am practicing WLST commands. I want to redirect both output and error messages to a file instead of stdOut. So I am using redirect command with log file name and boolean value to disable stdout. if my WLST command was successful output was redirected to log file which is fine. But if command is not successful error message is displayed on stdout even though I disabled it. error messages not redirected to file. what should i do to redirect error messages to file? below is the output of my commads for your reference. any suggessions will be appriciated.
wls:/offline>
wls:/offline> redirect('C:/oracle/Middleware/user_projects/wlst1_output.log','false')
wls:/offline> help('online')
wls:/offline> help('offline)
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 2
SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : ""
wls:/offline>
wls:/offline>

Hi,
You are getting Lexical Error...because you did not close the String literal offline
WRONG:
wls:/offline> help('offline)
RIGHT:
wls:/offline> help('offline')
There is just a Single Quote difference.
More Info:
http://middlewaremagic.com/weblogic/?page_id=1492
Thanks
Ravish Mody

Similar Messages

  • Firefox 5 seems to cache error redirects.

    Firefox 5 seems to cache error redirects.If for example I get redirected to a 404 then fix the problem with the site, it will still redirect me to the 404.

    Try to Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • Data Flow task with error redirection hangs

    I am migrating an SSIS package from 2005 to 2012.  I have a package that, among other things, contains a data flow task with redirects.  The source is a flat file pipe delimited that we receive from an outside source.  The file contains a
    bunch of bad data including empty lines.  I redirect the bad rows so I can provide an audit back to the list provider.  The file has about 300 k rows.  Since I have completed the migration wizard, the data flow task stalls at 72,173 rows.  I
    can change the number of rows that get loaded by changing the DefaultBufferMaxRows and DefaultBufferSize values but I can't get it anywhere near 300K.  I decided to try rebuilding the data flow task from scratch and found that if I set it to ignore all
    errors, the entire file will load but when I add the redirect it hangs and does not give me any errors.
    I am currently running it in debug mode from Visual Studio.  I have not tried running it from the SS agent yet.
    Any help would be greatly appreciated.  I would like to keep the error redirects if at all possible for audit reasons.
    Thanks in Advance.
    Alan

    The error says it stopped on row 45200 and that the column AgentIdentifier returned status value 4 "Text was truncated..."  This is one of the errors that I have to trap for.  The field preceding AgentIdentifier is a remarks field that typically
    contains embedded pipe characters that throw off the rest of the row.  There are some other errors that I typically find in the data file but that one is the most frequent and is why I have to redirect so I can report back to the client what rows they
    need to fix.
    Thanks for the suggestion.

  • WLST output/error redirection

    Hi, I am practicing WLST commands. I want to redirect both output and error messages to a file instead of stdOut. So I am using redirect command with log file name and boolean value to disable stdout. if my WLST command is successful output is redirect to log file which is fine. But if command is not successful output is displayed on stdout even though I disabled it. error messages not redirected to file. what should i do to redirect error messages to file? below is the output of my commads for your reference. any suggessions will be appriciated.
    wls:/offline>
    wls:/offline> redirect('C:/oracle/Middleware/user_projects/wlst1_output.log','false')
    wls:/offline> help('online')
    wls:/offline> help('offline)
    Traceback (innermost last):
    (no code object) at line 0
    File "<console>", line 2
    SyntaxError: Lexical error at line 2, column 0. Encountered: <EOF> after : ""
    wls:/offline>
    wls:/offline>

    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx1638.f$0(<console>:1)
    at org.python.pycode._pyx1638.call_function(<console>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at org.python.util.InteractiveInterpreter.runcode(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at org.python.util.InteractiveInterpreter.runsource(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.WLST.main(WLST.java:29)
    Caused by: weblogic.management.scripting.ScriptException: Error occured while pe
    rforming configToScript : Exception occurred while walking the tree.
    Use dumpStack() to view the full stacktrace
    at weblogic.management.scripting.ExceptionHandler.handleException(Except
    ionHandler.java:50)
    at weblogic.management.scripting.WLSTUtils.throwWLSTException(WLSTUtils.
    java:181)
    at weblogic.management.scripting.ConfigToScript.walkTheTree(ConfigToScri
    pt.java:555)
    at weblogic.management.scripting.ConfigToScript.walkTheTree(ConfigToScri
    pt.java:403)
    at weblogic.management.scripting.ConfigToScript.convert(ConfigToScript.j
    ava:202)
    at weblogic.management.scripting.WLScriptContext.callc2s(WLScriptContext
    .java:185)
    ... 30 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.management.scripting.ConfigToScript.walkTheTree(ConfigToScri
    pt.java:435)
    at weblogic.management.scripting.ConfigToScript.walkTheTree(ConfigToScri
    pt.java:403)
    at weblogic.management.scripting.ConfigToScript.convert(ConfigToScript.j
    ava:201)
    at weblogic.management.scripting.WLScriptContext.callc2s(WLScriptContext
    .java:184)
    ... 30 more
    Caused by: weblogic.management.ManagementRuntimeException: weblogic.descriptor.D
    escriptorException: Unmarshaller failed
    at weblogic.management.mbeans.custom.ConfigurationExtension.getExtension
    Root(ConfigurationExtension.java:202)
    at weblogic.management.mbeans.custom.WLDFSystemResource.getWLDFResource(
    WLDFSystemResource.java:54)
    at weblogic.management.configuration.WLDFSystemResourceMBeanImpl.getWLDF
    Resource(WLDFSystemResourceMBeanImpl.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.management.scripting.ConfigToScript.walkTheTree(ConfigToScri
    pt.java:435)
    at weblogic.management.scripting.ConfigToScript.walkTheTree(ConfigToScri
    pt.java:403)
    at weblogic.management.scripting.ConfigToScript.convert(ConfigToScript.j
    ava:202)
    at weblogic.management.scripting.WLScriptContext.callc2s(WLScriptContext
    .java:185)
    ... 30 more
    Caused by: weblogic.descriptor.DescriptorException: Unmarshaller failed
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(Mar
    shallerFactory.java:161)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDesc
    riptorManager.java:323)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescript
    orBeanFromReader(AbstractDescriptorLoader2.java:788)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescr
    iptorBean(AbstractDescriptorLoader2.java:409)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
    torBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
    torBean(AbstractDescriptorLoader2.java:768)
    at weblogic.management.mbeans.custom.WLDFSystemResource.loadDescriptor(W
    LDFSystemResource.java:76)
    at weblogic.management.mbeans.custom.ConfigurationExtension.getExtension
    Root(ConfigurationExtension.java:178)
    ... 40 more
    Caused by: com.bea.xml.XmlException: java.lang.RuntimeException: java.lang.NullP
    ointerException
    at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(Refl
    ectionUtils.java:54)
    at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty
    .setValue(RuntimeBindingType.java:539)
    at com.bea.staxb.runtime.internal.MultiIntermediary.setValue(MultiInterm
    ediary.java:81)
    at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType$ElementQNameP
    roperty.fill(ByNameRuntimeBindingType.java:348)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:159)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:47)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElemen
    tProperty(LiteralUnmarshalResult.java:184)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:156)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:47)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElemen
    tProperty(LiteralUnmarshalResult.java:184)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:156)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:47)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(U
    nmarshalResult.java:199)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(Unma
    rshalResult.java:169)
    at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(Unmarshalle
    rImpl.java:65)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(Mar
    shallerFactory.java:150)
    ... 47 more
    Caused by: java.lang.RuntimeException: java.lang.NullPointerException
    at weblogic.diagnostics.harvester.internal.BeanTreeHarvesterImpl$BeanTre
    eHarvesterImplFactory.createBeanTreeHarvesterImpl(BeanTreeHarvesterImpl.java:32)
    at weblogic.diagnostics.harvester.internal.BeanTreeHarvesterImpl$BeanTre
    eHarvesterImplFactory.getInstance(BeanTreeHarvesterImpl.java:38)
    at weblogic.diagnostics.harvester.internal.BeanTreeHarvesterImpl.getInst
    ance(BeanTreeHarvesterImpl.java:44)
    at weblogic.diagnostics.harvester.internal.Validators.isTypeHandled(Vali
    dators.java:263)
    at weblogic.diagnostics.harvester.internal.Validators.validateConfigured
    Type(Validators.java:79)
    at sun.reflect.GeneratedMethodAccessor435.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.diagnostics.harvester.Validators.validateConfiguredType(Vali
    dators.java:61)
    at weblogic.diagnostics.descriptor.WLDFHarvestedTypeBeanImpl.setName(WLD
    FHarvestedTypeBeanImpl.java:108)
    at sun.reflect.GeneratedMethodAccessor434.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(Refl
    ectionUtils.java:48)
    at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty
    .setValue(RuntimeBindingType.java:539)
    at com.bea.staxb.runtime.internal.MultiIntermediary.setValue(MultiInterm
    ediary.java:82)
    at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType$ElementQNameP
    roperty.fill(ByNameRuntimeBindingType.java:348)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:159)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:48)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElemen
    tProperty(LiteralUnmarshalResult.java:184)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:156)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:48)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElemen
    tProperty(LiteralUnmarshalResult.java:184)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:156)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:48)
    ... 51 more
    Caused by: java.lang.NullPointerException
    at weblogic.diagnostics.harvester.internal.BeanTreeRegistrationManager.i
    nitKnownTypes(BeanTreeRegistrationManager.java:210)
    at weblogic.diagnostics.harvester.internal.BeanTreeRegistrationManager.<
    init>(BeanTreeRegistrationManager.java:64)
    at weblogic.diagnostics.harvester.internal.BeanTreeHarvesterImpl.<init>(
    BeanTreeHarvesterImpl.java:52)
    at weblogic.diagnostics.harvester.internal.BeanTreeHarvesterImpl.<init>(
    BeanTreeHarvesterImpl.java:20)
    at weblogic.diagnostics.harvester.internal.BeanTreeHarvesterImpl$BeanTre
    eHarvesterImplFactory.createBeanTreeHarvesterImpl(BeanTreeHarvesterImpl.java:30)
    at weblogic.diagnostics.harvester.internal.BeanTreeHarvesterImpl$BeanTre
    eHarvesterImplFactory.getInstance(BeanTreeHarvesterImpl.java:38)
    at weblogic.diagnostics.harvester.internal.BeanTreeHarvesterImpl.getInst
    ance(BeanTreeHarvesterImpl.java:44)
    at weblogic.diagnostics.harvester.internal.Validators.isTypeHandled(Vali
    dators.java:262)
    at weblogic.diagnostics.harvester.internal.Validators.validateConfigured
    Type(Validators.java:79)
    at sun.reflect.GeneratedMethodAccessor435.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.diagnostics.harvester.Validators.validateConfiguredType(Vali
    dators.java:61)
    at weblogic.diagnostics.descriptor.WLDFHarvestedTypeBeanImpl.setName(WLD
    FHarvestedTypeBeanImpl.java:108)
    at sun.reflect.GeneratedMethodAccessor434.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.staxb.runtime.internal.util.ReflectionUtils.invokeMethod(Refl
    ectionUtils.java:48)
    at com.bea.staxb.runtime.internal.RuntimeBindingType$BeanRuntimeProperty
    .setValue(RuntimeBindingType.java:539)
    at com.bea.staxb.runtime.internal.MultiIntermediary.setValue(MultiInterm
    ediary.java:81)
    at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType$ElementQNameP
    roperty.fill(ByNameRuntimeBindingType.java:348)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:159)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:47)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElemen
    tProperty(LiteralUnmarshalResult.java:184)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:156)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:47)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.unmarshalElemen
    tProperty(LiteralUnmarshalResult.java:184)
    at com.bea.staxb.runtime.internal.LiteralUnmarshalResult.extractAndFillE
    lementProp(LiteralUnmarshalResult.java:156)
    at com.bea.staxb.runtime.internal.ByNameUnmarshaller.deserializeContents
    (ByNameUnmarshaller.java:51)
    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshalIntoInt
    ermediary(AttributeUnmarshaller.java:47)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(U
    nmarshalResult.java:199)
    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(Unma
    rshalResult.java:169)
    at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(Unmarshalle
    rImpl.java:65)
    at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(Mar
    shallerFactory.java:150)
    at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDesc
    riptorManager.java:323)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescript
    orBeanFromReader(AbstractDescriptorLoader2.java:788)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescr
    iptorBean(AbstractDescriptorLoader2.java:409)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
    torBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescrip
    torBean(AbstractDescriptorLoader2.java:768)
    at weblogic.management.mbeans.custom.WLDFSystemResource.loadDescriptor(W
    LDFSystemResource.java:76)
    at weblogic.management.mbeans.custom.ConfigurationExtension.getExtension
    Root(ConfigurationExtension.java:178)
    at weblogic.management.mbeans.custom.WLDFSystemResource.getWLDFResource(
    WLDFSystemResource.java:54)
    at weblogic.management.configuration.WLDFSystemResourceMBeanImpl.getWLDF
    Resource(WLDFSystemResourceMBeanImpl.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.management.scripting.ConfigToScript.walkTheTree(ConfigToScri
    pt.java:435)
    at weblogic.management.scripting.ConfigToScript.walkTheTree(ConfigToScri
    pt.java:403)
    at weblogic.management.scripting.ConfigToScript.convert(ConfigToScript.j
    ava:201)
    at weblogic.management.scripting.WLScriptContext.callc2s(WLScriptContext
    .java:184)
    ... 30 more
    weblogic.management.scripting.ScriptException: Error occured while performing co
    nfigToScript : Exception occurred while walking the tree. : Error occured while
    performing configToScript : Exception occurred while walking the tree.
    Use dumpStack() to view the full stacktrace
    Use dumpStack() to view the full stacktrace
    wls:/offline>

  • WLST : Error connecting to a remote Weblogic server instance from OEPE 3.7

    Attempting a to run a weblogic script connecting to a remote weblogic server instance (10.3.5), which is generating the following exception in OEPE 3.7.2 -
    username = 'weblogic'
    password = 'weblogic6'
    url='t3://xxx.xxx.com:7001'
    connect(username,password,url)
    Connecting to t3://xxx.xxx.com:7001 with userid weblogic ...
    This Exception occurred at Fri Feb 01 13:20:54 MST 2013.
    Error occured while performing connect : Error connecting to the server : Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStub
    Use dumpStack() to view the full stacktrace :
    java.lang.AssertionError: Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStubconnect
    Problem invoking WLST - Traceback (innermost last):
    File "C:\Users\hughese\workspace\12c_wlst\wlst\heapsize.py", line 13, in ?
    File "<iostream>", line 22, in connect
    File "<iostream>", line 648, in raiseWLSTException
    WLSTException: Error occured while performing connect : Error connecting to the server : Failed to generate class for weblogic.management.mbeanservers.compatibility.internal.MBeanHomeImpl_1035_WLStub
    Use dumpStack() to view the full stacktrace
    Connecting to the local weblogic server instance (t3://localhost:7001) works okay.
    From the command prompt (wlst.cmd) I'm able to connect to the remote weblogic server instance -
    wls:/offline> connect('weblogic','xxxxx','t3:xxx.xxx.com:7001') ;
    Connecting to t3://xxx.xxx.com:7001 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'IDMDomain'.
    I've compared the CLASSPATHs between OEPE and the command prompt.
    Any assistance would be greatly appreciated.
    Edited by: 950635 on Feb 1, 2013 7:47 PM

    Hi,
    1)To get mysql JDBC driver to work on my Linux system, i had to add the classpath for the driver to the .bashrc:
    CLASSPATH=./:home/<user>/java/mm.mysql-2.0.6/:home/<user>/java
    Note that I execute the java program as the user <user> (and .bashrc is the config. file of this <user>...). Perhaps you must do this as well for the Oracle driver on your client machine. I don't know if your client machine is UNIX/LINUX or WINDOWS. It should only be clear that the CLASSPATH is set in the config. file of the user under which the java program runs and that this user has the permission to access the files.
    There are no differences between accessing the database locally than accessing it by a network connection. The only thing that matters are that the connection parameters are right and that the network works properly.
    2) are you sure that the table tname (case sensitivity?) exits?
    Marc

  • WLST error in IPV6 enabled Linux machine

    Hi,
    My application creates and configures the weblogic domain for our product thru antInstaller script. The machine I'm installing our product is IPV6 enabled. I've already installed weblogic with using -Djava.net.preferIPv4Stack="false" as suggested in the site:
    http://docs.tpu.ru/docs/oracle/en/owl/E14571_01/doc.1111/e14775/weblogic_server_issues.htm#CIHHBFEA
    I've also made appropriate changes in the url pattern like : http://[<machine IPV6 address>]:<port>/console
    During product installation it asks for admin server multicast ip, machine ip etc. which I've provided in the format [<machine IPV6 address>]
    However, when executing add-machine.py which is a third-party script from weblogic it fails to connect to the machine giving an invalid pad byte exception.
    If the machine ip I give without the square bracket[], it gives an exception as:
    [INFO ][Sep 17 09:30:30]: You have an edit session open, you will lose any outstanding changes if you disconnect.
    [INFO ][Sep 17 09:47:00]: Are you sure you would like to disconnect? (y/n)Disconnected from weblogic server: admin
    [INFO ][Sep 17 09:47:00]: done
    [WARN ][Sep 17 09:47:00]: Problem invoking WLST - Traceback (innermost last):
    [WARN ][Sep 17 09:47:00]: File "/opt/sonus/xauth/installer/4.3.0-A09-16/sfc/weblogic-config/add-machine.py", line 91, in ?
    [WARN ][Sep 17 09:47:00]: File "<iostream>", line 528, in create
    [WARN ][Sep 17 09:47:00]:      at weblogic.management.scripting.EditHandler.create(EditHandler.java:531)
    [WARN ][Sep 17 09:47:00]:      at weblogic.management.scripting.WLScriptContext.create(WLScriptContext.java:331)
    [WARN ][Sep 17 09:47:00]:      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [WARN ][Sep 17 09:47:00]:      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [WARN ][Sep 17 09:47:00]:      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [WARN ][Sep 17 09:47:00]:      at java.lang.reflect.Method.invoke(Method.java:597)
    [WARN ][Sep 17 09:47:00]: java.lang.ClassCastException: java.lang.ClassCastException: java.lang.reflect.InvocationTargetException cannot be cast to weblogic.management.scripting.ScriptException
    [INFO ][Sep 17 09:47:00]:
    [INFO ][Sep 17 09:47:00]:
    [INFO ][Sep 17 09:47:00]:
    [FATAL][Sep 17 09:47:00]: *******************************************
    [FATAL][Sep 17 09:47:00]: Install Failed:
    [FATAL][Sep 17 09:47:00]: /opt/sonus/xauth/installer/4.3.0-A09-16/sfc/build.xml:153: The following error occurred while executing this line:
    /opt/sonus/xauth/installer/4.3.0-A09-16/sfc/build.xml:1153: The following error occurred while executing this line:
    /opt/sonus/xauth/installer/4.3.0-A09-16/sfc/weblogic-config/create-config.xml:79: Java returned: 1
    [FATAL][Sep 17 09:47:00]: /opt/sonus/xauth/installer/4.3.0-A09-16/sfc/build.xml:1153: The following error occurred while executing this line:
    /opt/sonus/xauth/installer/4.3.0-A09-16/sfc/weblogic-config/create-config.xml:79: Java returned: 1
    If anyone is aware for this solution, please let me know.
    Also, I've feq quieries like :
    1. "You have an edit session open, you will lose any outstanding changes if you disconnect. " what does it mean? Is this an error or what?
    2. what are the steps required to in weblogic for IPV6 machine. Should I provide the IP as for example as fd00:10:6b50:4250::a8 or [fd00:10:6b50:4250::a8]
    3. What should be the admin server multicast ip in IPV6 format?
    4. most basic as weblogic claims that from 9.2 onwards it supports IPV6 address, does it actually supports IPV6 format of address?
    Thanks in advance.
    Pankaj

    SmartRavi wrote:
    Hi,
    Our application is basically client server model with DatagramSocket. While server start up, we will create a datagram socket in order to communicate to the clients from the server. The same socket will be used to send the packets i.e request to the clients. It is working fine for a long period, currently we faced an issue with Ipv6 enabled devices. When the server is running on Windows XP or 2003 server with Ipv6 (network interface) configured, the datagram socket is closed intermittently.
    So we cannot able to read any data from the socket.Do you get any exceptions or errors thrown?
    UDP is connectionless so you will not get EOS.
    On some platforms an exception may be thrown from send(), receive() and connect()
    if the host you specified in [DatagramSocket.connect()|http://java.sun.com/javase/6/docs/api/java/net/DatagramSocket.html#connect%28java.net.InetAddress,%20int%29] is not reachable, but you cannot rely on this.
    Whenever we faced this scenario, try to recreate a socket, we faced the below error message.
    java.net.SocketException: Unrecognized Windows Sockets error: 0: Cannot bindAnother datagram socket is already bound to that port.
    Did you close your other datagram socket first? - The one you thought was closed?
    If so, investigate with netstat.
    Is it an existing issue with Jdk1.5 with IPv6 enabled devices?
    How can I solve this problem?
    Why the datagram socket is closed ? any reason please.How did you determine that the UDP socket is closed?
    Invoking [DatagramSocket.isClosed()|http://java.sun.com/javase/6/docs/api/java/net/DatagramSocket.html#isClosed%28%29] will tell you if you already closed the datagram socket.
    Any help will be highly appreciated.

  • Publisher portlet error: Redirected outside of the gateway space

    I get the following error in my Publisher portlets." ..cannot be displayed because the portlet redirected outside of the gateway space". The portlet is using the Published Content web service. The Log spy shows no error and all the publisher diagnostics are working fine. If I change the url for Published Content webservice from ...published_content_redirect.jsp to published_content_noredirect.jsp, it works fine. Any idea? :(

    you have to make sure that the publish target url for your publisher portlets is "in the gateway space" (added to the list of allowed gateway urls) of the "Published Content" web service.

  • During BPM Installation on Solaris, encountered the below WLST Error.

    root@bpm-uat-dev01 # tail -f AdmCenterConsole.log
    [<I> 20/01/11 17:28:12] /opt/bea11/wlserver_10.3/common/bin/wlst.sh: uname: not found
    [<I> 20/01/11 17:28:12] /opt/bea11/wlserver_10.3/common/bin/wlst.sh/opt/bea11/wlserver_10.3/common/bin/wlst.sh: uname: : not foundgrep:
    [<I> 20/01/11 17:28:12] not found
    [<I> 20/01/11 17:28:12] /opt/bea11/wlserver_10.3/common/bin/wlst.sh/opt/bea11/wlserver_10.3/common/bin/wlst.sh: : unamegrep: : not found
    [<I> 20/01/11 17:28:12] not found
    [<I> 20/01/11 17:28:12] /opt/bea11/wlserver_10.3/common/bin/wlst.sh: grep: not found
    [<I> 20/01/11 17:28:12] /opt/bea11/wlserver_10.3/common/bin/wlst.sh: uname: not found
    [<I> 20/01/11 17:28:12] /opt/bea11/wlserver_10.3/common/bin/wlst.sh: expr: not found
    [<I> 20/01/11 17:28:12] /opt/bea11/wlserver_10.3/common/bin/wlst.sh: expr: not found
    [<I> 20/01/11 17:28:12] /opt/bea11/wlserver_10.3/common/bin/wlst.sh: test: unknown operator 0
    This Error occured during starting WLST process via BPM Admin Console..pls advise..
    Edited by: user13396686 on Jan 20, 2011 6:48 PM

    refer:- this may helps you
    11gr2 Database Software Install Problem

  • Paypal redirect error - redirect ok for checkout but not for pay later invoices

    Has anyone had success in people paying paypal after an order?
    We have paypal set up perfectly for checkout. Customer pay then they come back to our website and see they have paid.
    But if the customer gets an order and then logs in online to pay it (e.g http://bit.ly/Uc85R5), Paypal will take them to their payment page, take the payment but when it takes them back to our site an error message comes up:
    ERROR: An unknown error occurred. This is most likely due to the merchant profile not being set up correctly. Please contact your system administrator for help.
    The payment works though, it's just the redirect page confirming their payment. I think the reason for the error is something to do with the code.
    https://ourwebsite.worldsecuresystems.com/PaymentProcess.aspx?paypal=success&tx=2D355607H4466902T&st=Completed&amt=0.02&cc=AUD&cm=13031601|ff02efc9-0d0 8-47f6-8465-da202fadf4f5|eedcf84b-ce7e-4ea6-a8d1-8ed23da22f35|10%2f17%2f2012%2003%3a35%3a4 9&item_number=1817147
    All paypal settings are fine and as per business catalyst knowledge base.
    - The only thing I can think to do is create an item called "Payment" and send the customers the Payment link to pay for their order - ie adding the payment item to a new cart and checking out like that. Any advice?
    Best,
    DD

    Back to initial enquiry, it would be great for us if  BC development team give us just rough information on new features being implemented.
    Say "Paypal standard on standalone webform" is at  considered as "to be implemeneted" then you can at least let us know it's "being considered" because at this stage we don't know whether each request is being considered or disregarded.
    In addition to Simon's word, small business or individuals like us try to stick to one platform (BC here) and some time it's hard to manage jobs. We dropped quite few BC websites and chose other eCommerce platform for because of BC's lack of basic function (I still think BC is a great platform and that's why we stick to it but some time it still doesn't make sense to be honest)
    For instance, a customer wanted forum functionality on BC for their staff communication & project sharing. It's there but it's not usable. It's too out dated, reply function doesn't make sense and forum editor is hopeless. I've contacted BC support over few months and every time I get told that "it's been added to feature request." Now I have no word to tell my client other than "Impossible" so we planning to move the entire BC website to some other. It's quite big loss for us, the client and BC as well. I hope the "wishlist" comes back (not as anybody can add them but somehow as a "feature request" status board ?)
    Anyway, these days a lot of people come to us requesting modern & simple purchasing style but it cannot be done via the shop layout so I guess this might need to be answered soon. Otherwise we need to move (in Australia) to Payflow. Set up fee is $300 and there's $45 monthly fee as well, why so different from US free PayFlow account? this is Australia   then we will need to cancel current payment gateway plan and maybe existing merchant account as well, what a pain it could be !

  • WLST error message

    Hi,
    I fail to run java weblogic.WLST and get this error.
    Exception in thread "main" java.lang.NullPointerException
            at weblogic.utils.FileUtils.find(FileUtils.java:334)
            at weblogic.descriptor.DescriptorClassLoader.findJars(DescriptorClassLoader.java:80)
            at weblogic.descriptor.DescriptorClassLoader.getExtendedClassLoader(DescriptorClassLoader.java:154)
            at weblogic.descriptor.DescriptorClassLoader.getClassLoader(DescriptorClassLoader.java:41)
            at weblogic.WLST.main(WLST.java:19)
    I have already set the classpath using the setWLSEnv.cmd.
    My classpath is
    C:\Oracle\MIDDLE~1\patch_wls1036\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_ocp371\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\PROGRA~1\Java\JDK16~1.0_2\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.6.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;
    I can use java weblogic.Deployer but only this WLST is not usable.

    Hi ,
    Try to set classpath from setDomainEnv first and then run java weblogic.WLST or else as Alisson mentioned you can use wlst.sh or wlst.cmd from following location.
    %WLS_HOME% / common / bin/
    Regards,
    kal

  • WLST error in JDBCDataSourceParamsBean.addJNDIName

    Hi,
    I am trying to add a JNDI name to a data source I have created using WLST. I am running wls version 9.1.
    I have navigated the serverConfig() tree down to JDBCDataSourceParams/data_source_name.
    I have built what I think is a string array of names:
    kNames = java.lang.String["jdbc/a_jndi_name"]
    when I make the call:
    cmo.addJNDIName(kNames)
    I get the error:
    Traceback (innermost last):
    File "<console>", line 1, in ?
    TypeError: addJNDIName(): 1st arg can't be coerced to String
    Can anyone help?
    Thanks in advance,
    Gerry

    I think I can answer my own question, I was trying to do things the weblogic 8 way, on a weblogic 9 server. I found an example script called jdbc_data_source_creation.py in $WEBLOGIC_HOME/samples/server/examples/src/examples/wlst/online
    which showed the weblogic 9 way, which involves navigating the edit() tree.
    Gerry

  • WLST - error on execute...

    Satya,
    I've just installed WLST. I updated the CLASSPATH and started my
    server. When I attempt to run WLST I get the following error...
    C:\WLST>java weblogic.WLST
    Initializing WebLogic Scripting Tool (WLST) ...
    Traceback (innermost last):
    File "<iostream>", line 16, in ?ImportError: No module named management
    What on Earth is this trying to tell me?
    Bill

    I guess I should add that I'm using Weblogic 8.12.
    Bill Stephens wrote:
    Satya,
    I've just installed WLST. I updated the CLASSPATH and started my
    server. When I attempt to run WLST I get the following error...
    C:\WLST>java weblogic.WLST
    Initializing WebLogic Scripting Tool (WLST) ...
    Traceback (innermost last):
    File "<iostream>", line 16, in ?ImportError: No module named management
    What on Earth is this trying to tell me?
    Bill

  • Disable URL error redirection..have no megaload plugin to remove so how then?

    when I go into Infinity blogs I cant seem to get back to my homepage..keeps giving me this error.. I asked how to fix..told to disable megaload plugin and restart..I have no such plugin..how do I fix this?

    See:
    * [http://kb.mozillazine.org/Menu_differences Firefox (Tools) > Options] > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    * [[Options window - Advanced panel#General_tab]]
    See also:
    * http://kb.mozillazine.org/accessibility.blockautorefresh

  • 403 error redirects to login err page

    Does anyone out there know why an authenticated user tried to access a protected resource (which he has no permission to access) but OC4J redirected him to the login err page? It should display a "403 Forbidden" error. Thanks.

    I tried to deploy the JAZN demo (callerInfo) and found the same issue. When I clicked on "callerInfoA" link, it asked to sign in. I entered "developer" and "welcome" and it showed me the callerInfoA protected page. I then clicked on "callerInfoB" and expected to get an "unauthorized" error, but it actually asked me to sign in again. Now I understand this is either an Oracle bug or a default behavior of OC4J.
    My question is: can I work around this and show "Unauthorized" (401) or "Forbidden" (403) when I try to browse a protected resource which I has no access to?
    OC4J gurus: any ideas on this issue?
    Thanks.

  • WLST: error after reconnect following a shutdown

    Hi,
    I'm trying to automate a long task, and there are a few restarts needed for the admin server.
    These will be done over ssh, and this has been tested, and works.
    the problem I have is the following:
    I have a function restart
    +def restart(args):
    shutdown()
    ssh_startAdmin()
    while not running:
    try:
    connectToAdmin()
    running = 1
    except:
    sleep(5)+
    the connectToAdmin() is the same function I use for the initial connect(), and the argumenst are never changed, and passed along as variables.
    however, after the restart of the server I get the following error:
    *javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://magneto:7777: Destination unreachable; nested exception is:*
    however, when I do it in an interactive session it works flawless.
    Any and all help appreciated.
    Greetings,
    Peter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Appearantly, the error you get when trying to connect to a booting domain is caught in interactive, but not in script-mode.
    I just had to except a WLSTException, and do a redirect of the output.

Maybe you are looking for

  • Compatible HP laser jet printer for EBS 12.0.6 on Solaris 10 SPARC 64 bit

    Hi, We have our EBS 12.0.6 on Sun Solaris SPARC 64 bit. There are few hp printer (hp laserjet p2015dn) configured with our application and they are working fine. Now we have to add one more printer but ( hp laserjet p2015dn) is not available now. So

  • Unable to create custom phone labels for new contacts since the upgrade

    I have a AT&T iphone 4 version 4.3.1 and since the last couple of recent upgrades I have been unable to create custom phone labels for any new contacts because the lower label options are gone. This is only a problem with new contacts. My existing co

  • Email signatures adding links

    If I want to make my web url line of my signature link to my web site I can do so by manually Control -clicking the line in my signature and use the link command. Is there a way to have this be the default for every signature so I no longer have to d

  • Photoshop elements 13 editor quits unexpectedly

    I downloaded the new photo's app. Now, when I try to open the photo files in Photoshop elements 13, I get "photoshop elements 13 editor quits unexpectedly". Then the error message says to reopen, I do, the same thing.. quits again!! HELP.. how do i f

  • Customization to allow for Employee's Supervisor to appear in PA20

    Hello Experts, We have just implemented PA and OM in our company.  We do have the link between PA and OM turned on.  The business would like to research a custom solution that will allow the employee's supervisor to show in the employee's PA20 record