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
Similar Messages
-
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 -
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! -
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 -
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 -
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
nullOdd, 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. -
Hi All,
I have followed the instruction (Ch. 3) in the SMC User Guide to create a node. I then followed the instruction to create a module object, but it failed. When I clicked "Get Module" the program returned an "unable to connect" error message after a minutes later. I noticed that on the node/host that I am trying to connect displayed an error message "error while receiving a pdu from host.51817. The message has a wrong version (2)". I also noticed that the "Load Module" option on the main console is grayed out. Please let me know if I've misconfigured something. Thank you.
TamHi Tam,
When I clicked "Get Module" the program returned an
n "unable to connect" error message after a minutes
later. I noticed that on the node/host that I am
trying to connect displayed an error message "error
while receiving a pdu from host.51817. The message
has a wrong version (2)". I also noticed that the
"Load Module" option on the main console is grayed
out. Please let me know if I've misconfigured
something. Thank you.There is a much easier way to make an icon for a module in the main topology. Double-click on the Agent that's running the module to open its host deatils window. In the left pane, right-click on the module you want to make the icon for and choose "Copy". Then click back into your main topology window, right-click on the folder/domain you want the icon in, and choose "Paste Into".
Copy/paste is a quicker and easier way to make module icons than the Edit-->Create Object method.
Oh, and Sun Blade 2500s are supported by SunMC.
Regards,
[email protected] -
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: -
"Application module is not a root app module but has no parent"
This is to follow up on my answered question on rootAN substitution
Re: "login session has expired" after am substitution
I am working on an OAF extension.
I have a new LOV region. I extended (to be substituted) the seeded VO, call it xxVO. And I have three custom methods using this xxVO that are called from processFormRequest of my controller which extends the seeded controller.
So putting these methods in rootAM and AM substitution didn't work as some folks pointed out.
So I created xxAM (extends root AM), put xxVO in xxAM’s data model and put my methods in xxAM, set this xxAM as AMDefinition for my custom LOV region.
In my controller I do
OAApplicationModule xxAM = new xxprg.oracle.apps.icx.por.req.server.xxprgRequisitionAMImpl();
But I am getting
=> oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidOwnerException: JBO-25301: Application module is not a root app module but has no parent
at
xxAM.invokeMethod("handleChangeRequester", parameters);
I found a few posts on the same topic. One advise was to not instantiate ‘new’ AM but do something like this
Xo2cAcctOviewExtAMImpl amExt = (Xo2cAcctOviewExtAMImpl )pageContext.getApplicationModule(webBean);
In this example I am confused about the fact that ‘getApplicationModule(webBean);’ which is used in the signature of the processFormRequest will return a ‘rootAM’, is this correct?
There was another workaround mentioned in other posts to not use xxAM at all but build a class to mimic an xxAM passing all needed values that custom methods require. In which case how(or better where) do I instantiate xxVO since now xxVO won’t be part of any AM data model?
Can someone please clarify.
Thank you
AnatoliyPratap,
Thank you for the response.
The reason I need to use new xxCO on the page is this.
Seeded page CheckoutLinesPG.
It has advanced table on it where every column has it's one external region.
The new LOV region xxRN is put on a page also under this table new column.
1. When a requester (seeded region on the seeded page) is changed then my xxLOV should reflect the change and be populated according to what is selected in the Requester LOV.
2. When one-time address is added (another seeded region on the seeded page) my xxLOV should be disabled, when one time address taken out - enabled again.
So xxCO should apply to the whole page.
The VO behind advanced table PoRequisitionLinesVO is extended with 2 additional attributes and will substitute, the new xxVO is under xxAM data model.
All works fine with my methods in the seeded RequisitionAM which I get a handle to in the xxCO. But I don;t know how to get the handle to the xxAM if I put my methods there.
Thanks,
Anatoliy
P.S. just fyi - I know it is not the recommended approach but what I did for now I put all calls into the controller - in the controller I can get a handle to root AM, through that I am getting a handle to xxVO which (!) is substituted during runtime with my xxVO. But if you can figure out how to get a handle to xxAM in my case it will be great.
Edited by: asmirnov on Mar 24, 2009 2:04 PM -
[Sybase JDBC Driver]Object has been closed
Hi,
I am getting the following error when accessing a datasource in an EJB on Weblogic using the Data Direct Drivers.
java.sql.SQLException: [DataDirect][Sybase JDBC Driver]Object has been closed.
The code works every other time. the first time through it works the second time I get the error.
Any insite would be appricated.
Here is my code
public String test(String id)
System.out.println ("test1");
DataSource ds = null;
Connection conn = null;
PreparedStatement stmt = null;
PreparedStatement stmt2 = null;
String ret = "?????";
try
System.out.println ("read data - prepare");
InitialContext ic = new InitialContext();
ds = (DataSource)ic.lookup("java:comp/env/jdbc/dataconn");
conn = ds.getConnection();
String sql = "SELECT * FROM myTable WHERE ID = ?";
System.out.println ("read data - conn.prepareStatement(sql);");
stmt = conn.prepareStatement(sql);
stmt.setString(1, id);
// stmt.setMaxRows(1000);
System.out.println ("read data - stmt.executeQuery();");
ResultSet rs = stmt.executeQuery();
System.out.println ("read data - read");
if(!rs.next())
ret = "Not found";
else
ret = "found";
sql = "UPDATE myTable SET column1 = column1 + 1 WHERE ID = ?";
System.out.println ("update data - prepare");
stmt2 = conn.prepareStatement(sql);
stmt2.setString(1, id);
ret = ret + stmt2.executeUpdate();
System.out.println ("update data - update");
catch(Exception e)
e.printStackTrace();
finally
try
stmt.close();
catch(Exception exception1) { }
try
stmt2.close();
catch(Exception exception1) { }
try
conn.close();
catch(Exception exception1) { }
stmt = null;
stmt2 = null;
conn = null;
return ret;
}Hi. What version of weblogic, and can you print the whole stacktrace?
That way I'll know which object is already closed. This hints at an
already-fixed bug, but I'm not sure yet... And tell me what happens
if you close your result set after you do your call to next(). Lastly,
you can save some DBMS traffic if you change the query to:
"SELECT 1 FROM myTable WHERE ID = ?"
Then regardless of how wide the table is, and whether the table data
is in DBMS memory, as long as there's an index on ID, the query only
needs to use the index, not the data page to answer. If there's an
index entry for your ID value, you'll get one row with 1 in it, else
nothing.
thanks
Joe
Scot McReynolds wrote:
Hi,
I am getting the following error when accessing a datasource in an EJB on Weblogic using the Data Direct Drivers.
java.sql.SQLException: [DataDirect][Sybase JDBC Driver]Object has been closed.
The code works every other time. the first time through it works the second time I get the error.
Any insite would be appricated.
Here is my code
public String test(String id)
System.out.println ("test1");
DataSource ds = null;
Connection conn = null;
PreparedStatement stmt = null;
PreparedStatement stmt2 = null;
String ret = "?????";
try
System.out.println ("read data - prepare");
InitialContext ic = new InitialContext();
ds = (DataSource)ic.lookup("java:comp/env/jdbc/dataconn");
conn = ds.getConnection();
String sql = "SELECT * FROM myTable WHERE ID = ?";
System.out.println ("read data - conn.prepareStatement(sql);");
stmt = conn.prepareStatement(sql);
stmt.setString(1, id);
// stmt.setMaxRows(1000);
System.out.println ("read data - stmt.executeQuery();");
ResultSet rs = stmt.executeQuery();
System.out.println ("read data - read");
if(!rs.next())
ret = "Not found";
else
ret = "found";
sql = "UPDATE myTable SET column1 = column1 + 1 WHERE ID = ?";
System.out.println ("update data - prepare");
stmt2 = conn.prepareStatement(sql);
stmt2.setString(1, id);
ret = ret + stmt2.executeUpdate();
System.out.println ("update data - update");
catch(Exception e)
e.printStackTrace();
finally
try
stmt.close();
catch(Exception exception1) { }
try
stmt2.close();
catch(Exception exception1) { }
try
conn.close();
catch(Exception exception1) { }
stmt = null;
stmt2 = null;
conn = null;
return ret; -
Required attribute version missing from element xsl:stylesheet
Tools:
Jdeveloper : 10.1.3.3
Error:
Every time I add transform process activity and try to create mappings I am not able to save them.
In source view I see this error "Required attribute version missing from element xsl:stylesheet".
I cannot continue and do not understand how to proceed.
Any ideas ?We have the same problem here from time to time. This has to be some kind of bug in JDeveloper. There is nothing wrong with our xsl files! But for some reason JDeveloper complains about the version attribute of xsl:stylesheet which in all the cases I've seen IS THERE!
Sometimes restarting JDeveloper helps - sometimes not. I even ended up reinstalling JDeveloper a few times.
I hoped this would be fixed in 10.1.3.3 (we use 10.1.3.2) but sadly it's not it seems. -
Revision: 7671
Author: [email protected]
Date: 2009-06-09 07:31:19 -0700 (Tue, 09 Jun 2009)
Log Message:
The SWF metadata tag has optional attributes widthPercent and heightPercent. The expected format is "[ws]double%[ws]". For example, [SWF (backgroundColor="#FFFFFF", widthPercent="92%", heightPercent="81%", frameRate="60" )]. Don't blindly strip off the last non-whitespace char and allow the % to be optional.
QA Notes:
Doc Notes:
Bugs: SDK-21436
Reviewers: Pete
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-21436
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMReport.java -
Hello,
Tools:_
Jdeveloper 10.1.2
JPDK 10.1.2
ADF
Portal version 10.1.2 (repository upgrade 10.1.4)
Problem:_
I have an application that calls other application module from it's own application module. Some times it gives error (not every time):
• JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOwnerException, msg=JBO-25301: Application module FormHistoryServiceLocal is not a root app module but has no parent
• JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOwnerException, msg=JBO-25301: Application module FormHistoryServiceLocal is not a root app module but has no parent
• JBO-25301: Application module FormHistoryServiceLocal is not a root app module but has no parent
Code that application uses to call other application module:_
public ApplicationHandler( ApplicationModule rootModule )
try
if(rootModule != null)
formHistory = (FormHistoryService)rootModule.findApplicationModule(FORMHISTORYSERVICE_LOCAL);
if(formHistory == null){
formHistory = (FormHistoryService)rootModule.createApplicationModule( FORMHISTORYSERVICE_LOCAL, FORMHISTORYSERVICE_DEF );
userInfoDAO.connect();
}else System.out.println("Application Module was NULL");
}catch(Exception e)
e.printStackTrace();
(calls: formHistory.addToHistory())
The other application module:+
public void addToHistory( Number formId, Number status, Number type, Number userId, String event )
FormhistoryDefImpl defImpl = (FormhistoryDefImpl)EntityDefImpl.findDefObject("com.mysite.app.Formhistory");
FormhistoryImpl fh = (FormhistoryImpl)defImpl.CreateFormhistory( this.getDBTransaction(), new NameValuePairs() ); //************ Exception is thrown from here! ************
fh.setFormid(formId);
fh.setStatus(status);
fh.setType(type);
fh.setUserid(userId);
fh.setEvent(event);
oracle.jbo.domain.Date eventTimestamp = new oracle.jbo.domain.Date((new java.sql.Timestamp(new java.util.Date().getTime())));
fh.setEventtimestamp(eventTimestamp);
this.getTransaction().commit();
What's wrong here?
JBO description:+
JBO-25301: InvalidOwnerException
Cause: While traversing the parenthood chain for application modules, a child application module was found with no container (parent) application module.
Action: If this application has added custom business component classes, it may be that the application code is attempting to access a child application module before it is fully initialized. If this is not the case, this error probably represents some internal error in BC4J framework, in which case contact BC4J Technical Support.
How can i ensure that child application module is already initialized?Anyone?
Maybe you are looking for
-
In Captivate 7.0.1, where are the js files for HTML5 publishing stored?
In CP6, they were located here: C:\Program Files\Adobe\Adobe Captivate 6 x64\HTML\assets\js But in CP 7.0.1, that directory is blank. Does anyone know, for example, how I could edit the default code that generates CPM.js ?
-
Lines not drawing precisly on cs5 and wacom
Anyone know what could be the problem, set up a new system, with my wacom intuous 4, and i have never had a problem before, but on both illustrator and photoshop i cant seem to get a decent curve drawn, As soon as my pen starts a line it seems to be
-
Firefox keeps crashing, and I keep sending reports, asking for help with this problem, but I get nothing! I want Firefox off my computer, but when I try to Uninstall, nothing happens. I've even tried to download the latest version, but all I get is a
-
CS4 Design Standard Help Files
Help files for all CS4 Design Standard programs are not available. The error message states the help files were not installed or the installation has been damaged. Please reinstall. I have reinstalled CS4 and also uninstalled/reinstalled CS4 but get
-
Configuring displayed line in an interactive report.
HI, I have an interactive report that the deployment is longer than one page. When I run any of the events I do is simply reprint the report with the new changes. This is fine when done on the first page but when done in the second or third page, and