Serialization of the class with ArrayList
Hello,
I'm new to java. I'm trying to serialize this class;
public class TestClass {
public ArrayList<String> list = new ArrayList<String>();
}with this code:
ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(baseName));
TestClass proba = new TestClass();
out.writeObject(proba);
out.close();it fails;/
Do you know why? If i serialize only object like this:
ArrayList<String> list = new ArrayList<String>();everything works well.
What am i doing wrong?
Cheers!
it failsFails how?
Do you know why?We don't even know how it fails, how can we possibly know why?
If i serialize only object like this:
ArrayList<String> list = new ArrayList<String>();everything works well.The difference being that the one that fails is public?
What am i doing wrong?What is going wrong?
If you got a bug report like that from a user would you accept it? 'It fails'?
Similar Messages
-
How to get the class name static method which exists in the parent class
Hi,
How to know the name of the class or reference to instance of the class with in the main/static method
in the below example
class AbstA
public static void main(String[] args)
System.out.println(getXXClass().getName());
public class A extends AbstA
public class B extends AbstA
on compile all the class and run of
java A
should print A as the name
java B
should print B as the name
Are there any suggestions to know the class name in the static method, which is in the parent class.
Regards,
Raja Nagendra KumarWell, there's a hack you can use, but if you think you need it,Could you let me the hack solution for this..
you probably have a design flaw and/or a misunderstanding about how to use Java.)May be, but my needs seems to be very genuine..of not repeat the main method contents in every inherited class..
The need we have is this
I have the test cases inheriting from common base class.
When the main method of the test class is run, it is supposed to find all other test cases, which belong to same package and subpackages and create a entire suite and run the entire suite.
In the above need of the logic we wrote in the main method could handle any class provided it knows what is the child class from which this main is called.
I applicate your inputs on a better way to design without replicating the code..
In my view getClass() should have been static as the instance it returns is one for all its instances of that class.
I know there are complications the way compiler handles static vars and methods.. May be there is a need for OO principals to advance..
Regards,
Raja Nagendra Kumar
Edited by: rajanag on Jul 26, 2009 6:03 PM -
Problem refreshing the classes
I have problem refreshing the class with Tomcat 4.1 Server. I make changes in my class and they just don't reflect unless I restart the server. I don't want to refresh the server all the time. Is there any setting by which I can tell the server not to the version ffrom the memory. I even deleted that class from the classes directory but still the server would not know it.
Thank youOop's I am sorry. I did some terrible mistake. I am really sorry.
Please Ignore this question -
Step Through java.* Classes With JDB
Here is a simple program:
public final class HelloWorld {
private HelloWorld() {
public static void main(String[] args) {
System.out.println("Hello, World!");
}I compile it with the -g option, and run it in jdb:
javac -g HelloWorld.java
jdb HelloWorld
I set a breakpoint in the main function...now I'm wondering why I can't step through the String constructor (or whatever magic happens behind the String literal syntax) and the println method calls. When I use step, it just skips over them! I find that I can set breakpoints in library methods, and use list to see the source, but as soon as I step it flies out of the library method and back to mine. Does anybody know what gives? Is it because the libraries aren't compiled with the -g option???Thanks for your quick input. It seems you're right about the libraries. I made a dummy class compiled with the -g:none option, added some more lines in the first class (compiled with -g), and ran it through jdb. It stepped over the methods from the class with no debug info...same way as before.
This is annoying. Sun should really provide debug versions of their libraries.
So how does JBuilder let you step through library methods? Did they take the Sun source and recompile it? Do they have a magic debugger? -
Extend standar class with new button(method)
Hi,
I want to create new button in standard class /SAPSRM/IF_PDO_AO_BP_BASE.
Does anyone know how to extend the class with a new button?
Very thanks.I NEED TO CREATE NEW BUTTON IN THIS CLASS.
THE BUTTON MUST SHOW A POP-UP WHEN PARTNET HAVE DOCUMENT´S IN SYSTEM.
CAN YOU HELP ME? -
Help with Declaring a Class with a Method and Instantiating an Object
hello all i am having trouble understanding and completing a lab tutorial again!
im supposed to compile an run this code then save work to understand how to declare aclass with a method an instantiate an object of the class with the following code
// Program 1: GradeBook.java
// Class declaration with one method.
public class GradeBook
// display a welcome message to the GradeBook user
public void displayMessage()
System.out.println( "Welcome to the Grade Book!" );
} // end method displayMessage
} // end class GradeBook
// Program 2: GradeBookTest4.java
// Create a GradeBook object and call its displayMessage method.
public class GradeBookTest
// main method begins program execution
public static void main( String args[] )
// create a GradeBook object and assign it to myGradeBook
GradeBook myGradeBook = new GradeBook();
// call myGradeBook's displayMessage method
myGradeBook.displayMessage();
} // end main
} // end class GradeBookTest4
i saved above code as shown to working directory filename GradeBookTest4.java
C:\Program Files\Java\jdk1.6.0_11\bin but recieved error message
C:\Program Files\Java\jdk1.6.0_11\bin>javac GradeBook4a.java GradeBookTest4.java
GradeBookTest4.java:2: class, interface, or enum expected
^
GradeBookTest4.java:27: reached end of file while parsing
^
2 errors
can someone tell me where the errors are because for class or interface expected message i found a solution which says 'class? or 'interface' expected is because there is a missing { somewhere much earlier in the code. i dont know what "java:51: reached end of file while parsing " means or what to do to fix ,any ideas a re appreciatedDoesn't solve your problem, but this works for me...
public class GradeBook
public void displayMessage() {
System.out.println( "Welcome to the Grade Book!" );
public static void main( String args[] ) {
try {
GradeBook gradeBook = new GradeBook();
gradeBook.displayMessage();
} catch (Exception e) {
e.printStackTrace();
} -
Can not filter the data with the extended class
Hi,
I have a quick question about PortableObject format. I have created a class which extends PortableObject interface and implemented serializer methods as well. I have updated it in the pof-config.xml file as well. If I insert the objects of this type of object in the cache, they get inserted properly and I can filter the values based on the getters defined in the class. Everything works fine here.
Now, I am trying to extend the existing class that I have. We have our custom API which we have built for our domain objects. I need to store these objects in the cache. So, naturally I need to implement PortableObject interface to do that. So, instead of creating a new class with new set of getters and setters and local fields, I am extending our domain class to create a new class which implements PortableObject interface. Instead of defining the local fields and getters and setters i am reusing the ones provided by my existing class. Now, I can insert the objects of the new class to the cache. But I can not filter the values for the objects of this new class.
Let me show you what exactly I am trying to achieve by giving a small example:
Domain Class:
class Person
private String person_name;
*public String getPerson_name() {return person_name;}*
*public String setPerson_name(person_name) {this.person_name = person_name;}*
The new class implementing PortableObject interface:
class ExtPerson extends Person implements PortableObject
public static final PERSON_NAME = 0;
*public void readExternal(PofReader reader) throws IOException{*
setPerson_name(reader.readString(PERSON_NAME));
*public void writeExternal(PofWriter writer) throws IOException{*
writer.writeString(PERSON_NAME, getPerson_name());
*// And HashCode, Equals and ToString methods, all implemented using the getter from the Person class*
So, if I create a new class ExtPerson without extending the Person class and write all the methods, store the objects in the cache and perform the following query, I get the size printed
System.out.println((cache.entrySet(new EqualsFilter("getPerson_name","ABC"))).size());
But if I use the extended class and insert the values into the cache and if I use the same query to filter, I get 0 printed on the console.
System.out.println((cache.entrySet(new EqualsFilter("getPerson_name","ABC"))).size());
So, can anyone tell what exactly is causing this?
Thanks!Well, just a quick question. It seems that I can not get ContainsAnyFilter or ContainsAllFilter working.
EqualsFilter is actually working properly.
I am preparing a Set of Strings and passing it to ContainsAnyFilter or ContainsAllFilter and it is returning me 0 records.
E.g.:
Set<String> setStr = new HashSet<String>();
setStr.add("ABC");
setStr.add("DEF");
System.out.println((cache2.entrySet(new ContainsAnyFilter("getPerson_name", setStr))).size());
I get 0 in my output
If I try this:
System.out.println((cache.entrySet(new EqualsFilter("getPerson_name","ABC"))).size());
System.out.println((cache.entrySet(new EqualsFilter("getPerson_name","DEF"))).size());
I get 1 for each of the query.
If I club all these EqualsFilter in a Filter[] array and create an AnyFilter or AllFilter and pass it to the query, it works fine.
List<Object> lst = new ArrayList<Object>();
lst.add("ABC");
lst.add("DEF");
Filter[] filter = new Filter[lst.size()];
for(int i=0;i<lst.size();i++)
filter[i] = new EqualsFilter("getPerson_name",lst.get(i).toString());
AnyFilter fil = new AnyFilter(filter);
System.out.println((cache4.entrySet(fil)).size());
I get the desired result here, which is 2.
Am I missing something here? -
Working with ArrayList and classes
Hi:
I'm trying to create a program that adds and remove information to an ArrayList. I can't figure out the errors that I'm having. See if anyone can help me.
import javax.swing.JOptionPane;
import java.io.*;
import java.util.*;
public class StudentRegistration {
class Name
// String first = JOptionPane.showInputDialog(null,"Enter First Name","First Name", JOptionPane.QUESTION_MESSAGE);
// String last = JOptionPane.showInputDialog(null,"Enter Last Name","Last Name", JOptionPane.QUESTION_MESSAGE);
String first, last;
Name(String first, String last)
this.first = first;
this.last =last;
String getFirstName()
return first;
String getLastName()
return last;
class Address
String street, city, state, zipcode;
Address(String street, String city, String state, String zipcode)
this.street = street;
this.city = city;
this.state = state;
this.zipcode = zipcode;
String getStreet()
return street;
String getCity()
return city;
String getState()
return state;
String getZipCode()
return zipcode;
public class Student
String id;
Date date;
Address address;
Name name;
Student (String id, Name name, Address address)
this.id = id;
this.name =name;
this.address = address;
date = new Date();
String getId()
return id;
class Admissions
ArrayList list;
int i;
boolean found;
Admissions()
list = new ArrayList();
void addStudent(Student s)
list.add(s);
Object getStudent(int i)
return list.remove(i);
boolean Empty()
return list.isEmpty();
boolean getIndex(String id)
int i, index;
boolean found;
while(i < index && !found)
Object o = list.get(i);
if (o instanceof Student)
Student s = (Student) o;
if (s.getId().compareto(id))
found = true;
else i++ ;
return found;
public static void main(String[] args)
Admissions adm = new Admissions();
Admissions drop = new Admissions();
boolean cont;
while(cont = true)
String input = JOptionPane.showInputDialog(null, "Enter Selection Number:\n\n 1 - Add Student\n 2 - Remove Student\n 3 - Print List\n 4 - Quit\n" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
int selection = Integer.parseInt(input);
switch (selection)
case 1:{
String first = JOptionPane.showInputDialog(null, "First Name:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
String last = JOptionPane.showInputDialog(null, "Last Name:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
Name name = new Name(first, last);
String street = JOptionPane.showInputDialog(null, "Street Address:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
String city = JOptionPane.showInputDialog(null, "City:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
String state = JOptionPane.showInputDialog(null, "State:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
String zipcode = JOptionPane.showInputDialog(null, "Zip Code:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
Address address = new Address(street, city, state, zipcode);
String id = JOptionPane.showInputDialog(null, "Student ID:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
Student s = new Student(name, address, id);
adm.addToList(s);
case 2:{
if(!adm.Empty());
String id = JOptionPane.showInputDialog(null, "Student ID:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
if(adm.getIndex(id))
index = adm.index();
drop.addToList(adm.getStudent(index));
case 3:{
case 4: break;
default: JOptionPane.showMessageDialog(null,"Wrong selection.");
System.exit(0);
yes i did but it didn't changed anything..... but I fixed them by making the classes static. Logically is ok but I 'm not sure really if it 's ok. Now I have only one error two times here is the code again and the output...
import javax.swing.JOptionPane;
import java.io.*;
import java.util.*;
public class StudentRegistration {
public static class Name
String first, last;
Name(String first, String last)
this.first = first;
this.last =last;
String getFirstName()
return first;
String getLastName()
return last;
public static class Address
String street, city, state, zipcode;
Address(String street, String city, String state, String zipcode)
this.street = street;
this.city = city;
this.state = state;
this.zipcode = zipcode;
String getStreet()
return street;
String getCity()
return city;
String getState()
return state;
String getZipCode()
return zipcode;
public static class Student
String id;
Date date;
Address address;
Name name;
Student (String id, Name name, Address address)
this.id = id;
this.name =name;
this.address = address;
date = new Date();
String getId()
return id;
public static class Admissions
ArrayList list;
int i, index, lastindex = list.size();
boolean found;
Admissions()
list = new ArrayList();
void addStudent(Student s)
list.add(s);
Object getStudent(int i)
return list.remove(i);
boolean Empty()
return list.isEmpty();
boolean getFound(String id)
while(i < lastindex && !found)
Object o = list.get(i);
if (o instanceof Student)
Student s = (Student) o;
if (s.getId().compareTo(id) == 0)
found = true;
else i++ ;
return found;
int getIndex(String id)
while(i < lastindex && !found)
Object index = list.get(i);
if (index instanceof Student)
Student s = (Student) index;
if (s.getId().compareTo(id) == 0)
found = true;
else i++ ;
return index;
public static void main(String[] args)
Admissions adm = new Admissions();
Admissions drop = new Admissions();
boolean cont;
while(cont = true)
String input = JOptionPane.showInputDialog(null, "Enter Selection Number:\n\n 1 - Add Student\n 2 - Remove Student\n 3 - Print List\n 4 - Quit\n" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
int selection = Integer.parseInt(input);
switch (selection)
case 1:{
String first = JOptionPane.showInputDialog(null, "First Name:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
String last = JOptionPane.showInputDialog(null, "Last Name:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
Name name = new Name(first, last);
String street = JOptionPane.showInputDialog(null, "Street Address:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
String city = JOptionPane.showInputDialog(null, "City:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
String state = JOptionPane.showInputDialog(null, "State:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
String zipcode = JOptionPane.showInputDialog(null, "Zip Code:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
Address address = new Address(street, city, state, zipcode);
String id = JOptionPane.showInputDialog(null, "Student ID:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
Student s = new Student(id, name, address);
adm.addToList(s); //The error is here. It says that can't find add.ToList
case 2:{
if(!adm.Empty());
String id = JOptionPane.showInputDialog(null, "Student ID:" ,"Sutdents Services", JOptionPane.QUESTION_MESSAGE);
if(adm.getFound(id))
int index = adm.getIndex(id);
drop.addTolist(adm.getStudent(index)); //And also here. Same error
case 3:{
case 4: break;
default: JOptionPane.showMessageDialog(null,"Wrong selection.");
System.exit(0);
}This is in the output window:
init:
deps-jar:
Compiling 1 source file to C:\Java\StudentRegistration\build\classes
C:\Java\StudentRegistration\src\StudentRegistration.java:184: cannot find symbol
symbol : method addTolist(StudentRegistration.Student)
location: class StudentRegistration.Admissions
adm.addTolist(s);
C:\Java\StudentRegistration\src\StudentRegistration.java:195: cannot find symbol
symbol : method addTolist(java.lang.Object)
location: class StudentRegistration.Admissions
drop.addTolist(adm.getStudent(index));
Note: C:\Java\StudentRegistration\src\StudentRegistration.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
BUILD FAILED (total time: 0 seconds) -
A problem with ACL in the class-map on the ACE module
Hi all,
I configured the following on the ACE module:
object-group network test
host 192.168.1.21
host 192.168.1.22
host 192.168.1.23
object-group service port
tcp eq www
tcp eq 8080
access-list T line 8 extended permit object-group port object-group test any
I tried to configure a class-map for matching this ACL:
ACE-4710-2/Lab-OPT-11(config)# class-map match-any TEST_C
ACE-4710-2/Lab-OPT-11(config-cmap)# match access-list T
Error: Cannot associate acl having object-group ACEs in class-map.
So couldn't I configure the class-map by using ACL with object-groups involved? Is it the bug or the normal behaviour? Because the customer uses object-groups in ACLs and he has to configure ACL without object-groups for the traffic classification. It is horrible.
Thank you
RomanHi Roman,
I'm afraid it's the expected behavior. You cannot use an ACL with object-groups inside a class-map.
Regards
Daniel -
I stood in line the first day the original iPhone came out to purchase one. The next day I purchased my second iPhone for my daughter and before long we had 4 iPhones in the house. We still to this day have 4 iPhones. Over the years several of my iPhones stopped working, I had paid extra to have the support contract on them only to find the local Apple store could care less. They condemed my iPhones as being water damaged even though I was told the phones did not get dunked in water.
Today I learned Apple settled a Class Action in regards to the iPhones with warrenty where the liquid sensor was red and Apple refused to fix the problem. In researching this I discovered reading the judges order in the case that Apple is supposed to have a 1-800 number setup and a website setup for people who had the problem. I searched the web but could not find the website or the phone number. It appears as if Apple is going to e-mail all people who took their iPhones in for repair and were refused yet I have not recieved an e-mail from Apple.
I guess the question I have is should I assume since I have had no e-mail from Apple that I will not get one and I will not be included as those getting payment. Should just take my iPhones with the red liquid sensor to small claims court or should I attempt to contact the judge in the case and ask him how I can have three iPhones that qualify yet have not heard anything from Apple? I still have the iPhones that Apple refused to repair.I don't think the settlement has been approved by the courts yet. Apple agreed to pay, but I don't believe the terms of how everything will go down has been officiated yet. When it is, the documents written up about it stipulate they've got to place a notice in USA today and Macworld with the web address for claims as well as a toll-free number. You can see the terms that are being negotiated at wired.com
-
Revision: 22429
Revision: 22429
Author: [email protected]
Date: 2011-09-07 08:04:46 -0700 (Wed, 07 Sep 2011)
Log Message:
Adding the default fallback of serializer and deserializer classes to amf deserializer and amf serializer
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/io/SerializationContext.java -
Could not find the main class (with every jar)
This isn't a developer question. I get the error Could not find the main class with every jar I try to open (for example the jar downloaded from https://gjar.dev.java.net/ gives the same problems - and I don't think there is something wrong with that JAR). It isn't a problem with the jar or MANIFEST because the same jar works fine on my laptop. So there is something wrong with my JRE installation, but what?
I tried to remove and reinstall the JRE 6 Update 18 but that didn't work. When I run the JAR with command line java -jar "file.jar" it works fine, but if I dubbelclick on it I get the error message (and it's irritating me).
I'm a bit desperate so I hope that someone here can help me ;)
Thanks in advancedhai T.B.M ... Sorry to post here... I know that i posted my question in wrong thread..but i dont have another solution to contact with you.. I had seen your answers which are really excellent and helped to do my project..
Now i am having very less time to complete my project and i am very new to JMF.. I am not getting output in JMF video capture ..please check the code and guide me where i gone wrong.......please pardon me once again to post here.. Heres my code
import javax.media.*;
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.awt.event.*;
import javax.media.protocol.*;
import java.io.*;
import javax.media.control.StreamWriterControl;
public class webcam implements ActionListener,ControllerListener
boolean eomReached = false;
boolean realized = false;
JFrame f;
BorderLayout bd1;
CaptureDeviceInfo device;
MediaLocator m1;
Player player;
Component videoScreen;
JButton b1,b2;
Processor processor;
DataSource ds=null;
DataSink fileWriter=null;
JLabel status=new JLabel("");
public webcam()
try
JFrame f=new JFrame();
JPanel p =new JPanel();
JPanel p1=new JPanel();
device=CaptureDeviceManager.getDevice("vfw:Microsoft WDM Image Capture (Win32):0");
m1=device.getLocator();
System.out.println("1");
processor.configure();
processor = Manager.createProcessor(m1);
processor.setContentDescriptor(new
FileTypeDescriptor(FileTypeDescriptor.MSVIDEO));
ds=processor.getDataOutput();
player.addControllerListener(this);
MediaLocator dest = new MediaLocator("file://foo.avi");
fileWriter = Manager.createDataSink(ds, dest);
fileWriter.open();
ds.connect();
ds.start();
player=Manager.createPlayer(m1);
player.addControllerListener(this);
blockingRealize();
videoScreen=player.getVisualComponent();
b1=new JButton("START");
b2=new JButton("STOP");
bd1=new BorderLayout();
p.setLayout(bd1);
p1.add(b1);
p1.add(b2);
p.add("South",p1);
p.add("East",videoScreen);
f.getContentPane().add(p);
f.setVisible(true);
f.setSize(500,500);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
b1.addActionListener(this);
b2.addActionListener(this);
catch(Exception e){}
public void actionPerformed(ActionEvent e)
if(e.getSource()==b1)
try{
processor.start();
player.start();
fileWriter.start();
catch(Exception e1){}
if(e.getSource()==b2)
try{
player.stop();
processor.stop();
processor.close();
fileWriter.close();
catch(Exception e2){}
public static void main(String args[])
webcam obj=new webcam();
public synchronized void blockingRealize() {
player.realize();
while (!realized) {
try {
wait();
} catch (java.lang.InterruptedException e) {
status.setText("Interrupted while waiting on realize...exiting.");
System.exit(1);
public synchronized void controllerUpdate (ControllerEvent event) {
System.out.println("myPlayer generated "+event.toString());
if (event instanceof RealizeCompleteEvent) {
realized = true;
notify();
} else if (event instanceof EndOfMediaEvent) {
eomReached = true;
} -
Problem with Javadoc gen'in two instances of a sourcefile in the class list
Hallo,
I have a set of source files that I'm gen'ing with the ant task javadoc.
sourcefiles="javadocs/PTConfigServer-root/src/com/palantir/config/util/SshUtils.java,
javadocs/PTConfigServer-root/src/com/palantir/config/util/StafUtils.java,
javadocs/PTCommons-root/src/com/palantir/util/Pair.java,
javadocs/PTCommons-root/src/com/palantir/util/XMLTag.java,
javadocs/PTCommons-root/src/com/palantir/util/MutuallyExclusiveSetLock.java,
javadocs/PTCommons-root/src/com/palantir/exception/PalantirException.java,
javadocs/PTCommons-root/src/com/palantir/exception/PalantirUserMessageException.java,
javadocs/PTCommons-root/src/com/palantir/exception/VersionMismatchException.java,
javadocs/PTCommons-root/src/com/palantir/util/Mutable.java,
javadocs/PTCommons-root/src/com/palantir/util/MultiMapSet.java,
javadocs/PTCommons-root/src/com/palantir/util/MultiMapOrderedSet.java,
javadocs/PTCommons-root/src/com/palantir/util/MultiMapList.java,
javadocs/PTCommons-root/src/com/palantir/util/MultiMapConcurrentHashSet.java,
javadocs/PTCommons-root/src/com/palantir/util/MultiMap.java,
javadocs/PTCommons-root/src/com/palantir/util/i18n/DefaultDateFormatterFactory.java,
javadocs/PTCommons-root/src/com/palantir/util/i18n/DateFormatterManager.java,
javadocs/PTCommons-root/src/com/palantir/util/i18n/DateFormatterFactory.java,
javadocs/PTCommons-root/src/com/palantir/util/i18n/DateFormatter.java,
javadocs/PTCommons-root/src/com/palantir/util/awt/Awt.java"
The first two gen properly with only one of each class showing up in the class list. Then, starting with the PTCommons files, javadoc lists each class twice in the class list. In the actual generated documentation, there is only one instance of the file.
Has anyone seen this before?
MaryIm having a problem with the variables.
Part of my original problem might be each pxi was in a different project. and i had two projects each its own IP. Using this method i did not know how use two differnt variables from two differnet pxi' s with the same program.
if your still following.
i tried a simpler way
i modified my project to include both ip addresses.
this way In my window environment my vi calls the variable. i made sure that i right clicked and chose the variables from the correct ip.
what i have is two status indicators and two update buttons.
the status tells me what stage the test is in
the update button is for the user at the end of the test he can update the screen with the results.
currently only my second pxi is updating status and also the update works
this is my windows vi alias file
[My Computer]
My Computer=localhost
[S4000xH-System1]
S4000xH-System1=192.168.110.10
[S4000xH-System2]
S4000xH-System2=192.168.110.3
do i need to bind to source or use the single writer. im going to try to undo the single writer seems like this would could onluy better it but doesnt seem like its for my application.
i forgot to mention that the varibles i use were there listed as dependancies for the windows evirment have a blue question mark but show what is wrong.
where i have the variables under the ip address there are no blue question marks -
Reflection Classes with the same name
Hi!
I have a big problem with reflection. I want to reflect lots of stuff (methods, variables...) in a lot of classes with the same name immediately one after the other. It's like
copy the file for the analysis to the right place
do reflection and get results
copy next file for analysis
Important to note is, that all of the files that should be reflected have the same name.
When I run the programm, he always only reflects the first file I gave for analysis, although I know the copying-stuff works and the new file would be there for analysis (but he does not seem to load/use it).
Any ideas what i could do?
Thanks!
ETI'm not sure if i'm authorised to tell too much
details, but i have to do some automated software
analysis and therefore I need to know whats inside of
a class and string search would not be appropriate.Why not ? What aspects of the class are you trying to examine ?
They have the same name, because they are delivered in
that form from a third party and it would be too much
effort (and to much risk of errors) to rename them.Sure, if they're delivered as class files, you're unable to rename them. Without knowing more I can't advise you further.
Why are you interested that much in that topic? Do you
have to perform a similar task?No, I'm trying to determine if reflection is the right tool for the job. Frankly it doesn't sound like it is. But since you're not authorised to tell me more, I can't help you more.
Dave. -
How can I get the class(ification) for an equipment with BAPI ?
Hello Experts,
I have created an Equipment with a BAPI. ("BAPI_EQUI_CREATE")
and i create the assignment to a (equipment-)class with the BAPI BAPI_OBJCL_CREATE.
When I use another BAPI BAPI_EQUI_GETDETAIL I get all information to the equipment,
but I don't get the information to wich class is it assigned.
How can I get this ?
Thanx in advanceHi,
As Keshav mentioned you can get the classification data by using BAPI_OBJCL_GETDETAIL
you have to pass the following parameters to it.
CALL FUNCTION 'BAPI_OBJCL_GETDETAIL'
EXPORTING
objectkey = equipment no in your case
objecttable = 'EQUI''
classnum = Class Name
classtype = Class Type
Thanks.
Maybe you are looking for
-
I am trying to set up a website that would have about 150 users (only login in a few times a year). I want to include a login for admin and a simple page for voting for different issues relating to the organization. I am somewhat confused if MS Acces
-
Can anyone help me add any type of ACTION EVENT /ACTION LISTENER TO THIS CODE PLEASE REVIEW AND COMPILE IF NECESSARY. Ensure that it compiles without errors. Currently it compiles without errors. It opens up as a GUI window that accepts a password. I
-
Why are some inbox messages not appearing in Mail on multiple macs and other devices?
My partner and I have an iMac at home and one at work. We also have two iPhones and two iPads. We only have a couple email accounts each and two for work set up on all six Mail applications. For some reason inbox messages are not appearing consist
-
Use of Import Log feild in Landed Cost
Hi Experts, I just wanted to know about what is the use of Import log field in Landed cost. Regards- Mona.
-
DPS HTML to activate multi state object
Is there a way to have an HTML asset placed in a DPS folio, to activate a specific state of a multi state object?