Jython - AttributeError: 'NoneType' object has no attribute

Hi,
I'm getting an error while trying to run some jython for adding a managed server to an online domain.
The 1st script picks up the domain.properties file.
java weblogic.WLST managedserver.py domain.properties
In the managedserver.py the problem line is
wlutil.createServer(props['server1.name'], props['server1.listenAddress'], int(props['server1.listenPort']), props['server1.listenSSLPort'], props['domain.msiEnabled'])
in the wlutil.py there is the lines:
#=============================================================================
# Create Server
#=============================================================================
def createServer(name, listenAddress, listenPort, sslListenPort, msiEnabled):
cd('/')
server = create(name, 'Server')
configureServer(server, listenAddress, listenPort, sslListenPort, msiEnabled)
log('Created Server: ' + server.getName())
return server
#=============================================================================
# Configure Server
#=============================================================================
def configureServer(server, listenAddress, listenPort, sslListenPort, msiEnabled):
# server.setListenAddress('111.222.111.222') # Temporary set of address to avoid duplicate binding error
server.setListenPort(listenPort)
server.setListenAddress(listenAddress)
server.setNativeIOEnabled(1)
server.setWeblogicPluginEnabled(1)
if msiEnabled.lower() == 'true':
server.setManagedServerIndependenceEnabled(1)
if (sslListenPort != None) and (sslListenPort > 0):
cd('/Servers/' + server.getName())
ssl = create(server.getName(), 'SSL')
ssl.setEnabled(1)
ssl.setListenPort(sslListenPort)
Running the script I keep getting the exception :
AttributeError: 'NoneType' object has no attribute 'setListenAddress'
Any help appreciated.

Bhabani has suggested you an optimum way of doing this.
However, if your logic has to be complex and cannot be handled by simple SQL, then you may want to use Jython.
I think the problem that you are having is that sourceConnection is getting set to "None".
And this is due to the fact that your code is written on the "target" tab of the procedure. To solve this problem, select the source tab of the procedure and set the options for Oracle DB and an Oracle Logical schema on the source tab. There doesnt need to be any code written in the source tab.
This way odiRef.getConnection("SRC") will return a valid object to your sourceConnection.
[email protected]
Making your ODI journey a success

