Serialization on os x returns (SIGTRAP)
Hello everyone!
I'm writing an os x application that calculates scores for a local swim team, and then stores them along with other information about swimmers and the team. I'm using apple's appkit, a series of java classes meant to work with their InterfaceBuilder program. The problem i run into is when i try to save one NSMutableArray object [which does implement serializable from everything i read on it]. No exeptions are thrown when i look at the run log, but i get a (SIGTRAP) signal, which from what i can find is a trace/breakpoint error. I load the program into the debugger and can see that in the thread 1 the last things to happen are
0 objctrap
1 objcerror
2 __objc_error
I think these relate to the SIGTRAP signal, but to be honest i don't have enough experience with this to be able to decipher what it's trying to tell me. The SIGTRAP terminates the method and creates a core file of what the program is trying to save, i think, because there is a file after the program crashes, but when you try and look at it in a text editor it appears blank or very little in it that i can't really identify. Anyways, these are the methods that are called when someone presses the save/open button.
Method is called to save document
public void writeToFile(String filePathName)
FileOutputStream fos = null;
ObjectOutputStream out = null;
try
//create a stream to the output file
fos = new FileOutputStream(filePathName);
//create an object output stream
out = new ObjectOutputStream(fos);
//write the data
out.writeObject(objectToBeSaved);
//close the streams
out.close();
fos.close();
catch(IOException ex)
ex.printStackTrace();
}method is called to open document
public NSMutableArray readFromFile(String fileOpenPath)
//declare variables
NSMutableArray arrayToReturn = new NSMutableArray();
FileInputStream fis = null;
ObjectInputStream in = null;
try
//Create a stream from the input file
fis = new FileInputStream(fileOpenPath);
//Create an object input stream
in = new ObjectInputStream(fis);
//read the data
arrayToReturn = (NSMutableArray) in.readObject();
//close the streams
in.close();
fis.close();
catch(IOException ex)
ex.printStackTrace();
catch(ClassNotFoundException ex)
ex.printStackTrace();
/* Already been caught error???
catch(FileNotFoundException ex)
ex.printStackTrace();
return arrayToReturn;
}also if you refer to the commented portion of the open method, i commented out catching the FileNotFoundException because i got an 'FileNotFoundException already caught' error. Either way, any insight into what the (SIGTRAP) signal actually is [i think it refers to memory management?] or why i'm getting it would be great. duke dollars if i actually fix the problem, thanks to all in advance!
I've now tried the following:
public void doit() {
Runnable getTextFieldText = new Runnable() {
public void run() {
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%% 1 "+ SwingUtilities.isEventDispatchThread() );
JFileChooser chooser = new JFileChooser();
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%% 2 "+ SwingUtilities.isEventDispatchThread() );
chooser.setCurrentDirectory(new File(System.getProperty("user.home")+"/Desktop/"));
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%% 3 "+ SwingUtilities.isEventDispatchThread() );
chooser.setSelectedFile(new File("fred"));
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%% 4 "+ SwingUtilities.isEventDispatchThread() );
chooser.setDialogTitle("Save Attachment - ");
System.out.println("%%%%%%%%%%%%%%%%%%%%%%%%%% 5 "+ SwingUtilities.isEventDispatchThread() );
int returnVal = chooser.showSaveDialog(null);
System.out.println("@@@@@@@@@@@@@@@@@@@@@@@@@@@@ "+returnVal);
try{
SwingUtilities.invokeLater(getTextFieldText);
}catch(Exception x){
x.printStackTrace();
Which works everywhere except FF which hang after the user dismisses the dialog. I'm begging for any insight here.
Similar Messages
-
Hi,
Can somebody please help me with this problem. I am trying to return a specific node name, return it, and see if it has any child nodes. Below is a snippet from my XML doc:
<description>
<genre>football simulation</genre>
<year>2004</year>
<publisher ....However, when I enter "year", I am presented with
<year>2004</year>as the child nodes of the "year" node. And when print the results from
getNodeType, the text nodes arent identified. How can I get my code to see if there are text nodes present and return the text nodes?? I'll be extrmely grateful for any help!! Thanks.
Below is some of my Java code:
NodeList docNodes = test.getElementsByTagName("year");
if(docNodes.getLength() !=0){
System.out.println("noelist length: "+docNodes.getLength());
for (int i=0; i<docNodes.getLength();i++){
Node blah = docNodes.item(i);
System.out.println(blah);
System.out.println(blah.getNodeType());
if(blah.hasChildNodes()){
System.out.println("child nodes present: "+blah.getChildNodes());
Node check = (Node) blah.getChildNodes();
System.out.println("node type: "+check.getNodeType());
if (check.getNodeType()==Node.TEXT_NODE){
System.out.println("text nodes present");
else{
System.out.println("text nodes ARENT present");
}Here is a little helper class I use when parsing DOM via Xerces. May not work equally well for jDOM or other implementations.
final public class XmlHelper extends Object {
// Class Variables //
/** TODO Consider moving this to an interface with constants */
static final public String XML_TAG_ROOT = "document";
// Constructors //
* Default constructor.
public XmlHelper() {
super();
// Static Methods //
static public Document newDocument()
throws ConfigurationException {
try {
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
return builder.newDocument();
catch (ParserConfigurationException configure) {
throw new ConfigurationException("Error instantiating DOM XML parser", configure);
static public Document parse(InputStream in)
throws ConfigurationException, IOException, ParseException {
try {
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
return builder.parse(in);
catch (ParserConfigurationException configure) {
throw new ConfigurationException("Error instantiating DOM XML parser", configure);
catch (SAXException parse) {
throw new ParseException("Error SAX parsing XML input stream", parse);
static public Document parse(String uri)
throws ConfigurationException, IOException, ParseException {
try {
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
return builder.parse(uri);
catch (ParserConfigurationException configure) {
throw new ConfigurationException("Error instantiating DOM XML parser", configure);
catch (SAXException parse) {
throw new ParseException("Error SAX parsing XML uri '" + uri + "'", parse);
static public String serialize(Document target)
throws IOException, ConfigurationException, TransformationException {
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
serialize(target, byteOut, true);
return byteOut.toString();
static public void serialize(Document document, OutputStream target)
throws IOException, ConfigurationException, TransformationException {
serialize(document, target, false);
static public void serialize(Document document, OutputStream target, boolean indent)
throws IOException, ConfigurationException, TransformationException {
try {
Transformer transformer = TransformerFactory.newInstance().newTransformer();
if (indent)
transformer.setOutputProperty(OutputKeys.INDENT, "yes");
transformer.transform(new DOMSource(document), new StreamResult(target));
catch (TransformerConfigurationException configure) {
throw new ConfigurationException("Error instantiating XML transformer", configure);
catch (TransformerException transform) {
/** @todo Need to write a generic transformation or serialization exception */
throw new TransformationException("Error transforming XML", transform);
static public Element getChildElement(Element parent, String name) {
Element child = null;
if (parent != null) {
NodeList childNodes = parent.getElementsByTagName(name);
switch (childNodes.getLength()) {
case 0:
System.err.println("XML element <" + parent.getNodeName() + ">" +
" has zero child nodes <" + name + "> (expecting one node)");
case 1:
child = (Element) childNodes.item(0);
break;
default:
child = (Element) childNodes.item(0);
/** @todo Consider implementing a "Warning Log" for errors such as these rather than sys.err */
System.err.println("XML element <" + parent.getNodeName() + ">" +
" has " + childNodes.getLength() + " child nodes <" + name + "> (expecting only one)");
return child;
static public List getAllChildElements(Element parent, String name) {
List elements = null;
if (parent != null) {
elements = Collections.synchronizedList(new ArrayList());
NodeList childNodes = parent.getChildNodes();
for (int current = 0; current < childNodes.getLength(); current++) {
Node node = childNodes.item(current);
if ((node instanceof Element) && node.getNodeName().equals(name)) {
elements.add(node);
return elements;
static public String getChildElementValue(Element parent, String childName) {
Element child = getChildElement(parent, childName);
return child == null ? null : getElementValue(child);
static public String getElementValue(Element parent) {
NodeList nodes = parent.getChildNodes();
int current = 0;
int length = nodes.getLength();
while (current < length) {
Node node = nodes.item(current);
if (node instanceof Text) {
String value = node.getNodeValue();
if (value != null)
return value.trim();
current++;
return "";
}- Saish -
Interfaces, impls, de/serialization
WebLogic 5.1
JDK 1.2.2_005
NT 4.0 SP5
Just a quick question about interfaces and implementation classes.
Assuming the following...
- interface IStartup
public String getStartupInfo();
- class StartupAdapter implements IStartup, java.io.Serializable
public String getStartupInfo() {
return "startup info";
- StartBean, stateless session bean
StartBean has a method called getStartup which returns IStartup like so:
public IStartup getStartup() {
return (IStartup) new StartupAdapter();
- client code (java application)
IStartup s = null;
String info = null;
/*session bean lookup/create
s = remote.getStartup();
info = s.getStartupInfo();
...does the client machine have to have StartupAdapter.class in the
classpath?Argyn is right. I've worked on a remote application and i don't have the
implementation class on the client side. what i have is just the server
interface.
- Sam Jacob
Iconixx Corp.
Argyn Kuketayev <[email protected]> wrote in message
news:[email protected]..
No, you don't necessarily need to have StartupAdapter.class, because itmight
be sent serialized.
all your client need is an interface.
Sam Jacob wrote:
Java is strongly typed. Eventhough y're returning IStartup, behind the
scenes, it's actually an instance of StartupAdapter.
So you need to have the StartupAdapter class in the client's classpath.
Sam Jacob
Iconixx Corp.
Chip Morgan <[email protected]> wrote in message
news:8ilrl0$sga$[email protected]..
WebLogic 5.1
JDK 1.2.2_005
NT 4.0 SP5
Just a quick question about interfaces and implementation classes.
Assuming the following...
- interface IStartup
public String getStartupInfo();
- class StartupAdapter implements IStartup, java.io.Serializable
public String getStartupInfo() {
return "startup info";
- StartBean, stateless session bean
StartBean has a method called getStartup which returns IStartup like
so:
public IStartup getStartup() {
return (IStartup) new StartupAdapter();
- client code (java application)
IStartup s = null;
String info = null;
/*session bean lookup/create
s = remote.getStartup();
info = s.getStartupInfo();
...does the client machine have to have StartupAdapter.class in the
classpath? -
Persistence Layer return convention issue and question - null vs. exception
I'm writing a position paper on persistence layer query returns. It deals with querying for a single object or a collection of objects and what to do if the object or collection of objects are not found in the database. I've googled many different search terms and have not come up with any authoritative references for this scenario. Do any of you know of any sources that have discussed this before?
My current logic is that when searching for a single object in a persistence layer that the persistence layer should return a simple null if the object isn't found. If searching for a collection of objects then the PL should return an empty collection object.
1.
/** Returns a list of objects that match the non-null fields in the provided example object.
This will return an empty Collection if no matching objects are found */
public Collection retrieveByExample(MyBO example);2. /** Returns a business object. This will return a null if no matching object is found */
public MyBusObject retrieveById(int aMyBusObjectId);These two methods would not return a "checked or unchecked" exception if the object(s) are not found. I think that they are the simplest to implement and do not break the convention of not using exceptions in non exceptional situations. I don't feel that it is the persistence layer's responsibility to make a business decision on an object's existence being an exception. There are many times where applications search for an object to see if it exists or not and then proceed to create the object or use the object if it exists or doesn't. These two methods also don't force using application layers to catch or throw any declared exceptions.
Notes on scenario 1: program control flow is simple by using an iterator and hasNext(), if the collection is empty then any code that needs the objects can be skipped.
Notes on scenario 2: program control flow is simple in this case with a " != null or == null check. If the method returned an uninitialized object instead of null then the calling application would have to have additional business logic to tell whether the object was truly uninitialized or not. I can see the method having a UnexpectedMultipleBusinessObjectsFoundException if more than 1 object is found since the method is looking by primary key, but would this ever happen if searching by primary key. However in a similiar method that searches on non primary key then the UMBOFE would be warrented. Any thoughts?
Others have brought up some additional scenarios.
3. /** Returns one and only one business object from persistence with a matching primary id.
If one and only one match is not found, null is returned if isLenient is true, otherwise an exception is thrown. */
public MyBusObject retrieveById(int aMyBusObjectId, boolean isLenient) throws BusinessObjectNotFoundException;I feel this option is bad in that it forces the calling or using application layer to still declare the BusinessObjectNotFoundException. It adds bulk and unneeded complexity to the the code.
While looking at it I can see that since a caller is searching for exactly 1 object then if the query finds more than one object then a UnexpectedMultipleBusinessObjectsFoundException could be thrown. But I don't believe an NotFoundException is warranted. What are your thoughts?
Message was edited by:
smalltalkHibernate (for example) actually does both.
public Object get(Class clazz, Serializable id) throws HibernateException - "Return the persistent instance of the given entity class with the given identifier, or null if there is no such persistent instance. (If the instance, or a proxy for the instance, is already associated with the session, return that instance or proxy.)"
public Object load(Class theClass, Serializable id) throws HibernateException: "Return the persistent instance of the given entity class with the given identifier, assuming that the instance exists.You should not use this method to determine if an instance exists (use get() instead). Use this only to retrieve an instance that you assume exists, where non-existence would be an actual error."
Certainly get is the more commonly used of these methods.
If you are returning something like an array I believe it is always preferable to return a zero length array rather than null to save the extra client code. -
How to make an object mutable?
Can any one tell me how to make an object mutable?
Following is Class X & Y?
class Y
public static void main(String arg[]) {
X a1=new X();
Object a=a1.get();
System.out.println(a.toString());
a1.set(a);
System.out.println(a.toString());
class X implements Serializable
public Object get(){
return new Object();
public synchronized void set(Object o)
o=null;
In my class Y when i say
a1.set(a);
I want local Object a of main method should be nullified.
Can it be possible if yes what is the way or code to be applied so that
my next a.toString() statement will give me NullpointerException.Isn't it more accurate to say that object references are passed by value?
OP -- Basically you can't to what you want to do. When you "pass an object" as a method parameter, what you're really passing is a copy of the reference that points to the object. You now have two refs pointing to the same object--one in the caller and one in the method being executed. Setting either of those refs to null does NOT affect the object itself, and does NOT affect the other ref. It just means that the ref that's been set to null no longer points to any object.
If you want the called method to make a change that the caller can see, you need to either 1) return a value from the method, 2) encapsulate the object to be changed as a member of new class, or 3) pass the object to be changed as the single element of an array. I would STRONGLY recommend against (3) as a way to simulate pass by reference. Better to examine your design and determine whether (1) or (2) more closely matches what you're really trying to accomplish. -
Trouble Registering Custom MBean in WLS 6.1 (Example from JMX Guide)
Hi there,
I have trouble getting an example to work provided in the BEA Manual
"Programming WebLogic JMX Services". The example of registering a
custom MBeans produces in my case:
java -cp .;C:\bea\wlserver6.1\lib\weblogic.jar jmx.dummy.MyClient
Getting BEA MBean Server
Using domain: weblogic
Create object name
Create MBean Dummy within MBean Server
Could not create MBean Dummy
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: jmx.dummy.MyClient
java.lang.ClassNotFoundException: jmx.dummy.MyClient
<<no stack trace available>>
--------------- nested within: ------------------
weblogic.rmi.extensions.RemoteRuntimeException - with nested
exception:
[java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: jmx.dummy.MyClient]
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:60)
at $Proxy2.registerMBean(Unknown Source)
at jmx.dummy.MyClient.registerMBean(MyClient.java:57)
at jmx.dummy.MyClient.main(MyClient.java:19)
I have a custom MBean: MyCustomMBean:
package jmx.dummy;
public interface MyCustomMBean
public int getAttribute();
and it's implementation class MyClient listed below. Does anybody know
what I'm doing wrong ?
Greetings,
Alex
package jmx.dummy;
import weblogic.management.MBeanHome;
import weblogic.management.Helper;
import weblogic.management.RemoteMBeanServer;
import javax.management.*;
public class MyClient implements MyCustomMBean, java.io.Serializable
MBeanServer server = null;
ObjectName mbo = null;
String mbeanName = null;
public static void main(String[] args)
MyClient client = new MyClient();
client.createMBeanServer();
client.registerMBean();
client.getMBeanInfo();
private void createMBeanServer()
MBeanHome mbh =
Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","petstoreServer");
echo("Getting BEA MBean Server");
server = mbh.getMBeanServer();
if (server == null)
echo("Server is null");
System.exit(2);
private void registerMBean()
String domain = server.getDefaultDomain();
echo("Using domain: " + domain);
mbeanName = new String("Dummy");
try
echo("Create object name");
mbo = new ObjectName(domain + ":type="+mbeanName);
catch (MalformedObjectNameException e1)
echo("MalformedObjectNameException");
e1.printStackTrace();
System.exit(1);
echo("Create MBean " + mbeanName + " within MBean Server");
try
//server.createMBean(mbeanName,mbo);
server.registerMBean((Object) new MyClient(), mbo);
catch (Exception e)
echo("Could not create MBean " + mbeanName);
e.printStackTrace();
System.exit(1);
private void getMBeanInfo()
echo("getting management information for "+mbeanName);
MBeanInfo info = null;
try
info = server.getMBeanInfo(mbo);
catch (Exception e)
echo("could not get MBeanInfo object for "+mbeanName);
e.printStackTrace();
return;
echo("CLASSNAME: \t"+info.getClassName());
echo("DESCRIPTION: \t"+info.getDescription());
echo("ATTRIBUTES: todo ....");
echo("\n\n");
try
echo("Get MBean Values:");
String state = (String)
server.getAttribute(mbo,"MyAttribute");
catch (Exception e)
echo("Could not read attributes");
e.printStackTrace();
return;
echo("End of DEMO");
private void echo(String error)
System.out.println(error);
public int getAttribute()
return 3434;Hi, i'm using wl 6.0 on HPunix.
And.. we don't have any serverclasses folder. :(
Audun
[email protected] (Alex) wrote:
OK, I got it working. Will answer it here in case somebody else has a
problem. Editing the CLASSPATH of WLS did not work for me but putting
my classes in ./config/serverclasses/ did the trick. But then I
encountered another problem, new exception that my code was not JMX
compliant. Seperating the MBean implementation for the MyClient class
to a new class worked:
new class MyCustom:
package jmx.dummy;
public class MyCustom implements
jmx.dummy.MyCustomMBean,java.io.Serializable
public int getMyAttribute()
return 3434;
untouched MyCustomMBean class:
package jmx.dummy;
public interface MyCustomMBean
public int getMyAttribute();
edited MyClient class:
package jmx.dummy;
import weblogic.management.MBeanHome;
import weblogic.management.Helper;
import weblogic.management.RemoteMBeanServer;
import javax.management.*;
public class MyClient
MBeanServer server = null;
ObjectName mbo = null;
String mbeanName = null;
public static void main(String[] args)
MyClient client = new MyClient();
client.createMBeanServer();
client.registerMBean();
client.getMBeanInfo();
client.unregister();
private void createMBeanServer()
MBeanHome mbh =
Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","examplesServer");
echo("Getting BEA MBean Server");
server = mbh.getMBeanServer();
if (server == null)
echo("Server is null");
System.exit(2);
private void registerMBean()
String domain = server.getDefaultDomain();
echo("Using domain: " + domain);
mbeanName = new String("MyCustomMBean");
try
echo("Create object name");
mbo = new ObjectName(domain + ":type="+mbeanName);
catch (MalformedObjectNameException e1)
echo("MalformedObjectNameException");
e1.printStackTrace();
System.exit(1);
echo("Create MBean " + mbeanName + " within MBean Server");
try
//server.createMBean(mbeanName,mbo);
server.registerMBean((Object) new MyCustom(), mbo);
catch (Exception e)
echo("Could not create MBean " + mbeanName);
e.printStackTrace();
System.exit(1);
private void getMBeanInfo()
echo("getting management information for "+mbeanName);
MBeanInfo info = null;
try
info = server.getMBeanInfo(mbo);
catch (Exception e)
echo("could not get MBeanInfo object for "+mbeanName);
e.printStackTrace();
return;
echo("CLASSNAME: \t"+info.getClassName());
echo("DESCRIPTION: \t"+info.getDescription());
echo("ATTRIBUTES: todo ....");
echo("\n\n");
try
echo("Get MBean Values:");
String state =
(server.getAttribute(mbo,"MyAttribute")).toString();
System.out.println("state is "+state);
catch (Exception e)
echo("Could not read attributes");
e.printStackTrace();
return;
echo("End of DEMO");
private void echo(String error)
System.out.println(error);
public int getAttribute()
return 3434;
private void unregister()
try
server.unregisterMBean(mbo);
catch (Exception e)
echo("could not unregister mbean");
[email protected] (Alex) wrote in message news:<[email protected]>...
Hi there,
I have trouble getting an example to work provided in the BEA Manual
"Programming WebLogic JMX Services". The example of registering a
custom MBeans produces in my case:
java -cp .;C:\bea\wlserver6.1\lib\weblogic.jar jmx.dummy.MyClient
Getting BEA MBean Server
Using domain: weblogic
Create object name
Create MBean Dummy within MBean Server
Could not create MBean Dummy
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: jmx.dummy.MyClient
java.lang.ClassNotFoundException: jmx.dummy.MyClient
<<no stack trace available>>
--------------- nested within: ------------------
weblogic.rmi.extensions.RemoteRuntimeException - with nested
exception:
[java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.lang.ClassNotFoundException: jmx.dummy.MyClient]
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:60)
at $Proxy2.registerMBean(Unknown Source)
at jmx.dummy.MyClient.registerMBean(MyClient.java:57)
at jmx.dummy.MyClient.main(MyClient.java:19)
I have a custom MBean: MyCustomMBean:
package jmx.dummy;
public interface MyCustomMBean
public int getAttribute();
and it's implementation class MyClient listed below. Does anybody know
what I'm doing wrong ?
Greetings,
Alex
package jmx.dummy;
import weblogic.management.MBeanHome;
import weblogic.management.Helper;
import weblogic.management.RemoteMBeanServer;
import javax.management.*;
public class MyClient implements MyCustomMBean, java.io.Serializable
MBeanServer server = null;
ObjectName mbo = null;
String mbeanName = null;
public static void main(String[] args)
MyClient client = new MyClient();
client.createMBeanServer();
client.registerMBean();
client.getMBeanInfo();
private void createMBeanServer()
MBeanHome mbh =
Helper.getMBeanHome("system","beabeabea","t3://localhost:7001","petstoreServer");
echo("Getting BEA MBean Server");
server = mbh.getMBeanServer();
if (server == null)
echo("Server is null");
System.exit(2);
private void registerMBean()
String domain = server.getDefaultDomain();
echo("Using domain: " + domain);
mbeanName = new String("Dummy");
try
echo("Create object name");
mbo = new ObjectName(domain + ":type="+mbeanName);
catch (MalformedObjectNameException e1)
echo("MalformedObjectNameException");
e1.printStackTrace();
System.exit(1);
echo("Create MBean " + mbeanName + " within MBean Server");
try
//server.createMBean(mbeanName,mbo);
server.registerMBean((Object) new MyClient(), mbo);
catch (Exception e)
echo("Could not create MBean " + mbeanName);
e.printStackTrace();
System.exit(1);
private void getMBeanInfo()
echo("getting management information for "+mbeanName);
MBeanInfo info = null;
try
info = server.getMBeanInfo(mbo);
catch (Exception e)
echo("could not get MBeanInfo object for "+mbeanName);
e.printStackTrace();
return;
echo("CLASSNAME: \t"+info.getClassName());
echo("DESCRIPTION: \t"+info.getDescription());
echo("ATTRIBUTES: todo ....");
echo("\n\n");
try
echo("Get MBean Values:");
String state = (String)
server.getAttribute(mbo,"MyAttribute");
catch (Exception e)
echo("Could not read attributes");
e.printStackTrace();
return;
echo("End of DEMO");
private void echo(String error)
System.out.println(error);
public int getAttribute()
return 3434; -
Cannot pass content to JSP in JSPDynpro
Hi everyone:
I have an issue. I use nw developer studio wizard to create a JSPDynpro. But it seems JSP cannot get bean's value by useBean tag. Please give me some advice. I will reward the reply. thanks
The source is below:
package Exercise2;
import Exercise2.AddressBean;
import com.sapportals.htmlb.*;
import com.sapportals.htmlb.enum.*;
import com.sapportals.htmlb.event.*;
import com.sapportals.htmlb.page.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
public class addresslist extends PageProcessorComponent {
public DynPage getPage(){
return new addresslistDynPage();
public static class addresslistDynPage extends JSPDynPage{
private AddressBean addrBean = null;
public void doInitialization(){
IPortalComponentProfile profile = ((IPortalComponentRequest)getRequest()).getComponentContext().getProfile();
Object o = profile.getValue("addrBean");
if(o==null || !(o instanceof AddressBean)){
addrBean = new AddressBean();
profile.putValue("addrBean",addrBean);
} else {
addrBean = (AddressBean) o;
// fill your bean with data here...
addrBean.setLocation("Home");
public void doProcessAfterInput() throws PageException {
public void doProcessBeforeOutput() throws PageException {
this.setJspName("chooselocation.jsp");
Bean:
package Exercise2;
import java.io.Serializable;
public class AddressBean implements Serializable {
public String location;
@return
public String getLocation()
return location;
@param string
public void setLocation(String string)
location = string;
JSP:
<%@ taglib uri="tagLib" prefix="hbj" %>
<jsp:useBean id="addrBean" scope="application" class="Exercise2.AddressBean" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:textView id="Location" text="<%=addrBean.getLocation()%>"/>
</hbj:form>
</hbj:page>
</hbj:content>
portalapp.xml:
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="PrivateSharingReference" value="com.sap.portal.htmlb"/>
</application-config>
<components>
<component name="addresslist">
<component-config>
<property name="ClassName" value="Exercise2.addresslist"/>
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/chooselocation.jsp"/>
</component-config>
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile>
</component>
</components>
<services/>
</application>Hi.
U need to remove the following line from the portalapps.xml .
<property name="ComponentType" value="jspnative"/>
<property name="JSP" value="pagelet/chooselocation.jsp"/>
I think now u r problem will
be solved .... as using the above
line the page on submisson didn't
move to the controller <b>"addresslist"</b>
and it was directed to the jsp page.
And therfore on the romoving the above
line from the portal apps.xml will
direct the page on submission
to the controller.
If the suggestion is helpful please reward with points.
Thanks
ritu
Message was edited by:
Ritushree Saha -
Dynamically load the content without re-starting the server
Let me explain the scenario.........
I have a JSP in which I call a method written in a different class( java file).
Now, when I change the content of the method in the class and compile it, how can I get the updated stuff in the JSP without re-starting the server.
Even though I have to re-deploy the changed class, I need to re-start the server to get the updates effective.
The env set up is on Tomcat
fun_oneFUN_ONE, I am using Tomcat 5.0 (though not 5.5), and have a Test application that I do not use WARs to deply. The Context is set with reloadable="true".
I have this simple bean:
package jsp.beans;
public class ItemBean implements java.io.Serializable
public String getjunk() { return "Hello"; }
} And this JSP
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
</head>
<body>
<!-- Display the session ID for this user -->
<p><c:out value="${pageContext.session.id}"/></p>
<!-- Get the junk string from the ItemBean -->
<p><jsp:useBean id="it" class="jsp.beans.ItemBean"/>
<c:out value="${it.junk}"/></p>
</body>
</html> I run the JSP, then change the text returned by the bean, recompile it, then reload the JSP (force reload). The session id remains the same, and the text changes. Does this work on your system? (note, you do have to restart your server once after you set the Context to be reloadable="true") -
Server-side naming service functionality
Dear all,
I have this problem on my JCA connection:
###Exception #1#com.sap.engine.services.jndi.persistent.exceptions.NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:238)
at ...etc etc....
The problem is on this part of code:
public void doProcessBeforeOutput() throws PageException {
TestJCABean myBean = new TestJCABean();
myBean.setStr(remoteStr);
((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("myBean", myBean);
this.setForward("TestJCA.jsp");
I really don't understand, any suggestion regarding this?
I will apprecciate a lot.
VipaHi Ravi,
here my code, thanks for your help.
-----TESTJca.java
public class TestJCA extends PageProcessorComponent {
public DynPage getPage(){
return new TestJCADynPage();
public static class TestJCADynPage extends JSPDynPage{
private final static String LOGGER = "NameJCA";
private final static ILogger log = PortalRuntime.getLogger(LOGGER);
private String remoteStr = "";
public void doInitialization(){
//Accedo il portal component profile per ottente il valore del system alias configurato per l'iview
//MNT è stato configurato da portal e sul file xml
log.info(this, "[doInitialization()]comincio");
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
IPortalComponentContext compContext = request.getComponentContext();
IPortalComponentProfile userProfile = compContext.getProfile();
//Ritorna MNT che ho aggiunto in portalapp.xml
String sys = userProfile.getProperty("System");
log.info(this, "[doInitialization()]valore del system alias: "sys"");
//Utilizza la funzione per la connessione al sys di backend e reperimento dell'info necessarie
remoteStr = getRemoteString(request, sys);
log.info(this, "[doInitialization()]remoteStr: "remoteStr"");
public void doProcessAfterInput() throws PageException {
public void doProcessBeforeOutput() throws PageException {
TestJCABean myBean = new TestJCABean();
myBean.setStr(remoteStr);
((IPortalComponentRequest)getRequest()).getServletRequest().setAttribute("myBean", myBean);
// fill your bean with data here...
//log.info(this, "[doInitialization()]Setto il nome della jsp");
this.setJspName("TestJCA.jsp");
//this.setForward("TestJCA.jsp");
//IResource jsp = request.getResource(IResource.JSP, "pagelet/bannerOriginalle.jsp");
//response.include(request, jsp);
@param pgContext
@param response
@param compBean
@param cubeName
@param templateID
private String getRemoteString(IPortalComponentRequest request, String sapSystem) {
IConnection connection = null;
try {
// get the Connector Gateway Service
Object connectorservice = PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);
IConnectorGatewayService cgService = (IConnectorGatewayService) connectorservice;
if (cgService == null) {
log.info(this, "[getRemoteString()]Error in get Connector Gateway Service
try {
IUser user = request.getUser();
ConnectionProperties cp = new ConnectionProperties(user.getLocale(), user);
connection = cgService.getConnection(sapSystem, (ConnectionProperties) request);
} catch (Exception e) {
log.severe(this, "[getRemoteString()]Connection to SAP system failed. Exception:" +e.getLocalizedMessage());
if (connection == null) {
log.info(this, "[getRemoteString()]Connection is null
} else {
log.info(this, "[getRemoteString()]Connection succesful");
} catch (Exception e) {
log.severe(this, "[getRemoteString()]Exception occured. Exception:" +e.getLocalizedMessage());
log.info(this, "[getRemoteString()]Iview: runFunction");
try {
// Get the Interaction interface for executing the command
IInteraction ix = connection.createInteractionEx();
// Get interaction spec and set the name of the command to run
IInteractionSpec ixspec = ix.getInteractionSpec();
//String functionName = "Z_ESTRAIDATA";
String functionName = "RPL_CUSTOMER_NAME_GET";
// Put Function Name into interaction Properties.
ixspec.setPropertyValue("Name", functionName);
// return structure - dovrebbe essere il nome del parametro di export della funzione
//cambiarlo di conseguenza
//String function_out = "ERRORE";
String function_out = "PE_NAME1";
String function_in_value = "1000010001";
RecordFactory rf = ix.getRecordFactory();
MappedRecord input = rf.createMappedRecord("input");
// put function input parameters
// input.put("ZSC_CUBE", cubeName);
// input.put("ZSC_PERVAL", selection);
// input.put("ZSC_UTENTE", user.getLogonUid());
input.put("PI_KUNNR", function_in_value);
//ottengo l'oggetto che mi rappresenta l'output della funzione
//lancio la RFM
MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
Object rs = null;
try {
Object result = output.get(function_out);
if (result == null) {
rs = new String(" ");
} else if (result instanceof IRecordSet) {
rs = (IRecordSet) result;
log.info(this, "[getRemoteString()]rs ritornato: " + rs.toString());
return rs.toString();
// Do need all type here ?
else {
rs = result.toString();
log.info(this, "[getRemoteString()]rs ritornato: " + rs.toString());
return rs.toString();
} catch (Exception ex) {
log.severe(ex, "[getRemoteString()]Error getting function result. Exception:" +ex.getLocalizedMessage());
log.info(this, "[getRemoteString()]Codice errore ritornato: " + rs.toString());
} catch (Exception e) {
log.severe(e, "[getRemoteString()]Error getting function interaction. Exception:" +e.getLocalizedMessage());
return null;
-----TESTJcaBean.java
package ... ... ... ...
import java.io.Serializable;
public class TestJCABean implements Serializable {
private String str;
@return
public String getStr() {
return str;
@param string
public void setStr(String string) {
str = string; -
Cannot cast java.io.serialiazable to int Error
Dear Members,
I have procedure in AM which is as follows:
public int countRecs(String headerID)
int count=0;
count= integer value assigned from SQL Query*
return count;
I am calling this procedure from the CO of the page as follows:
String headerID="123"
int count=0;
*Serialiazable para[]={headerID};*
count=(int)am.invokeMethod("countRecs",headerID);
When I am compiling my CO I am getting the below error:
Cannot cast java.io.serialiazable to int
Kindly please help me in resolving this error.
Many thanks in advance.
Best Regards,
Arun Reddy D.the signature of the method you are invoking is
public Serializable invokeMethod(String methodName,
Serializable[] methodParams)
so the return type is also serializable. so you should change your method signature accordingly
public int countRecs(String headerID)
int count=0;
count= integer value assigned from SQL Query*
return count;
public String countRecs(String headerID)
//just change last statement
return ""+count;}
your CO call should be
count=(int)am.invokeMethod("countRecs",headerID);count = Integer.parseInt(am.invokeMethod("countRecs",para));
so finally your count variable will hold an integer
you may need to keep the above statement in try catch block
Regards
Ravi -
What is the Error (de-)serializing object
Hi all
I have 2 EJB's one Stateful(Bean1) and Statless (Bean2). Bean1 lookup on Bean2 and get the remote object of Bean2 (Bean2Remote) and but it in a class that implements java.io.Serializable but when we return that class that holds the Bean2 remote the server throws
com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing object: NamingException: Bean2Remote not found
Where the serializable class has the reomte and home interfaces of Bean2 with it
Can any one help in that thanks in advanceHaving the same problem as many others here. I keep getting error message "0xFFFE7958". I have tried about 25 times over several days with 2 different computers using both tiger and panther and I still cant get the file to download. The episode that is giving me trouble is "Orientation" in second season of Lost. I have noticed that other peeps have had trouble with the same file. I don't think it's me!! I won't be downloading any itunes content until this gets fixed.
-
Hello,
I used Xsd2Code version 3.4.0.38967 in order to generate a Xml Serialize / Deserialize model for an xml file.
Sometimes the code works fine, sometimes the following error is reported at the deserialization process : "Error in Xml Document (0,0) : Root element not found ".
This is the generated code :
LoadMethod()
System.IO.FileStream file = null; System.IO.StreamReader sr = null;
try
file = new System.IO.FileStream(fileName, FileMode.Open, FileAccess.Read);
sr = new System.IO.StreamReader(file);
string xmlString = sr.ReadToEnd();
sr.Close();
file.Close();
return Deserialize(xmlString);
finally{
if ((file != null))
file.Dispose();
if ((sr != null))
sr.Dispose();
public static LocaleElement Deserialize(string xml)
System.IO.StringReader stringReader = null;
try
stringReader = new System.IO.StringReader(xml);
// here the exception is reported !!!!
return ((LocaleElement)(Serializer.Deserialize(System.Xml.XmlReader.Create(stringReader))));
finally
if ((stringReader != null))
stringReader.Dispose();
private static System.Xml.Serialization.XmlSerializer Serializer
get
if ((serializer == null))
serializer = new System.Xml.Serialization.XmlSerializer(typeof(TextStyleCategory));
return serializer;
After some research i detected that this problem comes because the Deserialize method does not find the stream in a valid position and cannot read from it . However i had not found any reference that XmlReader.Create(stringReader) does this thing.
I changed the code for the deserialize method with the following :
public static TextStyleConf Deserialize(string xml)
System.IO.StringReader stringReader = null;
try
stringReader = new System.IO.StringReader(xml);
return (LocaleElement)(Serializer.Deserialize(stringReader));
finally
if (stringReader != null)
stringReader.Dispose();
This does not reports the problem anymore....however i don't know exactly if this is a good solution. I would like to receive a second opinion on the matter. Thank youHi,
Xsd2Code is the 3th part product. You should go to the link to post your thread:
https://xsd2code.codeplex.com/workitem/list/basic
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey. -
PointBase automatic table creation mapping reliability?
If I specify this in the weblogic-cmp-rdbms-jar.xml file for Automatic Table Creation:
<field-map>
<cmp-field>ADDRESS</cmp-field>
<dbms-column>U_ADDRESS</dbms-column>
<dbms-column-type>VARCHAR(30)</dbms-column-type>
</field-map>
<field-map>
<cmp-field>addresses</cmp-field>
<dbms-column>U_ADDRESSES</dbms-column>
<dbms-column-type>RAW(5000)</dbms-column-type>
</field-map>
<create-default-dbms-tables>True</create-default-dbms-tables>
PointBase creates a table w/ the two columns defined as:
U_ADDRESS VARCHAR(150)
U_ADDRESSES BLOB(1000)
If I specify this:
<field-map>
<cmp-field>ADDRESS</cmp-field>
<dbms-column>U_ADDRESS</dbms-column>
<dbms-column-type>VARCHAR(30)</dbms-column-type>
</field-map>
<field-map>
<cmp-field>addresses</cmp-field>
<dbms-column>U_ADDRESSES</dbms-column>
<dbms-column-type>RAW(5000)</dbms-column-type>
</field-map>
<create-default-dbms-tables>True</create-default-dbms-tables>
<database-type>POINTBASE</database-type>
PointBase creates a table w/ the two columns defined as:
U_ADDRESS VARCHAR(150)
U_ADDRESSES BLOB(1)
What's wrong? And how reliable is the PointBase mapping?Hi
The <dbms-column-type> is not intended for generally specifying
the desired column type for the cmp-field. It is meant to
cause the container to generate code to handle the cmp-field
as a java.sql.Blob in the persistence layer.
What the default table creation does is to examine the
java type of the cmp-field and then make its best guess
at a DBMS column type that will support the cmp-field.
In the case of POINTBASE, byte[] fields are made into
BLOB.
Here's the conversion that the container uses to map
java types to POINTBASE Column types:
if(type.isPrimitive()) {
if(type == Boolean.TYPE) return "BOOLEAN";
if(type == Byte.TYPE) return "SMALLINT";
if(type == Character.TYPE) return "CHAR(1)";
if(type == Double.TYPE) return "DOUBLE PRECISION";
if(type == Float.TYPE) return "FLOAT";
if(type == Integer.TYPE) return "INTEGER";
if(type == Long.TYPE) return "DECIMAL"; // PointBase DECIMAL is DECIMAL(38,0)
// 10**38 is approx: 2**126
it's big enough
if(type == Short.TYPE) return "SMALLINT";
} else {
if (type == String.class) return "VARCHAR(150)";
if (type == BigDecimal.class) return "DECIMAL(38,19)";
if (type == Boolean.class) return "BOOLEAN";
if (type == Byte.class) return "SMALLINT";
if (type == Character.class) return "CHAR(1)";
if (type == Double.class) return "DOUBLE PRECISION";
if (type == Float.class) return "FLOAT";
if (type == Integer.class) return "INTEGER";
if (type == Long.class) return "DECIMAL";
if (type == Short.class) return "SMALLINT";
if (type == java.util.Date.class)return "DATE";
if (type == java.sql.Date.class) return "DATE";
if (type == java.sql.Time.class) return "TIME";
if (type == java.sql.Timestamp.class) return "TIMESTAMP";
if (type.isArray() &&
type.getComponentType() == Byte.TYPE) return "BLOB";
if (!ClassUtils.isValidSQLType(type) &&
java.io.Serializable.class.isAssignableFrom(type)) return "BLOB";
"Brian L" <[email protected]> wrote:
>
If I specify this in the weblogic-cmp-rdbms-jar.xml file for Automatic Table
Creation:
<field-map>
<cmp-field>ADDRESS</cmp-field>
<dbms-column>U_ADDRESS</dbms-column>
<dbms-column-type>VARCHAR(30)</dbms-column-type>
</field-map>
<field-map>
<cmp-field>addresses</cmp-field>
<dbms-column>U_ADDRESSES</dbms-column>
<dbms-column-type>RAW(5000)</dbms-column-type>
</field-map>
<create-default-dbms-tables>True</create-default-dbms-tables>
PointBase creates a table w/ the two columns defined as:
U_ADDRESS VARCHAR(150)
U_ADDRESSES BLOB(1000)
If I specify this:
<field-map>
<cmp-field>ADDRESS</cmp-field>
<dbms-column>U_ADDRESS</dbms-column>
<dbms-column-type>VARCHAR(30)</dbms-column-type>
</field-map>
<field-map>
<cmp-field>addresses</cmp-field>
<dbms-column>U_ADDRESSES</dbms-column>
<dbms-column-type>RAW(5000)</dbms-column-type>
</field-map>
<create-default-dbms-tables>True</create-default-dbms-tables>
<database-type>POINTBASE</database-type>
PointBase creates a table w/ the two columns defined as:
U_ADDRESS VARCHAR(150)
U_ADDRESSES BLOB(1)
What's wrong? And how reliable is the PointBase mapping? -
Servicegen for sub-class inside vector variable of Super
java.lang.NoSuchMethodError
at com.netsboss.WSBE.model.QueryItemCodec.typedInvokeGetter(QueryItemCod
ec.java:87)
at com.netsboss.WSBE.model.QueryItemCodec.invokeGetter(QueryItemCodec.ja
va:56)
at weblogic.xml.schema.binding.BeanCodecBase.gatherContents(BeanCodecBas
e.java:295)
at weblogic.xml.schema.binding.CodecBase.serializeFill(CodecBase.java:25
3)
at weblogic.xml.schema.binding.CodecBase.serialize(CodecBase.java:195)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
ls.java:184)loop
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
ls.java:170)
QueryItem {
private Vector airItiners;
public Vector getAirItiners() {
return airItiners;
public class AirItinerary implements Serializable{}
QueryItem is my return class. The return result will include sub class AirItinerary
in QueryItem's Vector. I notice servicegen will only generate stub and web.xml
for QueryItem.
I get above error, when the result return to client. How to generate necessary
sub-class inside a vector variable of Super class?
StephenHi Stephen,
write my own ser/deser? Any other quick way?Our excellent support group ([email protected]) may be able to help with
an alternative solution. If you could create a small reproducer, then
this will help them with a clear picture of your goal.
One more problem, wls deloy my WSBE.ear as a war correctly. But error show noDouble check the console log for any messages. Also try:
http://[host]:[port]/[contextURI]/[serviceURI]
See: http://edocs.bea.com/wls/docs70/webserv/client.html#1051033 and
also check the console to verify the app is or is not deployed. See:
http://edocs.bea.com/wls/docs70/programming/deploying.html
HTHs,
Bruce
Stephen Zeng wrote:
>
Hi Bruce:
Our company use wsl7.0. We are not able to update to wls8 in this project. Do
I have to
write my own ser/deser? Any other quick way?
sub class variable:
public class AirItinerary implements Serializable{
private String air;
private Vector flightItem; //sub class of AirItineray
One more problem, wls deloy my WSBE.ear as a war correctly. But error show no
deloyment found. web-services.xml has been generated by servicegen under web-inf
path. Thanks Bruce.
Stephen
Bruce Stephens <[email protected]> wrote:
Hi Stephen,
The java.util.vector should be converted to a SOAP Array, see:
http://edocs.bea.com/wls/docs81/webserv/assemble.html#1060696 however
the issue of the sub-class is most likely the problem. Can you simplify
the data types? You may just have to write your own ser/deser, see:
http://edocs.bea.com/wls/docs81/webserv/customdata.html#1060764
This is with WLS 8.1, right?
Thanks,
Bruce
Stephen Zeng wrote:
java.lang.NoSuchMethodError
at com.netsboss.WSBE.model.QueryItemCodec.typedInvokeGetter(QueryItemCod
ec.java:87)
at com.netsboss.WSBE.model.QueryItemCodec.invokeGetter(QueryItemCodec.ja
va:56)
at weblogic.xml.schema.binding.BeanCodecBase.gatherContents(BeanCodecBas
e.java:295)
at weblogic.xml.schema.binding.CodecBase.serializeFill(CodecBase.java:25
3)
at weblogic.xml.schema.binding.CodecBase.serialize(CodecBase.java:195)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
ls.java:184)loop
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUti
ls.java:170)
QueryItem {
private Vector airItiners;
public Vector getAirItiners() {
return airItiners;
public class AirItinerary implements Serializable{}
QueryItem is my return class. The return result will include sub classAirItinerary
in QueryItem's Vector. I notice servicegen will only generate stuband web.xml
for QueryItem.
I get above error, when the result return to client. How to generatenecessary
sub-class inside a vector variable of Super class?
Stephen -
I am getting XmlMarshalException
Hi All,
I have imported a web service model into Web Dynpro application and done the binding.
When i deploy the application , I am getting following error.
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [RETURN] of class [com.abc.model.proxies.types.BAPI_NAME] must exist and can not be null. This is required by schema description.
Appreciate any help in this.
Regards,
Venkathi
I got the same error before . When webservice model cannot be serialized to a valid XML request message, then XMLMarshallException is thrown.This Stops webservice call
Also look at this Link for help<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/42/93d56ba5061d68e10000000a1553f6/frameset.htm">link</a>
Regards,
Arun
Maybe you are looking for
-
Exit or substitution GL account when posting goods issue
Hi out there, does anyone know how to change BSEG-HKONT via a subsitution ? It seems to be blocked for that purpose. Although if I unblock it in table GB01 this does not work. If there is no possibility does anyone know a customer exit to change the
-
Issue with Responsive Theme, Edit Links and IE
I've built an example of problem I have at work Using Theme 25, Build a simple app, 1 page - One Level Tabs, Right Sidebar Create a default region. In the region create a Popup LOV and, on the same row, another item- I've used a Text item Lov will wo
-
Who is visiting my under construction web in Business Catalyst?
Wow, I didn't expect it! I'm building a web in Muse and I uploaded it in Business Catalyst. Got very surprised about statistics in BC. People from six or seven different locations have viewed the project. I have not shown it yet to my client. Is it
-
Launching another VM instance using Runtime.exec()
Hi, I have two separate Swing applications, say A and B. I need to launch B from A using Runtime.exec() - essentially I am launching another VM instance from one VM. I am encountering strange problems - B's main window comes up, but GUI doesn't updat
-
Successful Switch From Single CC to Photoshop Photography Program
Today's the last day to sign up. Use Adobe Chat. Open 24 hrs. day, 7 days. Don't bother with the telephone. Clearly write out your situation, and what you want done. Save the chat dialog, in case you need it later. Look for and save the email confirm