Help with java error
Hi I got this error and i don't know what it means or how to fix it
if you understand it please help
Bad installation. Error invoking java vm(execv)
C:\program Files\java\ire1.5.0_10\bin\javaw.exe
I got this error when i went to add and remove programs in winXP
and highlighted a program called Goban3 and clicked on change\remove
http://www.gokgs.com/
goban3 is sign on link to KGS
if you check the site KGS you can see some java related items that have to be done i use this sights for years without problems
but now im having problems with java
thanks for serious reply
Message was edited by: r
revest
That looks alot like this.
Similar Messages
-
Need Help with Java error code:
I just installed an update suggested by my computer :( and now when I try to access different areas of sites I visit I get the following error:
"several java virtual machine running in the same process caused an error"
Can someone please help me undo this...I am very frustrated!
Thanks,
LorriYour problem may be:
The Microsoft Java JVM that comes with some versions of the OS is earlier on the PATH (Look inside the WINDOWS directory)
You may have several other JVMs on your PATH due to various server installations.... Oracle has one! Sybase has one, so do many other such RDBMSs.
Your "Browser Plugin" may install one.
You may have installed a couple.
You may not have JAVA_HOME set so its checking the PATH
I know what you may be thinking now... how in the world do I find them all?
Examine the output of the commandline call:
dir \java.exe -s -
Please help with compiling error
Hello, I am currently taking a class in Java Programming and need help with an error. I am working on a Mortgage Calculator and when I compile the code I get this error. I have no idea how to fix this. Can anyone help? Thank you.
'{' expected public class MortgageCalculator
1 error
Tool completed with exit code 1
Here is my code
import java.io.*;//*java input output
import java.util.Date;//Date Utility
import java.util.Formatter;//format Utility
import java.text.NumberFormat;//*format numbers
//class MortgageCalculator
public class MortgageCalculator
public static void main(String[]args);{
Date currentDate=newDate();
DecimalFormat decimalPlaces=newDecimalFormat("0.00");
//declare Variables
final double principalBalance=200000;//*$200,000 Loan
final double monthlyInterest=.06;//*6% interest rate
final double Term=12*30;//*monthly interest rate
final double monthlyInterest=((principalBalance*(monthlyInterest/12))/(1-Math.pow(1+(monthlyInterest/12))-(Term)));
//Display Output
System.out.println("\t\t" + currentDate);
System.out.println("\t\tLoan Amount" + principalBalance);
System.out.println("\t\tInterest Rate" + monthlyInterest);
System.out.println("\t\tTerm of Loan" + Term);
System.out.println("\t\tThe Payment will be:" + monthlyInterest);
System.out.println(decimalPlaces.format(mothlyInterest));
}You need to enclose your class body in { }. You're missing at least one of them
-
Can somebody help me get rid of the following compile errors:
coreservlets/OrderPage.java:61: setNumOrdereed(int, int) in coreservlets.ShoppingCart
cannont be applied to (java.lang.String,int)
cart.setNumOrdered(recordingid, numItems);
.\coreservlets\shoppingCart.java:44 cannot resolve symbol
symbol : variable recordingid
location: class coreservlets.ShoppingCart
if (order.getrecordingid() == (recordingid)) {
.\coreservlets\ShoppingCart.java:49: cannot resolve symbol
symbol : variable recordingid
location: class coreservlets.ShoppingCart
itemOrder new order = new ItemOrder(Catalog.getItem(recordingid));I know that not very helpful with out the code but the code is very big so if anyone wants me to post extracts from the code please tell me.Thank you i put that code in but now get the following:
coreservlets/OrderPage.java:40: incompatible types
found : java.lang.strgin
required: int int recordingid = request.getParameter("recordingid")!=null?request.getParameter("recordingid"):1;
^/code]
coreservlets/OrderPage.java:48: addItem(java.lang.String) in coreservlets.ShoppingCart cannot be applied to (int)
cart.additem(recordingid);
.\coreservlets\AhoppingCart.java:44: cannot resolve symbol
symbol: variable recordingid
location: class coreservlets.ShoppingCart
if (order.getrecordingid() == (recordingid)) {
.\coreservlets\AhoppingCart.java:49: cannot resolve symbol
symbol: variable recordingid
location: class coreservlets.ShoppingCart
ItemOrder newOrder = new ItemOrder(Catalog.getItem(recordingid));
4 errors.
Also could you explain what the line you added to the code means:
!=null?request.getParameter("recordingid"):1;
!=null?request.getParameter("numItems"):"1";and how come you got rid of if (recordingid != null) {Thanks for any help with these errors
OK I HAVE GOT RID OF ALL THE ERRORS APART FROM THE TOP ONE:
code]coreservlets/OrderPage.java:40: incompatible types
found : java.lang.strgin
required: int
int recordingid = request.getParameter("recordingid")!=null?request.getParameter("recordingid"):1;
/code]
Message was edited by:
ajrobson -
Need a little help with some errors.
Receiving some errors..
btn2.addActionListener(new ActionListener() {
and also
frame.setLocation(400,400);
frame.setVisible(true);
}<<~~has 2 errors here...
Both above have class or interface expected errors..clueless on what i'm missing at the moment.
Anyone mind pointing out what {'s and }'s i'm missing?
btn1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btn1actions();
private void btn1actions() {
if (radio1.isSelected()) System.out.println("Radio Button 1 is selected.");
if (radio2.isSelected()) System.out.println("Radio Button 2 is selected.");
btn2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btn2actions();
private void btn2actions() {
if (radio1.isSelected()) System.out.println("Radio Button 1 is selected.");
if (radio2.isSelected()) System.out.println("Radio Button 2 is selected.");
btn3.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
btn1actions();
private void btn3actions() {
txt1.setText("");
txt1.requestFocus();
public static void main(String[] args) {
Test2 frame = new Test2();
frame.setTitle("Test Frame");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.setLocation(400,400);
frame.setVisible(true);
}All my code..finally posted...just need help with more errors.
F:\DocumentsTest2.java:169: ';' expected
btn1.addActionListener(new ActionListener()) {
^
F:\Documents\Test2.java:176: illegal start of expression
private void btn1actions() {
^
F:\Documents\Test2.java:191: illegal start of expression
private void btn2actions() {
^
F:\Documents\.java:202: illegal start of expression
private void btn3actions() {
^
4 errors
Tool completed with exit code 1
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Test2 extends JFrame{
static JButton btn1,btn2,btn3;
static JTextField txt1;
static JRadioButton radio1,radio2;
public Test2() {
Container container = getContentPane();
container.setLayout(new BorderLayout());
//Create Panels
JPanel Panel1 = new JPanel();
JPanel Panel2 = new JPanel();
JPanel Panel3 = new JPanel();
JPanel Panel4 = new JPanel();
JPanel Panel5 = new JPanel();
JPanel Panel6 = new JPanel();
JPanel Panel7 = new JPanel();
JPanel Panel8 = new JPanel();
JPanel Panel9 = new JPanel();
JPanel Panel10 = new JPanel();
//Set Layout for Panels
Panel3.setLayout(new BorderLayout());
Panel4.setLayout(new BorderLayout());
Panel5.setLayout(new BorderLayout());
Panel6.setLayout(new BorderLayout());
Panel10.setLayout(new BorderLayout());
//Create the Various Fonts and Colors for this GUI
Font font1 = new Font("SansSerif", Font.BOLD, 20);
Font font2 = new Font("Serif", Font.PLAIN, 15);
Color color1 = new Color(3,15,125);//A Dark Blue Color
Color color2 = new Color(201,29,10);//A Red Color
Color color3 = new Color(127,127,127);//A Grey Color
//Create Buttons and Labels
btn1 = new JButton("Submit");
btn2 = new JButton("Display Schedule");
btn3 = new JButton("Enter New Name");
JLabel label1 = new JLabel("Student Name");
JLabel label2 = new JLabel("Course Number");
JLabel label3 = new JLabel("Welcome to the Java Community College");
JLabel label4 = new JLabel("Registration System!");
//Declare Text Field For Entering Student Names
txt1 = new JTextField(15);
//"Put Course Number from another Method Here"
String[] courseStrings = { "CISM2230 A", "CISM2230 B", "CISM1110 A", "CISM1110 B", "CISM1120 A", "CISM1120 B" };
JComboBox Combo1 = new JComboBox(courseStrings);
//Declare Radio Buttons for Add and Drop Course
radio1 = new JRadioButton("Add a Course", false);
radio2 = new JRadioButton("Drop a Course", false);
ButtonGroup radioButtons = new ButtonGroup();
radioButtons.add(radio1);
radioButtons.add(radio2);
//Panel 10 is the Main Displaying Panel
Panel10.add(Panel3, BorderLayout.NORTH);
Panel10.add(Panel4, BorderLayout.CENTER);
Panel10.add(Panel8, BorderLayout.SOUTH);
//Panel 3 Used to Display Label 3 and 4 using Panels 1 and 2
Panel3.add(Panel1, BorderLayout.NORTH);
Panel3.add(Panel2, BorderLayout.CENTER);
Panel1.add(label3);
Panel2.add(label4);
//Panel 4 Used to Display Student Name, Txt1, Course Number, Combo Box and Radio Buttons
Panel5.add(label1, BorderLayout.NORTH);
Panel5.add(txt1, BorderLayout.CENTER);
Panel6.add(label2, BorderLayout.NORTH);
Panel6.add(Combo1, BorderLayout.CENTER);
Panel7.add(radio1, BorderLayout.NORTH);
Panel7.add(radio2, BorderLayout.CENTER);
Panel4.add(Panel5, BorderLayout.NORTH);
Panel4.add(Panel6, BorderLayout.CENTER);
Panel4.add(Panel7, BorderLayout.SOUTH);
//Panel 8 Used to Display the Buttons
Panel9.add(btn1, BorderLayout.CENTER);
Panel9.add(btn2, BorderLayout.CENTER);
Panel9.add(btn3, BorderLayout.SOUTH);
Panel8.add(Panel9, BorderLayout.CENTER);
//Setting Background, ForeGround and Font of all Text.
Panel1.setBackground(color3);
Panel2.setBackground(color3);
Panel3.setBackground(color3);
Panel4.setBackground(color3);
Panel5.setBackground(color3);
Panel6.setBackground(color3);
Panel7.setBackground(color3);
Panel8.setBackground(color3);
Panel9.setBackground(color3);
Panel10.setBackground(color3);
btn1.setBackground(color3);
btn2.setBackground(color3);
btn3.setBackground(color3);
radio1.setBackground(color3);
radio2.setBackground(color3);
btn1.setFont(font2);
btn2.setFont(font2);
btn3.setFont(font2);
Combo1.setFont(font2);
Combo1.setBackground(color3);
Combo1.setForeground(color1);
label1.setFont(font2);
label2.setFont(font2);
label3.setFont(font1);
label4.setFont(font1);
label1.setForeground(color2);
label2.setForeground(color2);
label3.setForeground(color1);
label4.setForeground(color1);
container.add(Panel10);
//Setting Keyboard Shortcuts to Radio Buttons and Regular Buttons
btn1.setMnemonic('S');
btn2.setMnemonic('D');
btn3.setMnemonic('E');
radio1.setMnemonic('A');
radio2.setMnemonic('C');
//ActionListener
btn1.addActionListener(new ActionListener()) {
public void actionPerformed(ActionEvent evt) {
btn1actions();
private void btn1actions() {
if (radio1.isSelected()){ System.out.println("Radio Button 1 is selected. Button 1")};
if (radio2.isSelected()){ System.out.println("Radio Button 2 is selected. Button 1")};
btn2.addActionListener(new ActionListener()) {
public void actionPerformed(ActionEvent evt) {
btn2actions();
private void btn2actions() {
if (radio1.isSelected()) System.out.println("Radio Button 1 is selected(Button 2).");
if (radio2.isSelected()) System.out.println("Radio Button 2 is selected.Button 2");
btn3.addActionListener(new ActionListener()) {
public void actionPerformed(ActionEvent evt) {
btn1actions();
private void btn3actions() {
txt1.setText("");
txt1.requestFocus();
public static void main(String[] args) {
JavaCollegeTest2 frame = new JavaCollegeTest2();
frame.setTitle("Project 4");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.setLocation(400,400);
frame.setVisible(true);
} -
PI File adapter has a processing option u2018Empty-Message Handlingu2019 to ignore or Write Empty Files. In case there is no data created after mapping on target side then this option determines whether to write an empty file or not. But there is a catch to this option when it comes to using it with File Content Conversion which is described in SAP Note u2018821267u2019. It states following:
I configure the receiver channel with File content conversion mode and I set the 'Empty Message Handling' option to ignore. Input payload to the receiver channel is generated out of mapping and it does not have any record sets. However, this payload has a root element. Why does file receiver create empty output file with zero byte size in the target directory? Example of such a payload generated from mapping is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<ns1:test xmlns:ns1="http://abcd.com/ab"></ns1:test>
solution :
If the message payload is empty (i.e., zero bytes in size), then File adapter's empty message handling feature does NOT write files into the target directory. On the other hand, if the payload is a valid XML document (as shown in example) that is generated from mapping with just a root element in it, the File Adapter does not treat it as an empty message and accordingly it writes to the target directory. To achieve your objective of not writing files (that have just a single root element) into the target directory, following could be done:
Using a Java or ABAP Mapping in order to restrict the creation of node itself during mapping. (This cannot be achieved via Message Mapping)
Using standard adapter modules to do content conversion first and then write file.
can someone help with java mapping that can be used in this case?Hi,
You have not mentioned the version of PI you are working in. In case you are working with PI 7.1 or above then here is the java mapping code you need to add after message mapping in the same interface mapping
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import com.sap.aii.mapping.api.AbstractTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;
import com.sap.aii.mapping.api.TransformationInput;
import com.sap.aii.mapping.api.TransformationOutput;
public class RemoveRootNode extends AbstractTransformation{
public void execute(InputStream in, OutputStream out)
throws StreamTransformationException {
// TODO Auto-generated method stub
try
DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
DocumentBuilder builderel=factory.newDocumentBuilder();
/*input document in form of XML*/
Document docIn=builderel.parse(in);
/*document after parsing*/
Document docOut=builderel.newDocument();
TransformerFactory tf=TransformerFactory.newInstance();
Transformer transform=tf.newTransformer();
if(docIn.getDocumentElement().hasChildNodes())
docOut.appendChild(docOut.importNode(docIn.getDocumentElement(),true));
transform.transform(new DOMSource(docOut), new StreamResult(out));
else
out.write(null);
catch(Exception e)
public void setParameter(Map arg0) {
// TODO Auto-generated method stub
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
RemoveRootNode genFormat=new RemoveRootNode();
FileInputStream in=new FileInputStream("C:\\apps\\sdn\\rootNode.xml");
FileOutputStream out=new FileOutputStream("C:\\apps\\sdn\\rootNode1.xml");
genFormat.execute(in,out);
catch(Exception e)
e.printStackTrace();
public void transform(TransformationInput arg0, TransformationOutput arg1)
throws StreamTransformationException {
// TODO Auto-generated method stub
this.execute(arg0.getInputPayload().getInputStream(), arg1.getOutputPayload().getOutputStream());
In case you are working in PI 7.0 you can use this code
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import com.sap.aii.mapping.api.StreamTransformation;
import com.sap.aii.mapping.api.StreamTransformationException;
public class RemoveRootNode implements StreamTransformation{
public void execute(InputStream in, OutputStream out)
throws StreamTransformationException {
// TODO Auto-generated method stub
try
DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
DocumentBuilder builderel=factory.newDocumentBuilder();
/*input document in form of XML*/
Document docIn=builderel.parse(in);
/*document after parsing*/
Document docOut=builderel.newDocument();
TransformerFactory tf=TransformerFactory.newInstance();
Transformer transform=tf.newTransformer();
if(docIn.getDocumentElement().hasChildNodes())
docOut.appendChild(docOut.importNode(docIn.getDocumentElement(),true));
transform.transform(new DOMSource(docOut), new StreamResult(out));
else
out.write(null);
catch(Exception e)
public void setParameter(Map arg0) {
// TODO Auto-generated method stub
public static void main(String[] args) {
// TODO Auto-generated method stub
try{
RemoveRootNode genFormat=new RemoveRootNode();
FileInputStream in=new FileInputStream("C:\\apps\\sdn\\rootNode.xml");
FileOutputStream out=new FileOutputStream("C:\\apps\\sdn\\rootNode1.xml");
genFormat.execute(in,out);
catch(Exception e)
e.printStackTrace();
The code for PI 7.0 should also work for PI 7.1 provided you use the right jar files for compilation, but vice-versa is not true.
Could you please let us know if this code was useful to you or not?
Regards
Anupam
Edited by: anupamsap on Dec 15, 2011 9:43 AM -
Installing Elements 11 on Mac 10.8.2. Need help with install error: Setup wants to make changes. Type your password to allow this." After entering Adobe password, nothing happens. Locked from further installation. Any ideas? Adobe phone support could not help.
Just before letting changes (installation in this case) be made on the system, Mac OS prompts for password & this has to be the Mac system password. This password prompt is the system's own native prompt & would accept the system password only. Please make sure it is the right system password (all/admin rights) and the installaion should run.
-
Can anyone help with this error please?;At line 102 of file"C:/Program files (x86)/Macromedia/Dreamweaver 8/Configuration/Objects/Common/Images.js"; TypeError: cmdDOM.parentWindow.setFormItem is not a function
If Dreamweaver shows a message saying "the following JavaScript error(s) occurred", it's usually a sign of a corrupt cache file. The first thing you should always be to delete the file cache. If that doesn't work, delete your personal Configuration folder. Please go through the steps mentioned in thread Deleting a corrupted cache file.
-
Help with CreateDefaultDomain error
hello guy,
Please i need help with this errors
"*ERROR: An error occurred while building the default domain.*
*Please see this log file for more details:*
*C:\oracle\Middleware\jdeveloper\system\system11.1.1.0.31.52.05\o.j2ee.adrs\CreateDefaultDomain.log*"
This is the content of the log.
*"Default domain will be created:*
*C:\oracle\Middleware\jdeveloper\system\system11.1.1.0.31.52.05\DefaultDomain*
*C:\oracle\Middleware\wlserver_10.3\common\bin\wlst.cmd "C:\oracle\Middleware\jdeveloper\system\system11.1.1.0.31.52.05\o.j2ee.adrs\CreateDefaultDomain.py"*
*Process started*
*wlst > 'C:\WINDOWS\system32\QTJava.zip' is not recognized as an internal or external command,*
*wlst > operable program or batch file.*
*Elapsed time: 609 ms".*
this error is effecting the applications i built.
thank
kollyjust check your parameter... it means that the parameter on showInputDialog on the API dont match with the parameter with your showInputDialog code
-
Help with the error message that ADE is not allowed to copy a book onto my Nook. I have tried authorizing and unauthorizing many times--at wits end with this issue.
I too am having the same problem. I have a new hard drive that was imaged from the old one and I'm trying to side load a book to my Nook Simple Touch.. I first installed ADE 4 then borrowed and downloaded a book from Overdrive. I tried a few times to delete and reauthorize both the computer and the Nook and each time I get an authorization error when I try to side load the book. I then found on the Nook forum that the Simple Touch and ADE 4 don't get along. So I uninstalled ADE 4 and installed ADE 3.
I then followed this recommended procedure found on the forum: I deleted the Digital Editions folder from my Nook, launched ADE 3 and authorized the computer, then connected the Nook. For a few seconds, hovering the mouse over the setting icon for the Nook displayed everything on the context menu grayed out. But then it showed the context menu and I was able to display the Nook's authorization, which was the same as the computer's. Still get the same error side loading the book. Deleting and reauthorizing doesn't help. And the Digital Editions folder is still missing from the Nook. -
New @ RMI need help with java.rmi.UnmarshalException: error unmarshalling
Hi @ all out there,
I'm new with Java RMI and have to write a EventSystem for an college project where clients can subscribe to a topic and get notified when someone publishes a message to the subscribed topic.
At server-side I have a class called EventSystem that provides methods for subscribing and unsubscribing from topics, and also for posting messages (for publishers).
To subscribe i thought that the client must specify the topic and also itself ( means that a client calls in this way: obj.subscribe("mytopic", this).
The EventSystem handles a list of all clients, and whenever a new message is posted it goes trough all clients and invokes the handleMessage(String msg) method that all Clients have to provide.
On my local machine without RMi this concept works just great.
I now tried to get it working using RMI , but I get the following Exception when starting the client (the server starts fine) :
Looking up for rmiregistry at 138.232.248.22:1099
Subscriber exception:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:336)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
at $Proxy0.subscribe(Unknown Source)
at SubscriberImpl.main(SubscriberImpl.java:48)
Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:293)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:713)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1733)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:290)
... 9 more
Caused by: java.io.InvalidClassException: SubscriberImpl; class invalid for deserialization
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:587)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
... 13 moreI googled now for 2 hours but can't resolve the problem alone. As far as I can understand I have to serialize Objects that I want to send to the server, right?
So how can i do this? I've never used serialization till now.
any ideas how to solve this problem?
greets from italy and sorry for my very weak english
bd_italyA class has been modified after deployment. Stop the Registry, clean, recompile, and redeploy.
-
Need Help With Java Query String
I'm new to Java and I'm passing data via a URL to another page(I'm not using a form). I have been succesfull in decoding the string to return the name value below:
<SCRIPT LANGUAGE="JavaScript">
function decodeSearchString() {
var nameValue = new Array();
var searchStr = unescape(location.search.substring(1));
if (searchStr) {
var formElement = searchStr.split("&");
var tmpArray = new Array();
for (k = 0; k < formElement.length; k++) {
tmpArray = formElement[k].split("=");
nameValue[tmpArray[0]] = tmpArray[1];
return nameValue
var srchData = decodeSearchString();
</SCRIPT>
However, now I need to add the value returned from the above srcipt to the Java script listed below:
<SCRIPT Language="Javascript" SRC="#srchData.link#?open&pID=PAR"> </SCRIPT>
This above script if working will add the HTML from the URL query to the page, but I keep getting a Java Error with this script. Please Help !I assume you are using a JSP page and not just solely doing Javascript. IF you are using JSP, then read on. Otherwise, I can revisit your script.
To obtain the value of the query string, you would use a method call such as:
String strQuery = request.getQueryString()
Or, to get a single parameter off the query string, you can call:
String strSearchData = request.getParameter("paramname");
Or, if you want all the parameters and values instead of just one long string you can call:
Enumeration enumParamNames = request.getParameterNames();
You can use the above enumeration in combination with getParameter() to get the values.
In order to build your script line and add the query string, you would then do something like this:
<SCRIPT Language="Javascript" SRC="#<%=strSearchData%>.link#?open&pID=PAR"> </SCRIPT>
Notice the <%= %> block in the above code.
I hope that is what you were looking for. Your example is somewhat confusing so I may have answered wrong.
Mike -
Need help with Java applet, might need NetBeans URL
I posted the below question. It was never answered, only I was told to post to the NetBeans help forum. Yet I don't see any such forum on this site. Can someone tell me where the NetBeans help forum is located (URL).
Here is my original question:
I have some Java source code from a book that I want to compile. The name of the file is HashTest.java. In order to compile and run this Java program I created a project in the NetBeans IDE named javaapplication16, and I created a class named HashTest. Once the project was created, I cut and pasted the below source code into my java file that was default created for HashTest.java.
Now I can compile and build the project with no errors, but when I try and run it, I get a dialog box that says the following below (Ignore the [...])
[..................Dialog Box......................................]
Hash Test class wasn't found in JavaApplication16 project
Select the main class:
<No main classes found>
[..................Dialog Box......................................]
Does anyone know what the problem is here? Why won't the project run?
// Here is the source code: *****************************************************************************************************
import java.applet.*;
import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;
import java.util.*;
public class HashTest extends Applet implements ItemListener
// public static void main(String[] args) {
// Hashtable to add tile images
private Hashtable imageTable;
// a Choice of the various tile images
private Choice selections;
// assume tiles will have the same width and height; this represents
// both a tile's width and height
private int imageSize;
// filename description of our images
private final String[] filenames = { "cement.gif", "dirt.gif", "grass.gif",
"pebbles.gif", "stone.gif", "water.gif" };
// initializes the Applet
public void init()
int n = filenames.length;
// create a new Hashtable with n members
imageTable = new Hashtable(n);
// create the Choice
selections = new Choice();
// create a Panel to add our choice at the bottom of the window
Panel p = new Panel();
p.add(selections, BorderLayout.SOUTH);
p.setBackground(Color.RED);
// add the Choice to the applet and register the ItemListener
setLayout(new BorderLayout());
add(p, BorderLayout.SOUTH);
selections.addItemListener(this);
// allocate memory for the images and load 'em in
for(int i = 0; i < n; i++)
Image img = getImage(getCodeBase(), filenames);
while(img.getWidth(this) < 0);
// add the image to the Hashtable and the Choice
imageTable.put(filenames[i], img);
selections.add(filenames[i]);
// set the imageSize field
if(i == 0)
imageSize = img.getWidth(this);
} // init
// tiles the currently selected tile image within the Applet
public void paint(Graphics g)
// cast the sent Graphics context to get a usable Graphics2D object
Graphics2D g2d = (Graphics2D)g;
// save the Applet's width and height
int width = getSize().width;
int height = getSize().height;
// create an AffineTransform to place tile images
AffineTransform at = new AffineTransform();
// get the currently selected tile image
Image currImage = (Image)imageTable.get(selections.getSelectedItem());
// tile the image throughout the Applet
int y = 0;
while(y < height)
int x = 0;
while(x < width)
at.setToTranslation(x, y);
// draw the image
g2d.drawImage(currImage, at, this);
x += imageSize;
y += imageSize;
} // paint
// called when the tile image Choice is changed
public void itemStateChanged(ItemEvent e)
// our drop box has changed-- redraw the scene
repaint();
} // HashTestBigDaddyLoveHandles wrote:
h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
That wasn't attention-grabbing enough apparantly. Let's try it again.
h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color}
h1. {color:red}MULTIPOST: [http://forums.sun.com/thread.jspa?threadID=5358840&messageID=10564025]{color} -
Solaris Console Management crashing with java errors
Hi,
Whenever I am trying to run smc, it's crashing with following java errors:
com.sun.management.viper.CriticalStopException: host1: host1
at com.sun.management.viperimpl.console.gui.SMCConsole.start(SMCConsole.java:280)
at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.openConsole(BaseConsoleOptionsManager.java:791)
at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.redirectToConsole(BaseConsoleOptionsManager.java:660)
at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.launchConsole(BaseConsoleOptionsManager.java:176)
at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.main(BaseConsoleOptionsManager.java:873)
Showrev:
Hostname: host1
Hostid: xxxxxxx
Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.10 Generic_125100-10
Host1:3:
Most up todate patches for wbem and smc
Patch: 119313-14
Patch: 121308-09
Patch: 121308-12
Patch: 124188-02
/etc/init.d/init.wbem status
Solaris Management Console server not running on port 898.
/etc/init.d/init.wbem start
/etc/init.d/init.wbem status
Solaris Management Console server not running on port 898.
Please advice me. I need help!
Thanks!
Mahima
Edited by: kaush28 on Jan 8, 2008 4:25 PM
Edited by: kaush28 on Jan 8, 2008 4:27 PMSMC was working fine for me before installing 121308-12. Then it began throwing the following upon startup of SMC and would not recognize any hosts with the webconsole service running. Backing it out does restore operation. Has anyone else seen this?
# smc &
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:396)
at java.util.Properties.setProperty(Properties.java:128)
at java.lang.System.setProperty(System.java:700)
at com.sun.management.viperimpl.util.security.SMCSSLConfig.setup(SMCSSLConfig.java:158)
at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.init(BaseConsoleOptionsManager.java:188)
at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.launchConsole(BaseConsoleOptionsManager.java:167)
at com.sun.management.viperimpl.console.BaseConsoleOptionsManager.main(BaseConsoleOptionsManager.java:873)
Warning: Cannot convert string "-monotype-arial-regular-r-normal--*-140-*-*-p-*-iso8859-1" to type FontStruct
Java Accessibility Bridge for GNOME loaded. -
Hi everybody,
I have a simple Java application that has a JFrame containing a TextField displaying some text inside it. I am using the NetBeans IDE. I am trying to Enable Java Web start for this application. The steps I have taken upto now are:
1. Right click on Project, Java Web Start -> Enable Java Web Start. This created the jnlp file.
2. In the Resources section, I added the jar file for swing. ( I am not sure if I have to add the path for jnlp.jar etc, or are these found automatically?)
3. Right click on Project, Java Web Start -> Deploy with Java Web Start. This launches the browser with the Click me link, but on clicking this link, I get the following error.
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Wrapper cannot find servlet class jnlp.sample.servlet.JnlpDownloadServlet or a class it depends on
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)
root cause
java.lang.ClassNotFoundException: jnlp.sample.servlet.JnlpDownloadServlet
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1332)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:534)I have all the jnlp files in my jdk directory, and I am not sure why it can't find it. Is there something I am missing?
Thanks
GeorgeI am not sure what it has to do with servlets, I just followed a tutorial on using Netbeans with Java Web Start, and did only the steps as mentioned in my first post. And ended up with the error.
Anyways, I added the jnlp jar files(jnlp.jar, jnlp-servlet.jar, jardiff.jar) in the WEB-INF/lib directory. And it seems to deploying it now. I can get my application to load on clicking on the "Click me" link. But the controls on my application don't seem to be working.
Also, when I try to Right click on my project -> Java Web Start -> Run with Java Web Start, I get the following error message,
javaws-run: C:\Documents and Settings\Lux\Visualization\nbproject\build-jaws-impl.xml:36: Execute failed: java.io.IOException: CreateProcess: C:\j2sdk1.4.2_13\bin\javaws "file:///C:/Documents and Settings/Lux/Visualization/Visualization.jnlp" error=2
BUILD FAILED (total time: 0 seconds)
Any help appreciated.
Thanks.
George
Maybe you are looking for
-
I have a Linksys wireless router that is the hub of my home wireless network. I have been successful in adding a HP OfficeJet 6500 All-in-one Printer an old HP DeskJet 890C that I purchased in 1997 with a computer running Windows 95. The HP 890C ha
-
HI we are currently integrating a http to rfc connection with the URL in the format of http://sdn.sap.com?name=Joe&country=India we want to pass the url parameters name and country to a rfc in sap but we are having difficulties using the apply URL Pa
-
Music and Apps will NOT sync back on updated iPod! HELP?!
So I've just currently updated both my iTunes and my iPod 4th gen. My music is on my computer in iTunes, but when I go to my music on my iPod, it's not there. I have tried syncing it multiple times, but it won't work, and when I restarted my iPod and
-
After crash all the recovery files were gone. With a recovery software I could get old versions of recovery files (recovery.bak, recovery.js). I try to implement them in the new profile folder by exchanging the files, but FF34 just ioverwrites them.
-
hello. my router have some strange problems. after factory defaults setup it work ok, when i change dmz or load configurations, or when i disconnect firewall, after reboot it don't connect to internet at all. at status bar sayed - connected and there