Can't load all properties of a remote object
Hi,
I have a java class called
Employe which has a field of type
Group(an java class)
when i get the Employe Object in flex using remote Object and
try to access Group's properties like
employe.goup.name, i get:
"Error #1009: Cannot access a property or method of a null
object reference".
Can some one please help me! Thank you.
Please check your Node Object, I mean all Objects that you are going to save is serialized or not.
Similar Messages
-
Java.util.Properties.load() not loading all properties
Hi,
I'm trying to load the following properties into my Properties class. However, Im only able to load SOME properties not ALL (11 to be precise)
This is my properties file :
~~~~~~~~~~~~~~~~~~~~~
gds.host=chissd235.bankofamerica.com
gds.datasource=gds.310.fob1
its.dataSource=gds.310.fob1
adv.dataSource=adv.310.fob1
gds.port=9650
gds.dataType=FpML
maxNumberOfConnectors=1000
itsConnectionMethod=ejb
advDB.driverToUse=jConnect2
advDB.userName=advDev1User
advDB.password=advDev1User
advDB.databaseName=advDev1
advDB.serverName=chisdd30.bankofamerica.com
advDB.port=2910
its.user=derivuser
This is my java code snippet:
~~~~~~~~~~~~~~~~~~~~~~~
private void loadProperties()
try
GDSConfigurationAdapter adapter = new GDSConfigurationAdapter();
String configurationResource = adapter.getConfigurationPropertiesResource();
load(loadStream(configurationResource));
String eventingPropsResource = adapter.getEventingPropertiesResource();
load(loadStream(eventingPropsResource));
} catch (IOException e)
throw new RuntimeException("Could not load GDS/Eventing properties");
private InputStream loadStream(String propFile) throws IOException
InputStream propStream = ResourceLocator.getResourceAsStream(propFile);
if (propStream == null)
logger.warning("could not find in JAR! Looking in classpath: " + propFile);
propStream = ResourceLocator.getResourceAsStream(propFile);
if (propStream == null)
IOException t = new IOException("Failed to load property file: " + propFile);
logger.throwing(getClass().getName(), "loadProperties", t);
throw t;
return propStream;
Any help will be appreciated.
Thanks
BjorkHi,
I'm trying to load the following properties into my Properties class. However, Im only able to load SOME properties not ALL (11 to be precise)
This is my properties file :
~~~~~~~~~~~~~~~~~~~~~
gds.host=chissd235.bankofamerica.com
gds.datasource=gds.310.fob1
its.dataSource=gds.310.fob1
adv.dataSource=adv.310.fob1
gds.port=9650
gds.dataType=FpML
maxNumberOfConnectors=1000
itsConnectionMethod=ejb
advDB.driverToUse=jConnect2
advDB.userName=advDev1User
advDB.password=advDev1User
advDB.databaseName=advDev1
advDB.serverName=chisdd30.bankofamerica.com
advDB.port=2910
its.user=derivuser
This is my java code snippet:
~~~~~~~~~~~~~~~~~~~~~~~
private void loadProperties()
try
GDSConfigurationAdapter adapter = new GDSConfigurationAdapter();
String configurationResource = adapter.getConfigurationPropertiesResource();
load(loadStream(configurationResource));
String eventingPropsResource = adapter.getEventingPropertiesResource();
load(loadStream(eventingPropsResource));
} catch (IOException e)
throw new RuntimeException("Could not load GDS/Eventing properties");
private InputStream loadStream(String propFile) throws IOException
InputStream propStream = ResourceLocator.getResourceAsStream(propFile);
if (propStream == null)
logger.warning("could not find in JAR! Looking in classpath: " + propFile);
propStream = ResourceLocator.getResourceAsStream(propFile);
if (propStream == null)
IOException t = new IOException("Failed to load property file: " + propFile);
logger.throwing(getClass().getName(), "loadProperties", t);
throw t;
return propStream;
Any help will be appreciated.
Thanks
Bjork -
Can't load dimension properties from csv file
Hi all, I work with EPM 11.1.1
I'm trying to load DataStorage dimension property to existed Generic dimension (SKU) of my planning application.
When I create a profile I can't see this property in the Mapping options window using the following file:
!Section=Dimensions
'Name;DimensionClass;DimensionAlias;CustomDimensionID
SKU;Generic;;
!Members=SKU
'Name
Brand1
Brand2
!PropertyArray=SKU
'Property;Name;Value
DataStorage;Brand1;StoreData
DataStorage;Brand1;StoreData
When I use the following file:
!Section=Dimensions
'Name;DimensionClass;DimensionAlias;CustomDimensionID
SKU;Generic;;
!Hierarchies=SKU
'Parent;Child
#root;Brand1
#root;Brand2
!Members=SKU
'Name;DataStorage
Brand1;StoreData
Brand2;StoreData
I get the following warning:
Import Dimension SKU member section maps to non-dimension global property DataStorage. Data for this column will not be processed.
What I do wrong?
Edited by: Vovanenok on Apr 15, 2009 6:48 AMTry:
!Section=Dimensions
'Name;DimensionClass;DimensionAlias;CustomDimensionID
SKU;Generic;;
!Members=SKU
'Name;DataType
Brand1;Unspecified
Brand2;Unspecified
!Hierarchies=SKU
'Parent;Child;DataStorage
#root;Brand1;StoreData
#root;Brand2;StoreData
Tho I would add MemberValidForPlan#;Plan#Aggregation, where # is a number of your application which this member is valid for or even has a specific aggregation, as well
example:
!Hierarchies=SKU
'Parent;Child;DataStorage;MemberValidForPlan1;MemberValidForPlan2;MemberValidForPlan3;Plan1Aggregation;Plan2Aggregation;Plan3Aggregation;UDA
#root;Brand1;StoreData;Y;Y;Y;+;+;+;
#root;Brand2;StoreData;Y;Y;Y;+;+;+;
Even more as an idea use pipes, maybe.
But you will need to say something about Aliases as well if this is a planning application. -
Can't load runtime properties in java.util.logging.LogManager
This should be so easy, what am I doing wrong?
I have the following logging.properties located on my classpath:
handlers=java.util.logging.ConsoleHandler
.level=INFO
java.util.logging.ConsoleHandler.level=INFO
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
Test.level=FINE
Test.handlers=java.util.logging.ConsoleHandlerI have a very simple Test.java file that should load the new properties file and print out the known logger names (ie Test).
I've also tried putting Test.java in a package, it didn't seem to matter.
public class Test {
public Test() {
String name = this.getClass().getName();
//this properties file is should be sitting in same dir as Test class
java.io.InputStream is = this.getClass().getResourceAsStream("logging.properties");
try {
//get log manager instance
java.util.logging.LogManager lm = java.util.logging.LogManager.getLogManager();
//read the new configuration
lm.readConfiguration(is);
//print out list of logger names
java.util.Enumeration e = lm.getLoggerNames();
while (e.hasMoreElements()) {
System.out.println(e.nextElement());
//print logger for this class!
System.out.println("getLogger("+name+"): "+lm.getLogger(name));
} catch (Exception e) {
} finally {
try {
is.close();
is = null;
} catch (Exception e) {}
public static void main(String[] args) {
Test test1 = new Test();
}The output I get from this is a single logger name, and then null for my desired Test logger.
global
getLogger(Test): nullIt seems a logger instance HAS been created for my Test class, I've added the lines below. Though it didn't appear in the logger names enumeration.
java.util.logging.Logger logger = java.util.logging.Logger.getLogger(name);
System.out.println(logger.getName()+"="+logger.getLevel().getName());
logger.severe("severe");
logger.warning("warning");
logger.info("info");
logger.config("config");
logger.fine("fine");
logger.finer("finer");
logger.finest("finest");Output:Test=FINEST
6/10/2003 16:00:01 Test <init>
SEVERE: severe
6/10/2003 16:00:01 Test <init>
WARNING: warning
6/10/2003 16:00:01 Test <init>
INFO: infoObservations:
1) Despite my Test class having the FINEST log level, the default ConsoleHandler had log level of INFO, and hence only up to INFO logged. -
HT204003 How can I load all giftcards into one
i have a whole bunch if the same brand giftcards on my passbook how can i put them all into 1
I have two files the file with the main method has four inner classes.
i tried to use the jar cvf command but it only jars the file i say to jar the inner classes dont get jared. Is there a way of using one command to jar my two files and include the inner clases that are in one of the files? -
I'm basically wondering if my current computer crashes and I need to go buy a new one, can I take the information that has been backed up onto my time capsule and load it onto my new computer?
Thanks,
Joeyyes.
see this user tip. -
Can't load LocalStrings.properties
Sorry to bother again,
I have altered a few lines in LocalStrings.properties contained in panama_papz.zip in the panama/lib directory. Do I have to restart the whole Apache JServ server for the changes to take effect, or just the Web Integration server?Try:
!Section=Dimensions
'Name;DimensionClass;DimensionAlias;CustomDimensionID
SKU;Generic;;
!Members=SKU
'Name;DataType
Brand1;Unspecified
Brand2;Unspecified
!Hierarchies=SKU
'Parent;Child;DataStorage
#root;Brand1;StoreData
#root;Brand2;StoreData
Tho I would add MemberValidForPlan#;Plan#Aggregation, where # is a number of your application which this member is valid for or even has a specific aggregation, as well
example:
!Hierarchies=SKU
'Parent;Child;DataStorage;MemberValidForPlan1;MemberValidForPlan2;MemberValidForPlan3;Plan1Aggregation;Plan2Aggregation;Plan3Aggregation;UDA
#root;Brand1;StoreData;Y;Y;Y;+;+;+;
#root;Brand2;StoreData;Y;Y;Y;+;+;+;
Even more as an idea use pipes, maybe.
But you will need to say something about Aliases as well if this is a planning application. -
Can not load all of attachment to pages
I have received a large attachment by e-mail (2 pages long) but it will only move 1 page to Pages, why will it not move all of it
Normal word document.
Other similar attachments of the same length have gone to `Pages` no problem -
Can't load all email accounts - HTTP server won't load and I can get a conn
Unable to get a connection and to load the last of three accounts an HTTP its msn.com
What model iPad do you have ? The iPad 2 onwards (inlcuding the Mini) have a built-in gyroscope, if you have a first gen iPad then it won't have gyroscope.
-
Can't read all attribute of my serialized object
Hello everybody,
I've got a problem with my program. I try to serialized a MutableTreeNode root in order to save and then open my JTree.
I serialize it and i have no problem but when i open it the parent hierarchy is saved (x is son of y...) but their name are null. I loose nodes' name... :/
try {
//Je cr�e un fichier temporaire dans le r�p�rtoire courant
//Ce fichier est l'arbre (selection de l'utilisateur) serializ�
//Flux cr�ant un fichier
FileOutputStream fos = new FileOutputStream(this.path);
//Flux dans lequel je stocke un objet
ObjectOutputStream oos = new ObjectOutputStream(fos);
//J'�cris dans mon flux mon objet
System.out.println("root before drag = "+this.root);
oos.writeObject(this.root);
//On ferme le flux
oos.flush();
fos.close();
} catch (FileNotFoundException e1) {
System.err.println("FileNotFoundException");
e1.printStackTrace();
return null;
} catch (IOException e1) {
System.err.println("IOException");
return null;
} catch (ClassCastException e1) {
System.err.println("ClassCastException");
return null;
try {
FileInputStream fos = new FileInputStream(this.path);
ObjectInputStream oos = new ObjectInputStream(fos);
//J'�cris dans mon flux mon objet
MutableTreeNode sousArbre = (MutableTreeNode) oos.readObject();
//On ferme le flux
fos.close();
//On r�cup�re l'arbre
System.out.println("root after drag = " + sousArbre);
this.root = sousArbre;
modele = new DefaultTreeModel(root);
Arbre.setModel(modele);
Aide a = new Aide(Arbre);
} catch (FileNotFoundException e1) {
System.err.println("FileNotFoundException");
e1.printStackTrace();
} catch (IOException e1) {
System.err.println("IOException");
e1.printStackTrace();
} catch (ClassNotFoundException e1) {
System.err.println("ClassNotFoundException");
e1.printStackTrace();
} catch (ClassCastException e1) {
System.err.println("ClassCastException");
e1.printStackTrace();
}so:
System.out.println("root before drag = "+this.root);
return node name
Mais :
System.out.println("root after drag = " + sousArbre);
return null
Have you an idea ?
Thx :)Please check your Node Object, I mean all Objects that you are going to save is serialized or not.
-
IPad Safari doesn't always load all images on a page.
On sites such as boston.com's 'the big picture' (http://www.boston.com/bigpicture/) that have a lot of images, the ipad just doesn't seem to load all of the images.
My iPhone 3G does the same thing - though with different images. It's not a site-side thing, the code is fine (debug console doesn't show any relevant errors)
Is it that the hardware just can't display more than a few high-res images in one page properly?TwistedPenguin wrote:
It's obviously a problem specific to just your iPads (or a select few) or maybe your routers or a combination of those things. Because I've never had any sort of problem like that and I load graphic heavy sites non-stop on my iPad. My wifi is only 1.5 Mbps, too, and I just bet that's at least 10 times slower than any of yours. All I'm saying is don't be so quick to blame Apple as it may be something you haven't thought of.
Sorry, but you are wrong there. It is an iPad issue that has been discussed here several times before.
There is some kind of memory restriction.
Can you load all the images on conradp04's site mentioned above? I guarantee you can't! -
Disable all properties of a dreamweaver rule at once?
Is there a way to disable all properties of a dreamweaver rule at once?
I so seldom use the CSS panels. I guess the answer to your question is you can't disable all properties with one click.
You need to click on selector name, right click on a property such as background. Hit disable.
Repeat with other properties.
Once you've disabled a group of properties, you can delete them all or enable them all with right click.
Hope that helps,
Nancy O. -
I am using Stateless session bean. Can I cache the reference of the remote objects to this bean ?
I read that some containers support the fearture of pre creating the EJB objects in the pool , during startup
using some custom configuration ( like connection pool ). How is this performed ?`I am using Stateless session bean. Can I cache the
reference of the remote objects to this bean ?No, but you can cache the HomeHandle of the Home interface references - that saves you the overhead of JNDI lookups, which are far more "expensive" time-wise than calling the create method to get the Remote implemenation.
I read that some containers support the fearture of
pre creating the EJB objects in the pool , during
startup using some custom configuration ( like connection pool
). How is this performed ?Ask your vendor - it's vendor-specific. -
Can not retrieve cell data content From BLOB object.
I have load Image into Georaster with Raster_Table following:
create table rdt_1 of mdsys.sdo_raster
(primary key (rasterId, pyramidLevel, bandBlockNumber,
rowBlockNumber, columnBlockNumber))
lob(rasterblock) store as (nocache nologging);
After I load Image successful, I continue load all cell data into BLOB object by:
DECLARE
gr sdo_georaster;
lb blob;
BEGIN
SELECT georaster INTO gr FROM georaster_table WHERE georid=2;
dbms_lob.createTemporary(lb, FALSE);
sdo_geor.getRasterData(gr, 0, lb);
dbms_lob.freeTemporary(lb);
END;
Please give me simple PL/SQL to retrieval content from BLOB object!
Thank You very much!
YuMiBLOB stands for Binary Large OBject. However the acronym has a pleasing affinity with the actual nature of the thing. In a database a BLOB is an undiffereniated mass of bytes. We don't know whether it's a spreadsheet or a word document or an image. So there is no out-of-the-box API for treating a BLOB as it's native file type.
Having said that there may be something in the Spatial API that works with such things - you might be better off asking the question in Spatial. Although I suspect that venue doesn't get as much through traffic as this one.
Cheers, APC -
Two remote objects calls on the same php class
Hi to all,
I've encountered a strange issue while developing with remote objects.
I've a mxml component with an init() method inside which is called by a menu.
When the init() method is called it makes 7 remote object calls which are bound to some components' dataprovider.
Among this calls I've got 2 remote object which refer to the same remote class. This because I have to call the class twice and the bind the result to two different combobox. Below you find the code:
<mx:RemoteObject id="myFile" source="myRemoteClass" destination="amfphp" showBusyCursor="true" makeObjectsBindable="true" fault="traceFault(event)"/>
<mx:RemoteObject id="myXls" source="myRemoteClass" destination="amfphp" showBusyCursor="true" makeObjectsBindable="true" fault="traceFault(event)"/>
in the init function I make this calls:
myFile.listDir("dir_1")
myXls.listDir("dir_2")
then in the mxml code I bound the result of myFile to combobox1 and the result of myXls on combobox2.
The problem arise when I call the myXls' listDir method. When I call it I receive the following error:
code:
Client.Error.DeliveryInDoubt
Message:
Channel disconnected
Detail:
Channel disconnected before an acknowledgement was received
The strange thing is that not only the myXls object returns this error, but also all the other 6 remote object return the same error above.
I'm not sure, but I guess that the error could be caused by the two remote object which call the same php remote class. If I comment one of the two calls everything works fine.
Do you have any suggestion about?
Thanks!!
Bye
LukeHi Jan.
1) We have the 2 VO, each with 3 rows to fill in data. What I mean is that when i just fill in all the fields for the first row of the first VO, and the value of one of these fields is bigger than 50, then after the exception is thrown and the message is displayed, the fields for the first VO are duplicated and shown in the second VO as if the user had inserted them.
2) We tried yesterday the validateEntity and a Method and Atributte Validator approaches after reading that white paper with the same results.
The validation is correctly done using any of the those methods.
I will try to reproduce this issue with the HR schema.
Thanks in advance once again.
Maybe you are looking for
-
How to get the component name in webdynpro
Hi all, how can i get the name of the webdynpro component. The component is being displayed in the portal. Now i need the component name for this.Can any one suggest of how to get this. Regards, Kalyan Chakravarthi.M
-
Hello All, I am having the foll. code OADefaultTableLayoutBean oadefaulttablelayoutbean = (OADefaultTableLayoutBean)webBean; OAMessageLovInputBean lov = (OAMessageLovInputBean)oadefaulttablelayoutbean.findIndexedChild("HrUsJobTitle"); if (lov != null
-
Dear guru, i have one problem, in process indusry, i am producing one material during this one material produced as a by product which is also consumed in next stage. which setting should be made in material master of that material? how can i create
-
Hi All, When I start reading or writing an y data in a local file in my system through a midlet, it asks for "Is it OK to read/write local files". I don't want this to popped up . Can anyone please guide me in how can I remove or bypass this popup an
-
Mdworker quit unexpectedly. How to fix it?
Hello to everyone, When ever I open some specific Microsoft office Word files (using Microsoft Word 2011) in my MBR and I try to save them the system gives me a report "mdworker quit unexpectedly". If I make a new file and I save it then no error is