Exception in command window
Hi all,
I wrote several programs using Eclipse IDE.In the projects I included bunch of jar files.When I try to run those programs under command window I get exceptions.I have figured out that those exceptions are caused by the missing jar files.So I need to set a classpath to define those jar files.
I tried to set classpath in autoexec.bat file and when I try to run the autoexec.bat I saw that under CLASSPATH setting it says "Out of environment variable" That is I guess because the definition of classpath is too long.
My question is:Is there a shortest way to define multiple jar files?
Not like: SET CLASSPATH=C:\abc\a.jar;C:\abc\b.jar;...
Is it possible to write like: ...=C:\abc\*.jar
Some of my jar files are under same directory.
It is going to be hard to write all classpaths like: java -classpath ... Prog
Did anyone faced that kind of problem?I would really appreciate if anybody could help me.Thanks alot.
EUB
you can avoid long classpath by either including all the jar files under one roof, making fewer jar files. or run ur program with the -classpath option so that u can specify the classpath at run time. This option requires you to specify the classpath in addition to the one in autoexec.bat for all the programs which require those jars
Similar Messages
-
Output jframe information to command window
Hi all I have a program that tracks the assets of a customer, kind of like a cart that holds cds, appliances, etc...
I wanted to be able to print out the results to the command window after they enter the number of how many items from what the user enters after they press "current status" or if they "delete" their current items. I want it to keep doing this until they close the window and exit the program. People have told me to add the System.out.println to where it says "delete" or "current status" but Im not sure how to add it in I will attach the code here. Thanks
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
public class TestProgram extends JFrame implements ActionListener{
JLabel column1, column2;
JLabel totalItems, totalCost;
JLabel serialNum;
JLabel electronics, autos, furnitures, cds;
JButton TrackAssets, delete;
JPanel panel;
JTextField electronicsAsset, autosAsset, furnituresAsset, cdsAsset;
JTextField serialNumber;
JTextArea items, cost;
// constructor to initialize the top variables/fields
public TestProgram()
column1 = new JLabel("Select Items");
column2 = new JLabel("Specify Quantity");
electronics = new JLabel("Electronics");
electronicsAsset = new JTextField();
electronicsAsset.addActionListener(this);
autos = new JLabel("Autos");
autosAsset = new JTextField();
autosAsset.addActionListener(this);
furnitures = new JLabel("Furnitures");
furnituresAsset = new JTextField();
furnituresAsset.addActionListener(this);
cds = new JLabel("Compact Discs");
cdsAsset = new JTextField();
cdsAsset.addActionListener(this);
serialNum = new JLabel("Serial Number input here");
serialNumber = new JTextField();
electronicsAsset.setNextFocusableComponent(serialNumber);
//Create labels and text area components
totalItems = new JLabel("Total Items:");
totalCost = new JLabel("Total Cost:");
items = new JTextArea();
cost = new JTextArea();
//Create buttons and make action listeners
TrackAssets = new JButton("Current Status");
TrackAssets.addActionListener(this);
delete = new JButton("Delete all");
delete.addActionListener(this);
//Create a panel for the components
panel = new JPanel();
//Set panel layout to 2-column grid
//on a white
panel.setLayout(new GridLayout(0,4));
panel.setBackground(Color.white);
// add details
getContentPane().add(panel);
panel.add(column1);
panel.add(column2);
panel.add(electronics);
panel.add(electronicsAsset);
panel.add(autos);
panel.add(autosAsset);
panel.add(furnitures);
panel.add(furnituresAsset);
panel.add(cds);
panel.add(cdsAsset);
panel.add(furnitures);
panel.add(furnituresAsset);
panel.add(totalItems);
panel.add(items);
panel.add(totalCost);
panel.add(cost);
panel.add(serialNum);
panel.add(serialNumber);
panel.add(delete);
panel.add(TrackAssets);
public void actionPerformed( ActionEvent event ){
// variables for method actionPerformed
String output, output2;
Object source = event.getSource();
Integer electronicsNo, autosNo, furnituresNo, cdsNo, serialNum;
// class responsible for showing different items
AssetTracker tracker = new AssetTracker();
Double cost;
// program is instance of TestProgram creates a new file
TestProgram program = new TestProgram();
// if they track assets...
if(source == TrackAssets){
tracker.serialNum = serialNumber.getText();
tracker.electronics = electronicsAsset.getText();
tracker.autos = autosAsset.getText();
tracker.furnitures = furnituresAsset.getText();
tracker.cds = cdsAsset.getText();
if(tracker.electronics.length() > 0){
//statement that might throw an exception
try{
electronicsNo = Integer.valueOf(tracker.electronics);
tracker.itotal += electronicsNo.intValue();
//find invalid number
catch(java.lang.NumberFormatException e){
electronicsAsset.setText("Invalid Value");
else {
tracker.itotal += 0;
if(tracker.autos.length() > 0){
//find invalid again
try{
autosNo = Integer.valueOf(tracker.autos);
tracker.itotal += autosNo.intValue();
catch(java.lang.NumberFormatException e){
System.out.println("Invalid Value");
else {
tracker.itotal += 0;
if(tracker.furnitures.length() > 0){
//seek invalid numbers
//statement that might throw an exception.
try{
furnituresNo = Integer.valueOf(tracker. furnitures);
tracker.itotal += furnituresNo.intValue();
// statements to be executed if a matching Java exception occurs in try.
catch(java.lang.NumberFormatException e){
furnituresAsset.setText("Invalid Value");
else {
tracker.itotal += 0;
if(tracker.cds.length() > 0){
//check then find invalid
try{
cdsNo = Integer.valueOf(tracker.cds);
tracker.itotal += cdsNo.intValue();
catch(java.lang.NumberFormatException e){
cdsAsset.setText("Invalid Value");
else {
tracker.itotal += 0;
// display
serialNum = new Integer(tracker.itotal);
output = serialNum.toString();
this.items.setText(output);
tracker.icost = (tracker.itotal * 300.00);
cost = new Double(tracker.icost);
output2 = cost.toString();
this.cost.setText(output2);
// electronics, autos, furnitures, cds
// if user delete all items from assets
if(source == delete){
serialNumber.setText("");
electronicsAsset.setText("");
autosAsset.setText("");
furnituresAsset.setText("");
cdsAsset.setText("");
serialNumber.setText("");
tracker.icost = 0;
cost = new Double(tracker.icost);
output2 = cost.toString();
this.cost.setText(output2);
tracker.itotal = 0;
serialNum = new Integer(tracker.itotal);
output = serialNum.toString();
this.items.setText(output);
// main method
public static void main( String[] args )
TestProgram frame = new TestProgram();
// title of JFrame
frame.setTitle("Asset tracking program");
// mew window created
WindowListener l = new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);// exit
// add window from package then show window
frame.addWindowListener(l);
frame.pack();
frame.setVisible(true);I don't understand the question. Are you telling us you don't understand how to use System.out.println(...);? How do you debug programs without using this method?
Usually the first program someone learns to write is something like:
public static void main(String[] args)
System.out.println("Hello World");
after they press "current status" or if they "delete" their current itemsYou want to do some activity when the above actions occur. You must already have code in your program to do something in the above cases. So simply add the System.out.println(..) statements in the same part of code. -
Error in WC dot 8 command window
Hello - I am struggling with this issue. I have created Managed Bean in WebCenter Portal Extension project (designwebcenterspaces) in Jdev 11.1.1.7 (just one method and register the bean request scope in faces-config).deployed the managed bean as WAR. Managed Bean has OPSS API implementation and interacts with LDAP (against Default Provider in weblogic)
updated the weblogic.xml with the above shared library (managed bean name) and deployed as extend.spaces.war .. have restarted the servers as required
but as soon as i login to webcenter 8888 i get following error even before the home page show up.. Pl help what might go wrong OR is it a BUG in designwebcenterspaces ?
Following is the stack from webcenter managed server command window I get the very moment I hit the URL http://localhost:8888/webcenter in browser
<Mar 7, 2015 10:33:52 PM PST> <Warning> <oracle.adf.share.ADFContext> <BEA-00000
0> <Automatically initializing a DefaultContext for getCurrent.
Caller should ensure that a DefaultContext is proper for this use.
Memory leaks and/or unexpected behaviour may occur if the automatic initializati
on is performed improperly.
This message may be avoided by performing initADFContext before using getCurrent
For more information please enable logging for oracle.adf.share.ADFContext at FI
NEST level.>
<Mar 7, 2015 10:33:52 PM PST> <Warning> <oracle.webcenter.framework.view.support
.impl.DeviceSupportUtils> <BEA-000000> <
java.lang.NullPointerException
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1252)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:795)
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.getVa
lue(DeviceSupportUtils.java:214)
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.getSe
ededOptionalAttributes(DeviceSupportUtils.java:231)
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.getMa
tchingSeededAttr(DeviceSupportUtils.java:3640)
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.conve
rtSupportAttribtuesToAttribtues(DeviceSupportUtils.java:3608)
at oracle.webcenter.framework.view.support.impl.DeviceSupportUtils.conThere are two more bugs filed in Dot8 & Dot8 BP4 respectively :
Bug 17173341 - NULLPOINTEREXCEPTION SEEN WHEN CREATING A PORTAL
Bug 19682876 - NPE AT STARTUP.
which are closed as a duplicate of the following bug pointed out by Kingsley_R
Bug 17528953 - PORTAL CREATION THROWS NPE IN LOGS: DEVICESUPPORTUTILS.GETVALUE
[ Source :: KM Note - NullPointerException seen in logs when starting up WebCenter Portal (Doc ID 1933824.1) ]
FYI, The exception seen in the bug 19682876 is the closest match to the stack trace or exception from your query.
The above bug 17528953 is already fixed in 11.1.1.9.0. You can request for a backport / one-off patch on top of Dot8 to see if it resolves the issue.
I hope it helps! -
Open a command window and send some keystroke to the opened command window
Hi All,
I am trying to open command prompt and send some key stroke to that command prompt. Here I am using Robot to send keystroke. But the problem is, the keystrokes are not sent to the prompt. I guess I need to activate progamitically the command prompt to accept the keystrokes . Please find the code below ( as I did).
try
String command = "cmd.exe /c start";
Process child = Runtime.getRuntime().exec(command);
Robot robot = new Robot();
Thread.sleep(5000);
String lol = "indranil";
for(int i=0;i<lol.length();i++)
robot.keyPress(lol.charAt(i));
int g = lol.length() - 1;
robot.keyRelease(lol.charAt(g));
catch (Exception e) {}
I guess I am doing some mistake here while sending the keystroke/openning the command prompt. Can anyone please help me how can I open a command window and send some keystroke to the opened command window. I am in fix.
Thanks,
IndranilThe first thing to do is read the API and examples for the Robot class.
Also check out this thread with a similar discussion: [http://forums.sun.com/thread.jspa?threadID=5385677]
The short spoonfed answer - keyPress() and keyReleaseI() do not take chars. Read up on KeyEvent -
Server command window disappears after running
Hi,
I have been having major problems with BEA weblogic. I'm just trying to run samples
from their book and I got things to work using version 6.1 which I downloaded
from the site but when it came to Entity Beans, the sample wouldn't work. So I
installed the 6.0 version from the CD and now the server itself doesn't run. When
I Start the Server from the Start Menu, the command window pops up and then just
disappears (at least for teh examples Server). The Default Server opens a command
window, asks for my password (which it prints to the screen by the way...it's
not supposed to do that) and then disappears. I don't know what to do!!
Any suggestions is really truly absolutely appreciated!!
CindyHi,
See where that shortcut points and go to that directory to execute that start
script from command prompt, then you can see the exact exception it will be
throwing....
may be wrong start-up password i guess...
regards
aseem
Cindy wrote:
Hi,
I have been having major problems with BEA weblogic. I'm just trying to run samples
from their book and I got things to work using version 6.1 which I downloaded
from the site but when it came to Entity Beans, the sample wouldn't work. So I
installed the 6.0 version from the CD and now the server itself doesn't run. When
I Start the Server from the Start Menu, the command window pops up and then just
disappears (at least for teh examples Server). The Default Server opens a command
window, asks for my password (which it prints to the screen by the way...it's
not supposed to do that) and then disappears. I don't know what to do!!
Any suggestions is really truly absolutely appreciated!!
Cindy -
In Windows I would expect to call up a seperate command window with the following, but it appears to freeze up. What am I doing wrong?
import java.io.*;
public class command {
public static void main(String[]args) {
try {
Process runprogram = Runtime.getRuntime().exec("C:\\windows\\system32\\cmd.exe");
try {
runprogram.waitFor();
catch(InterruptedException e){}
catch(IOException e) {
System.err.println("Cannot run command window");
}What about this...
Process proc = null;
try
proc = Runtime.getRuntime().exec("start cmd");
proc.waitFor();
catch(Exception e)
e.printStackTrace();
}Some dukies would be nice next time ;-) -
Command Window Database Access via a DataSource (Pt 2)
Hi.
For those of you (especially duffymo) who were good enough to make suggestions concerning my problems when attempting to access an Oracle 10g database via a DataSource from a servlet the week before last, I'm pleased to say that I got that working on my return from holiday!
Now to return to an earlier problem...
I'd like to access the same database from a standalone, command window program and have tried setting the INITIAL_CONTEXT_FACTORY and PROVIDER_URL properties as shown below.
Hashtable envt = new Hashtable();
envt.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.commons.dbcp.BasicDataSourceFactory");
envt.put(Context.PROVIDER_URL, "http://localhost:8080");
Context initialContext = new InitialContext(envt);
Context context =(Context)initialContext.lookup("java:comp/env");
DataSource dataSource =(DataSource)context.lookup("jdbc/Oracle_Finances");
connection = dataSource.getConnection();
However, this generates error messages with root exception "java.lang.ClassNotFoundException: org.apache.comons.dbcp.BasicDataSourceFactory".
If I copy the JAR file containing BasicDataSourceFactory (viz. commons-dbcp-1.2.1.jar) from Tomcat's common\lib folder into Java's jre\lib\ext folder, then I get a similar set of error messages, but the root exception changes from ClassNotFoundException to "java.lang.ClassCastException: org.apache.comons.dbcp.BasicDataSourceFactory".
Does anybody know where the problem lies??
Any help most appreciated.
Cheers.
JanI'd like to access the same database from a
standalone, command window program and have tried
setting the INITIAL_CONTEXT_FACTORY and PROVIDER_URL
properties as shown below.I've never done this. I'm not sure if it can or should be done.
The problem is that the standalone app isn't part of any Tomcat context.
It also ties your standalong app to Tomcat. I don't think you want to do that.
There's got to be a way to manage this without resorting to Tomcat. I'd look at the Commons docs to see.
If I copy the JAR file containing
BasicDataSourceFactory (viz. commons-dbcp-1.2.1.jar)
from Tomcat's common\lib folder into Java's
jre\lib\ext folder, This is a terrible idea. You shouldn't be putting anything in jre/lib/ext - it'll cause more problems than it's worth.
Create a /lib directory for your project and put the 3rd party JARs in there. Disk space is cheap, and keeping all the artifacts that you need to create your app in one place is a good idea.
% -
Requesting user input from UNIX command window
New to this forum, and relatively new to Java......question for you......
Currently, I am able to request a .txt file from a user in my unix command window by having them type in the following command:
java Game (nameOfTextFile).txt
with the following code:
public class Game {
public static void main(String[ ] args) {
try{
reader = args[0];
catch(Exception g){
System.out.println(g);
where 'reader' holds the .txt file.
What I would like to do is as soon as the user types in the command:
java Game
it gives them the line:
"Please type the file to be input"
and at this point they type in:
(nameOfTextFile).txt
and then I can start working with the text file.
Any ideas?
Thankspublic class Game {
public static void main(String[ ] args) {
try{
reader = args[0];
catch(Exception g){
System.out.println(g);
}This class will not compile. The variable 'reader' is not declared anywhere.
You could create a shell program. When the user enters the name of the shell program at the command prompt, it gives them the prompt to enter the file to be input. And then from within the shell program you call the java program with the name of the file. -
Error when executing jar from command window pla help
Hello
I have a project which calls a webservice, I am using Jdeveloper 10.1.3.4
I deployed the project in a jar file and included all the necessary libraries in it,
but when executing the jar from command window I am getting the exceptions below
the statement which cause the error is : PROXY= new JoPayWebServiceClient();
please help
Exception in thread "main" java.lang.NoClassDefFoundError
at oracle.j2ee.ws.common.encoding.soap.StandardSOAPTypeMappings.class$(S
tandardSOAPTypeMappings.java:125)
at oracle.j2ee.ws.common.encoding.soap.StandardSOAPTypeMappings.<init>(S
tandardSOAPTypeMappings.java:558)
at oracle.j2ee.ws.client.BasicService.createSoapMappings(BasicService.ja
va:259)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:236)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: java.lang.ClassNotFoundException: javax.activation.DataHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
... 17 more
C:\>Hi Arun
I added all the jars I found in jdeveloper log as you told me , but still I have this error:-
standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
CAUSE:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
ry1_1Impl not found
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:95)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:62)
at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
nit>(LiteralAnyElementSerializer.java:16)
at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
nit>(StandardLiteralTypeMappings.java:198)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:280)
... 14 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:93)
... 18 more
CAUSE:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
ry1_1Impl not found
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:95)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:62)
at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
nit>(LiteralAnyElementSerializer.java:16)
at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
nit>(StandardLiteralTypeMappings.java:198)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:280)
... 14 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:93)
... 18 more
Exception in thread "main" java.lang.NullPointerException
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.registerS
erializer(JoPayWebServiceService_SerializerRegistry.java:45)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:32)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
C:\> -
Error when executing jar from command window PLZ HELP URGENT
Hello
I have a project which calls a webservice, I am using Jdeveloper 10.1.3.4
I deployed the project in a jar file and included all the necessary libraries in it,
but when executing the jar from command window I am getting the exceptions below
the statement which cause the error is : PROXY= new JoPayWebServiceClient();
please help
Exception in thread "main" java.lang.NoClassDefFoundError
at oracle.j2ee.ws.common.encoding.soap.StandardSOAPTypeMappings.class$(S
tandardSOAPTypeMappings.java:125)
at oracle.j2ee.ws.common.encoding.soap.StandardSOAPTypeMappings.<init>(S
tandardSOAPTypeMappings.java:558)
at oracle.j2ee.ws.client.BasicService.createSoapMappings(BasicService.ja
va:259)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:236)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: java.lang.ClassNotFoundException: javax.activation.DataHandler
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
... 17 more
C:\>I added all required jars but still I get this error :-
standard type mapping initialization error: javax.xml.rpc.JAXRPCException: javax
.xml.soap.SOAPException: Unable to create SOAP Factory: Provider com.sun.xml.mes
saging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
CAUSE:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
ry1_1Impl not found
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:95)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:62)
at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
nit>(LiteralAnyElementSerializer.java:16)
at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
nit>(StandardLiteralTypeMappings.java:198)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:280)
... 14 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:93)
... 18 more
CAUSE:
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:282)
at oracle.j2ee.ws.client.BasicService.createStandardTypeMappingRegistry(
BasicService.java:244)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:26)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
Caused by: javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable t
o create SOAP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFacto
ry1_1Impl not found
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:95)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:62)
at oracle.j2ee.ws.common.encoding.literal.LiteralAnyElementSerializer.<i
nit>(LiteralAnyElementSerializer.java:16)
at oracle.j2ee.ws.common.encoding.literal.StandardLiteralTypeMappings.<i
nit>(StandardLiteralTypeMappings.java:198)
at oracle.j2ee.ws.client.BasicService.createLiteralMappings(BasicService
.java:280)
... 14 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: Provider
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl not found
at javax.xml.soap.SOAPFactory.newInstance(SOAPFactory.java:33)
at oracle.j2ee.ws.common.encoding.literal.LiteralFragmentSerializer.<ini
t>(LiteralFragmentSerializer.java:93)
... 18 more
Exception in thread "main" java.lang.NullPointerException
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.registerS
erializer(JoPayWebServiceService_SerializerRegistry.java:45)
at has.proxy.runtime.JoPayWebServiceService_SerializerRegistry.getRegist
ry(JoPayWebServiceService_SerializerRegistry.java:32)
at has.proxy.runtime.JoPayWebServiceService_Impl.<init>(JoPayWebServiceS
ervice_Impl.java:26)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactory
Impl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryIm
pl.java:121)
at has.proxy.JoPayWebServiceClient.<init>(JoPayWebServiceClient.java:18)
at moict.Main.confirmPayment(Main.java:142)
at moict.Main.main(Main.java:93)
C:\> -
Eliminating the Command window in Windows
I had thought I had found a way to make the command window (the black command interpreter window in Windows that comes up when you run the JVM) go away. I used the following code:
public class StartApp {
public static void main( String[] args ) {
String command = "java";
for ( int n = 0; n < args.length; n++ )
command += " " + args[n];
if ( args.length > 0 ) {
try {
Runtime.getRuntime( ).exec( command );
System.exit( 0 );
catch ( Exception e ) {
System.err.println( e );
System.exit( 1 );
else
System.out.println( "Format: java StartApp [-options] <filename> [arguments]" );
System.exit( 0 );
When I run this Java app and put in another app for it to run, it runs that app just fine (it's a Swing app so I don't need the command window visible). Not only that, but it gives me the command line right after starting it (meaning the original app exited). So, theoretically, you would think I could just type "exit" to close the command window. Well, when I do type that, the command window waits until the program exits before actually closing. Manually closing the command window closes the whole program. The odd thing was, an older version (I think Java 1.1) of the JRE would allow the command window to close. But, with 1.3, it does not. Does anyone have any idea about how I could change this, or of another way to get rid of the command window?
-Sam FahmieSorry, didn't put the code tag in right...
public class StartApp {
public static void main( String[] args ) {
String command = "java";
for ( int n = 0; n < args.length; n++ )
command += " " + args[n];
if ( args.length > 0 ) {
try {
Runtime.getRuntime( ).exec( command );
System.exit( 0 );
catch ( Exception e ) {
System.err.println( e );
System.exit( 1 );
else
System.out.println( "Format: java StartApp [-options] <filename> [arguments]" );
System.exit( 0 ); -
Workflow 2.6.4.0.0 configuration problem - Command window does not close
I am trying to install Oracle Workflow 2.6.4.0.0. as part of Warehouse builder using the details mentioned in this link
http://www.oracle.com/technology/obe/10gr2_owb/owb10gr2_gs/owb/lesson4/etl-mappings.htm
From the Start menu click Programs > Oracle <Database HOME> > Configuration and Migration Tools >
Workflow Configuration Assistant. The Assistant is started.
Accept the default for Install Option
Workflow Account: (Accept the default ) owf_mgr
Workflow Password: owf_mgr
SYS Password : <Enter the SYS account password>
TNS Connect Descriptor: localhost:1521:orcl
Click Submit.
However following this document, the command window did not close, and I did not get any message stating that Workflow Configuration has successfully completed.
The command window displays this message as the final step and does not close-
WorkflowCA: Executing :C:\oracle\product\10.2.0\db_1\jdk\bin\java -jar C:\oracle
\product\10.2.0\db_1\oc4j\j2ee\home\admin.jar ormi://localhost:6041 admin welcome -application WFALSNRSVCApp -testDataSource -location jdbc/WorkflowDS -username OWF_MGR
Is this installation complete? How to resolve this?
Please can any one help?
Thanks very much
AllanI ran into this problem. And it took me while to get it fixed, but It does work.
First the TNS Desc is misleading. One would think that it would be host:port:sid. What it is really looking for is host:port:servicename. But if you want to use the "Change Tablespace" drop down list you need to, enter the sys password, change it to host:port:sid - Then use the drop list. And change it back before you press submit.
The second thing that I found is that it wants to use the SYSTEM tablespace as temporary tablespace. THis is becuase it is looking for a temp tablespace called TEMP. If you look a the line default_temp = SYSTEM. And if you dont supply a tablespace it wanted to change it in the wfsysgnt.sql script in the $OH\wf\sql directory. You would think that what ever the default database tbs and temp tbs is - that owf would use that. No, it wanted to change it. Oracle needs to fix this.
So here is how i fixed it. I had to create a temporary tablespace called TEMP, does not need to be big as I dropped it after it was done. Then i had to modify the wfinstall.csh script and use the install options. Not the /tablespace this option is obayed but it will try to use the SYSTEM as the temp tbs. Here is my example that I appended:
/wfacct "owf_mgr" /wfpasswd "my_owf_mgr_pwd" /debug "true" /tnsConnDesc "my_host_ip:my_port:my_servicename" /syspasswd "change_on_install" /tablespace "OWF_TBS" -
How to get rid of the command window....
How to get rid of the command window, automatically, once the .bat file which execute the .jar has been executed?
ZnxIf you don't want the command window to show, use:
javaw yourClass
instead of...
java yourClass -
Variable used in OS Command (windows) not Resolving?
In my package:
1st Step: Declare Variable FILENAME
2nd Step: Set Varaible FILENAME=testcopy.txt
3rd Step: OS Command (windows), Text of your command=cmd C:\copy #CPE.FILENAME c:\temp
(CPE is the project name)
However the variable does not get resolved?
ODI 11g, hangs on the 3rd Step (Green lightning) and the code in operator is shown as: cmd C:\copy #CPE.FILENAME c:\temp
Anything additional to resolve variables in an Windows OS Command?Try with OdiOSCommand.
-
Hide command window from transactions in sap portal
Dear experts
sir i want to hide command window from transactions iview in sap portal when i using sap gui for windows sir i know very well settings for sap gui for html. so is there any possiblity for hiding command window from transactions iview when i use sap gui for windows
please help...............
Edited by: mousam jaini on Nov 1, 2010 12:11 PMHi Mousam
You can get solution from the SAP Note: 1010519
If ur system doesnot meet the pre-requiste, then you can set the below parameter under transaction sicf:
~webgui_simple_toolbar=1
Pls go through the below article to display the SAP Transaction as SAP GUI
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e046cb5c-711a-2a10-95a9-81b365901b95
Thanks
Keshari
Maybe you are looking for
-
Neo2 Platnum - memory ratio issues, please help!
hey all very strang stuff... just got a 3200+ winchester .90 CPU, its nice. also have 2x twinx corsair 3200 non LL ram. idea: I had in mind that since my ram doesnt OC very well (220 max) I was going to get the neo2 and play with the FSB and set the
-
Select statement in a smartform
Hi is it possible to write a select stmt in a smartform? what is the use of convert data (step) in lsmw? thanks, sap-abap.
-
sometimes (i haven't found a pattern yet of when) when i copy and paste an object that is solid black (for example) into another Illustrator document, a bunch of unused swatches copy into the swatch palette for no reason! lots of "default global colo
-
How can I find face on a picture?
In LabView how can I find the face on a picture?
-
Problem of native installer of Adobe Air
The native installer will display an error as shown in the screenshot. But the native installer can execute normally after install A ir 2.0 public Beta First. Therefore, I think that the problem is not the system requirements problem. How can I run t