Similar Messages

  • WLST & ALSB AttributeError: 'None' object has no attribute 'exportProjects'

    I have the following WLST script that exports an ALSB 2.6 project and a Customization file for that project. The script was downloaded from the BEA website sometime ago, and I had it working fine. A recent change broke it, and I'm not sure why. I'm hoping someone can help me out here...
    The script is below:
    <blockquote>
         <p>
         from java.io import FileInputStream
         from java.io import FileOutputStream
         from java.util import ArrayList
         from java.util import Collections
         </p>
         <p>
         from com.bea.wli.sb.util import EnvValueTypes
         from com.bea.wli.config.env import EnvValueQuery;
         from com.bea.wli.config import Ref
         from com.bea.wli.config.customization import Customization
         from com.bea.wli.config.customization import FindAndReplaceCustomization
         </p>
         <p>
         import sys
         </p>
         <p>
         #=======================================================================================
         # Utility function to load properties from a config file
         #=======================================================================================
         def exportAll(exportConfigFile):
         try:
         print "Loading export config from :", exportConfigFile
         exportConfigProp = loadProps(exportConfigFile)
         adminUrl = exportConfigProp.get("adminUrl")
         exportUser = exportConfigProp.get("exportUser")
         exportPasswd = exportConfigProp.get("exportPassword")
         </p>
         <p>
         exportJar = exportConfigProp.get("exportJar")
         customFile = exportConfigProp.get("customizationFile")
         </p>
         <p>
         passphrase = exportConfigProp.get("passphrase")
         project = exportConfigProp.get("project")
         </p>
         <p>
         <strong># connectToServer(exportUser, exportPasswd, adminUrl)
         connect(userConfigFile='connect.properties', userKeyFile='key.properties', url='t3://patten:30001')
         </strong> ALSBConfigurationMBean = findService("ALSBConfiguration", "com.bea.wli.sb.management.configuration.ALSBConfigurationMBean")
         print "ALSBConfiguration MBean found"
         </p>
         <p>
         print project
         if project == None :
         ref = Ref.DOMAIN
         collection = Collections.singleton(ref)
         if passphrase == None :
         print "Export the config"
         theBytes = ALSBConfigurationMBean.export(collection, true, None)
         else :
         print "Export and encrypt the config"
         theBytes = ALSBConfigurationMBean.export(collection, true, passphrase)
         else :
         ref = Ref.makeProjectRef(project);
         print "Export the project", project
         collection = Collections.singleton(ref)
         print "MADE IT HERE", project
         <strong> theBytes = ALSBConfigurationMBean.exportProjects(collection, passphrase)
         </strong> print "MADE IT HERE 2", project
         </p>
         <p>
         aFile = File(exportJar)
         out = FileOutputStream(aFile)
         out.write(theBytes)
         out.close()
         print "ALSB Configuration JAR file: "+ exportJar + " has been exported"
         </p>
         <p>
         if customFile != None:
         print collection
         customList = ArrayList()
         query = EnvValueQuery(None, Collections.singleton(EnvValueTypes.WORK_MANAGER), collection, false, None, false)
         customEnv = FindAndReplaceCustomization('Set the right Work Manager', query, 'Production System Work Manager')
         customList.add(customEnv)
         query = EnvValueQuery(None, Collections.singleton(EnvValueTypes.SERVICE_URI), collection, false, 'winthrop.namerica.idexxi.com:50002', false)
         customEnv = FindAndReplaceCustomization('Update To the Correct Server and Port Number', query, 'wesley.namerica.idexxi.com:50005')
         print 'EnvValueCustomization created'
         customList.add(customEnv)
         print customList
         aFile = File(customFile)
         out = FileOutputStream(aFile)
         Customization.toXML(customList, out)
         out.close()
         </p>
         <p>
         print "ALSB Dummy Customization file: "+ customFile + " has been exported"
         except:
         raise
         dumpStack()
         #=======================================================================================
         # Utility function to load properties from a config file
         #=======================================================================================
         </p>
         <p>
         def loadProps(configPropFile):
         propInputStream = FileInputStream(configPropFile)
         configProps = Properties()
         configProps.load(propInputStream)
         return configProps
         </p>
         <p>
         #=======================================================================================
         # Connect to the Admin Server
         #=======================================================================================
         </p>
         <p>
         def connectToServer(username, password, url):
         connect(username, password, url)
         domainRuntime()
         </p>
         <p>
         # EXPORT script init
         try:
         exportAll(sys.argv[1])
         </p>
         except:
         print "Unexpected error: ", sys.exc_info()[0]
         dumpStack()
         raise
         When I connect to the admin server using the "connectToServer" command (commented out in the code above) the script works fine. When I tried to use the "connect" command, using a connect.properties file instead of a plain text userid and password, the line:
         <strong>theBytes = ALSBConfigurationMBean.exportProjects(collection, passphrase)
         </strong>fails and I get an error that says: <strong>AttributeError: 'None' object has no attribute 'exportProjects'
         </strong>Can someone explain to me the difference between these two commands, and if there is anything I can do to tweak this code to get it working using 'connect' vs. 'connectToServer' syntax?
    </blockquote>

    I'm getting the following error while doing an export from alsb2.1 env. using wlst invoked via ant:
    C:\Users\vxvm\import_export_test_ALSB21\import-export>ant export
    Buildfile: build.xml
    export:
    [echo] exportscript: export.py
    [java]
    [java] Initializing WebLogic Scripting Tool (WLST) ...
    [java]
    [java] Welcome to WebLogic Server Administration Scripting Shell
    [java]
    [java] Type help() for help on available commands
    [java]
    [java] Loading export config from : export.properties
    [java] Connecting to t3://localhost:7003 with userid weblogic ...
    [java] Successfully connected to Admin Server 'AdminServer' that belongs to
    domain 'alsb21_domain'.
    [java]
    [java] Warning: An insecure protocol was used to connect to the
    [java] server. To ensure on-the-wire security, the SSL port or
    [java] Admin port should be used instead.
    [java]
    [java] Location changed to domainRuntime tree. This is a read-only tree wit
    h DomainMBean as the root.
    [java] For more help, use help(domainRuntime)
    [java]
    [java]
    [java] ALSBConfiguration MBean found
    [java] None
    [java] Export the config
    [java] Unexpected error: exceptions.AttributeError
    [java] No stack trace available.
    [java] Problem invoking WLST - Traceback (innermost last):
    [java] File "C:\Users\vxvm\import_export_test_ALSB21\import-export\export
    .py", line 96, in ?
    [java] File "C:\Users\vxvm\import_export_test_ALSB21\import-export\export
    .py", line 42, in exportAll
    [java] AttributeError: 'NoneType' object has no attribute 'export'
    [java]
    [java] Java Result: 1
    BUILD SUCCESSFUL
    Here is my export.py:
    from java.io import FileInputStream
    from java.io import FileOutputStream
    from java.util import ArrayList
    from java.util import Collections
    from com.bea.wli.sb.util import EnvValueTypes
    from com.bea.wli.config.env import EnvValueQuery;
    from com.bea.wli.config import Ref
    from com.bea.wli.config.customization import Customization
    from com.bea.wli.config.customization import FindAndReplaceCustomization
    import sys
    #=======================================================================================
    # Utility function to load properties from a config file
    #=======================================================================================
    def exportAll(exportConfigFile):
    try:
    print "Loading export config from :", exportConfigFile
    exportConfigProp = loadProps(exportConfigFile)
    adminUrl = exportConfigProp.get("adminUrl")
    exportUser = exportConfigProp.get("exportUser")
    exportPasswd = exportConfigProp.get("exportPassword")
    exportJar = exportConfigProp.get("exportJar")
    customFile = exportConfigProp.get("customizationFile")
    passphrase = exportConfigProp.get("passphrase")
    project = exportConfigProp.get("project")
    connectToServer(exportUser, exportPasswd, adminUrl)
    ALSBConfigurationMBean = findService("ALSBConfiguration", "com.bea.wli.sb.management.configuration.ALSBConfigurationMBean")
    print "ALSBConfiguration MBean found"
    print project
    if project == None :
    ref = Ref.DOMAIN
    collection = Collections.singleton(ref)
    if passphrase == None :
    print "Export the config"
    theBytes = ALSBConfigurationMBean.export(collection, true, None)
    else :
    print "Export and encrypt the config"
    theBytes = ALSBConfigurationMBean.export(collection, true, passphrase)
    else :
    ref = Ref.makeProjectRef(project);
    print "Export the project", project
    collection = Collections.singleton(ref)
    theBytes = ALSBConfigurationMBean.exportProjects(collection, passphrase)
    aFile = File(exportJar)
    out = FileOutputStream(aFile)
    out.write(theBytes)
    out.close()
    print "ALSB Configuration file: "+ exportJar + " has been exported"
    if customFile != None:
    print collection
    query = EnvValueQuery(None, Collections.singleton(EnvValueTypes.WORK_MANAGER), collection, false, None, false)
    customEnv = FindAndReplaceCustomization('Set the right Work Manager', query, 'Production System Work Manager')
    print 'EnvValueCustomization created'
    customList = ArrayList()
    customList.add(customEnv)
    print customList
    aFile = File(customFile)
    out = FileOutputStream(aFile)
    Customization.toXML(customList, out)
    out.close()
    print "ALSB Dummy Customization file: "+ customFile + " has been created"
    except:
    raise
    #=======================================================================================
    # Utility function to load properties from a config file
    #=======================================================================================
    def loadProps(configPropFile):
    propInputStream = FileInputStream(configPropFile)
    configProps = Properties()
    configProps.load(propInputStream)
    return configProps
    #=======================================================================================
    # Connect to the Admin Server
    #=======================================================================================
    def connectToServer(username, password, url):
    connect(username, password, url)
    domainRuntime()
    # EXPORT script init
    try:
    exportAll(sys.argv[1])
    except:
    print "Unexpected error: ", sys.exc_info()[0]
    dumpStack()
    raise
    and export.properties:
    # OSB Admin Security Configuration #
    adminUrl=t3://localhost:7003
    exportUser=weblogic
    exportPassword=welcome3
    #exportConfigFile=true
    # OSB Jar to be exported #
    exportJar=sbconfig.jar
    includeDependencies=true
    # Optional passphrase and project name #
    #passphrase=123
    # Optional, create a dummy customization file #
    #customizationFile=devcustomize.xml
    Can someone help me out in resolving the above issue,Thanks!

  • Meld: AttributeError: 'module' object has no attribute 'pygtk_version'

    Why am I seeing this when I try to launch meld?
    [trusktr@starlancer ~]$ meld
    Traceback (most recent call last):
    File "/usr/bin/meld", line 115, in <module>
    assert gtk.pygtk_version >= pygtkver
    AttributeError: 'module' object has no attribute 'pygtk_version'
    EDIT: My pygtk and meld packages were both corrupt. I had to do pacman -S -f pygtk meld to fix it.
    Last edited by trusktr (2012-04-04 03:41:45)

    Because the generated script throws exception now
    Problem invoking WLST - Traceback (innermost last):
    File "ScriptForJMSTopic.py", line 6, in ?
    at weblogic.management.jmx.ExceptionMapper.matchJMXException(ExceptionMapper.java:87)
    at weblogic.management.jmx.MBeanServerInvocationHandler.doInvoke(MBeanServerInvocationHandler.java:549)
    at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:382)
    at $Proxy8.createFileStore(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    java.lang.RuntimeException: java.lang.RuntimeException: The requested operation is not exposed through JMX in this context: createFileStore
    and line number six is
    cmo.createFileStore('FileStore-1')
    Edited by: padmanabh s on Jan 30, 2013 1:58 AM

  • The CustomDatumExample.java only works if the Employee object has 2 attributes.

    The CustomDatumExample.java only works
    if the Employee object has 2 attributes -
    (EmpName and EmpNo). If I try to add
    another attribute to the Employee object I get java.lang.ArrayIndexOutOfBoundsException: 2 on the getAttr3 method.
    Anyone know why? Thanks.
    Employee object
    CREATE TYPE employee AS OBJECT
    (empname VARCHAR2(50), empno INTEGER,
    attr3 VARCHAR2(50));
    Custom object class
    public class Employee implements CustomDatum, CustomDatumFactory
    public static final String SQLNAME = "EMPLOYEE";
    public static final int SQLTYPECODE = OracleTypes.STRUCT;
    MutableStruct _struct;
    static int[] _sqlType =
    12, 4
    static CustomDatumFactory[] _factory = new CustomDatumFactory[3];
    static final Employee _EmployeeFactory = new Employee();
    public static CustomDatumFactory getFactory()
    return _EmployeeFactory;
    /* constructor */
    public Employee()
    struct = new MutableStruct(new Object[3], sqlType, _factory);
    /* CustomDatum interface */
    public Datum toDatum(OracleConnection c) throws SQLException
    return struct.toDatum(c, SQL_NAME);
    /* CustomDatumFactory interface */
    public CustomDatum create(Datum d, int sqlType) throws SQLException
    if (d == null) return null;
    Employee o = new Employee();
    o._struct = new MutableStruct((STRUCT) d, sqlType, factory);
    return o;
    /* accessor methods */
    public String getEmpname() throws SQLException
    { return (String) _struct.getAttribute(0); }
    public void setEmpname(String empname) throws SQLException
    { _struct.setAttribute(0, empname); }
    public Integer getEmpno() throws SQLException
    { return (Integer) _struct.getAttribute(1); }
    public void setEmpno(Integer empno) throws SQLException
    { _struct.setAttribute(1, empno); }
    public String getAttr3() throws SQLException
    { return (String) _struct.getAttribute(2); }
    public void setAttr3(String attr3) throws SQLException
    { _struct.setAttribute(2, attr3); }
    }

    You also need to add an appropriate element to the _sqlType array.
    In practice, it is easiest to have JPublisher regenerate the CustomDatum class when you have changed your object type definition:
    jpub -user=scott/tiger -sql=EMPLOYEE:Employee

  • Cinammon "'module' object has no attribute 'version'"

    Trying to run cinammon-settings results in the following:
    [cody@cody-arch ~]$ cinnamon-settings
    'module' object has no attribute 'VERSION'
    How would I go about fixing this?

    Because the generated script throws exception now
    Problem invoking WLST - Traceback (innermost last):
    File "ScriptForJMSTopic.py", line 6, in ?
    at weblogic.management.jmx.ExceptionMapper.matchJMXException(ExceptionMapper.java:87)
    at weblogic.management.jmx.MBeanServerInvocationHandler.doInvoke(MBeanServerInvocationHandler.java:549)
    at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:382)
    at $Proxy8.createFileStore(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    java.lang.RuntimeException: java.lang.RuntimeException: The requested operation is not exposed through JMX in this context: createFileStore
    and line number six is
    cmo.createFileStore('FileStore-1')
    Edited by: padmanabh s on Jan 30, 2013 1:58 AM

  • PyGTK - 'module' has no attribute 'require'

    Hi guys,
    I'm new to both Python and PyGTK, just writing a Hello World program in PyGTK and I'm getting the following error:
    Traceback (most recent call last):
    File "./pygtk.py", line 3, in <module>
    import pygtk
    File "/home/dave/chirrup/pygtk.py", line 4, in <module>
    pygtk.require('2.0')
    AttributeError: 'module' object has no attribute 'require'
    It's choking on:
    pygtk.require('2.0')
    It works when i remove the offending line, but what exactly is wrong with this line? It's in every PyGTK demonstration I've seen, and Googling this error has only confused me.
    Help really appreciated, cheers!

    In [1]: import pygtk
    In [2]: pygtk.
    pygtk.__all__ pygtk.__file__ pygtk.__new__ pygtk.__sizeof__ pygtk._pygtk_dir_pat pygtk.require20
    pygtk.__builtins__ pygtk.__format__ pygtk.__package__ pygtk.__str__ pygtk._pygtk_required_version pygtk.sys
    pygtk.__class__ pygtk.__getattribute__ pygtk.__reduce__ pygtk.__subclasshook__ pygtk.fnmatch
    pygtk.__delattr__ pygtk.__hash__ pygtk.__reduce_ex__ pygtk._get_available_versions pygtk.glob
    pygtk.__dict__ pygtk.__init__ pygtk.__repr__ pygtk._our_dir pygtk.os
    pygtk.__doc__ pygtk.__name__ pygtk.__setattr__ pygtk._pygtk_2_0_dir pygtk.require
    In [2]: pygtk.re
    pygtk.require pygtk.require20
    In [2]: pygtk.require
    Out[2]: <function require at 0xe98c80>

  • How to find out which object has a specific attribute value

    Hi all,
    which is the easiest way to check in a collection of objects which object has an attribute with a specific value?
    i.e. I have n objects of classA and they all have an attribute "String value;".
    How can I check which object has that attribute set to "myvalue"?
    Thanks,
    A.

    hi,
    i don't know if this would be the best way to do it, but i would add all the instances of the objects to a hashtable with the key as the attribute with which you want to search them. You would then retrieve the object using the value.
    Cath

  • Pitivi:Attribute error Pipeline has not attribute add_timeline

    Hi there,
    I cannot launch pitivi. It always crashes with the following error:
    ~ pitivi
    Traceback (most recent call last):
    File "/usr/bin/pitivi", line 142, in <module>
    _run_pitivi()
    File "/usr/bin/pitivi", line 131, in _run_pitivi
    sys.exit(ptv.main(sys.argv))
    File "/usr/lib/pitivi/python/pitivi/application.py", line 449, in main
    ptv = StartupWizardGuiPitivi(debug=options.debug)
    File "/usr/lib/pitivi/python/pitivi/application.py", line 392, in __init__
    self.projectManager.newBlankProject(emission=False)
    File "/usr/lib/pitivi/python/pitivi/project.py", line 426, in newBlankProject
    project.createTimeline()
    File "/usr/lib/pitivi/python/pitivi/project.py", line 881, in createTimeline
    self.pipeline.add_timeline(self.timeline)
    File "/usr/lib/pitivi/python/pitivi/utils/pipeline.py", line 537, in add_timeline
    if GES.Pipeline.add_timeline(self, timeline):
    AttributeError: type object 'Pipeline' has no attribute 'add_timeline'
    Do I miss a dependency that is not installed automatically?
    Last edited by orschiro (2014-03-22 08:53:50)

    While waiting for the updated package. You can install clutter-gst dependency manually and package 1.2.0 of gnonlin. Here is the PKGBUILD for updated gnonlin.
    # $Id$
    # Maintainer: Alexander Rødseth <[email protected]>
    # Contributor: Ionut Biru <[email protected]>
    # Contributor: Abhishek Dasgupta <[email protected]>
    # Contributor: William Rea <[email protected]>
    pkgname=gnonlin
    pkgver=1.2.0
    pkgrel=1
    pkgdesc='Library for creating non-linear video editors'
    arch=('x86_64' 'i686')
    url='http://gnonlin.sourceforge.net/'
    depends=('gstreamer')
    makedepends=('python' 'gst-plugins-base' 'pkgconfig')
    license=('LGPL')
    source=("http://gstreamer.freedesktop.org/src/$pkgname/$pkgname-$pkgver.tar.xz")
    sha256sums=('876e225c250b95b1a0632c284afc472b08a5072539b233e414a96af426581e96')
    build() {
    cd "$srcdir/$pkgname-$pkgver"
    ./configure --prefix=/usr
    make
    package() {
    cd "$srcdir/$pkgname-$pkgver"
    make DESTDIR="$pkgdir" install
    # vim:set ts=2 sw=2 et:

  • Inserting a new row in a BC4J View Object with an attribute of type BFileDomain

    Hi all,
    I've to insert a row in a View Object with an attribute of type oracle.jbo.domain.BFileDomain.
    I do this within an Application Module's method, which has an input parameter of type byte[]. This parameter will be the content of the BFILE.
    What's the right way for doing that?
    I've tried with the following code, but I've got an exception in committing the transaction:
    public int serializeDocument(int codDomanda, int codSorgente, byte[] content, String est, int type, int cost, String title, String arg) throws JboException {
    int code = 0;
    //File f;
    DocumentiTwoView = getDocumentiTwoView();
    java.sql.Statement stmt = ((DBTransaction) getTransaction()).createStatement(1);
    try {
    Row docRow = DocumentiTwoView.createRow();
    SequenceImpl seq = new SequenceImpl("documenti_seq", getDBTransaction());
    Integer next = (Integer) seq.getData();
    code = next.intValue();
    docRow.setAttribute("Coddocumento", new Number(code));
    docRow.setAttribute("Titolo", (String) title);
    docRow.setAttribute("Argomento", (String) arg);
    docRow.setAttribute("Costo", new Number(cost));
    docRow.setAttribute("Tipo", new Number(type));
    docRow.setAttribute("Coddomanda", new Number(codDomanda));
    docRow.setAttribute("Codsorgente", new Number(codSorgente));
    //f = new File("Doc" + code + "." + est)
    BFILE src_lob = null;
    ResultSet rset = null;
    rset = stmt.executeQuery ("SELECT BFILENAME('DOC_DIR', 'Doc" + code + "." + est + "') FROM DUAL");
    if (rset.next()) {
    src_lob = ((OracleResultSet)rset).getBFILE(1);
    BFileDomain bfd = new BFileDomain(src_lob);
    bfd.setBytes(content);
    bfd.saveToDatabase(getTransaction());
    docRow.setAttribute("Contenuto", (BFileDomain) bfd);
    catch (Exception ex) {
    getTransaction().rollback();
    throw new oracle.jbo.JboException("Impossibile creare il nuovo documento:\n" + ex.getMessage());
    finally {
    try {
    stmt.close();
    catch (Exception nex) {
    try {
    // Commit the whole transaction
    getTransaction().commit();
    catch (Exception e) {
    e.printStackTrace();
    getTransaction().rollback();
    throw new JboException("Impossibile eseguire il commit della transazione:\n" + e.getMessage());
    return code;
    Thanks a lot in advance!
    Christian
    null

    Odd, have you disabled caching and indirection? (NoIdentityMap, dontUseIndirection, or alwaysRefresh/disableCacheHits). If so, then this could be the issue.
    Otherwise please include the sample code you use to perform this, and verify that you do not have any unusual code in your set/get methods or in descriptor events. Also turn TopLink logging on and include a sample. Also ensure that you do not modify your objects until after registering them in the unit of work, and only modify the unit of work clones.

  • Objects with no attributes

    Any idea why an object must have attributes? Is there any good reason or is it just something Oracle did?
    I can see why an instantiable object has to have attributes - otherwise what use is it - but a non-instantiable object seems like it often shouldn't need any - it's just there to be a generic place holder in an object hierarchy.
    I'm getting kind of fed up with creating objects with a single attribute called "DUMMY".

    Hi,
    At least one attribute is mandatory for a TYPE Object.
    Attributes like a data structure and Methods like a legal operation on Attributes.
    An object type is the closest thing to a class.
    It is also very similar to an abstract data type (ADT).
    Regards,
    Sailaja

  • Creating object type no attributes... how???

    Hi I need to creating any object type has no attribute, its possibily?
    I need that only send to java class.
    example:
    create type t1 as object();
    Oracle exception!!!! please help me, thanks

    No attributes and no methods? You're talking about "incomplete types" in that case (at least in 10g).
    A quote:
    "An incomplete type is a type created by a forward type definition. It is called "incomplete" because it has a name but no attributes or methods. It can be referenced by other types, and so can be used to define types that refer to each other. However, you must fully specify the type before you can use it to create a table or an object column or a column of a nested table type."
    If it fits your requirement, look here:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_8001.htm#SQLRF01506
    Boa sorte.
    PS: It talks there about "SQLJ object type" but I never used them so I cannot comment. Check that out too.

  • "Object has visibility layer override" .. how do i stop this?

    using CS3...I understand what makes this come up but dont understand how to make things update...
    Here is one example where this comes up. I have a bunch of business cards with each being its own file, each with a 2nd layer to it that is just the cut area border around it. When I print each card, i want the cut border to show for the customer. When i go to actually print, i will put them all on the same sheet and print at one time. I do this by dragging the ID files into the document that will have all the cards. Of course any changes made to the individual files will automatically (sometimes manually) update on the sheet with all the cards. The only problem I run into is if after I add these cards to the sheet and they still have those borders on it, I then have to go into the individual files and turn off the layers that have that border but this will never update in the linked file on the document using it. Instead with layers, I get this yellow and red eyeball that seems to say "Object has visibility layer override". The borders will still show on the document its linked to but the individual file, the borders are not there.
    How do I get the files using the linked ID files to read just as the individual files are without showing those layers? The only way around this I can find is to remove each card, turn off the layers in the individual files, and put the cards back on...which doesnt always do the trick, but still. Thanks!

    lark,
    Select the link on the page, then go to the layer visibility options dialog. There's a filed there to keep or update the layer visibility when updating the link. Perhaps you need to change that.
    Peter

  • The object has been corrupted, and it's in an inconsistent state. The following validation errors happened:

    Dear Friend
    I have got below error message in the exchagne server 2013 while i tried to open the console of delegation mailbox . It was comes once i was deploy lync server 2013 in the same forest.
    warning
    The object has been corrupted, and it's in an inconsistent state. The following validation errors happened:
    The access control entry defines the ObjectType 'd819615a-3b9b-4738-b47e-f1bd8ee3aea4' that can't be resolved..
    The access control entry defines the ObjectType 'e2d6986b-2c7f-4cda-9851-d5b5f3fb6706' that can't be resolved..
    If you feel to ask to more clarification, please let  me know.
    Regards, Md Ehteshamuddin Khan All the opinions expressed here is mine. This posting is provided "AS IS" with no warranties or guarantees and confers no rights.

    Hi,
    Based on the description, you got warnings when you tried to click the mailbox delegation option of mailbox properties in EAC. Is it right?
    Did this issue affected only one user mailbox or all of them?
    From the error message, it seems that this issue is related to the corrupt permissions. Please use the
    Get-MailboxPermission cmdlet to retrieve permissions on a mailbox to check result.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • Desktop Intelligence: Business Objects has stopped working in Windows Vista

    Hi,
    We have installed the BO XI 3.1 SP3 client components in Windows Vista Machine. When I was working with Desktop Intelligence, the program keep terminates irregularly. A pop-up window would appear saying "Business Objects has stopped working. A problem caused the program to stop working correctly. Please close the program." It asks me to close the program. The window always pops up even when I just terminate the BOE normally. It sometimes pops up when I was just trying to refresh the data or in the middle of working with the application.
    THanks.

    Hi expert
    I have install the BO XI into my laptop with 32-bit OS and Windows Vista Enterprise SP 2 but still experience the same error message "Business Objects has stopped working - A problem caused the program to stop working correctly. Please close the program".
    Please help as my daily task require to use BO very often.
    Thank you very much
    br
    Elwin

  • Muse JS Assert: Error calling selector function:Type error: Object has no method Muse Menu

    When exporting html and viewing locally we receive the following error... This error disappears after removing menu from top of page. This error does not occur when viewed on Outdoors360.businesscatalyst.com (our temporary site)
    Muse JS Assert: Error calling selector function:Type error: Object has no method Muse Menu
    Any ideas??

    I fix the problem.
    I have carefully reviewed JAVASCRIPT files and I could see that these are not a major influence within the site, only are reference code and utilities of the same application.
    By removing these files nothing has stopped working, I thought I would have some error in the sliders, or opacities, but no, nothing happened.
    DELETE IT
    FRANCISCO CATALDO DISEÑADOR GRÁFICO

Maybe you are looking for