Use of java application w/ Swing component causes Win95 system to freeze
Hi All,
Until yesterday, we were having a major problem that whenever we ran a java applet or application that used Swing, the Windows 95 systems would freeze tight and require a reboot.
I had tried everything from loading the J2RE, Windows Sockets 2, J2SDK, none of which helped with the problem.
What we found out yesterday is the Windows 95 machines that were freezing didn't have DirectX on them, and that when DirectX 8.0a was installed, the freezing problem went away.
Just thought I'd share my success if anyone else is now struggling through the same items.
Bruce
hii,
Well although the reply is litle bit late but i just wanted to thank you for your idea in installing direct x it worked fine also with a windows 2000 and 120 ram
laterzzz
Similar Messages
-
Can we call a webservice using standalone java application ?
Hi friends,
Can we call configurd webservice in xi , using standalone java application by just giving url of webservice ?
OR
Only by means of WEBDynapro we can call ?
Can you please tell me the answer for this .
Regards .,
V.RangarajanHI Ranga Rajan
well, If at all if you have webservice...you can import that werbserivce as External definition in to IR.
How to import:
1) Go to IR and and move to your requied component and there you can see the option called imported objects...select on imported objects where you can give the name and you can select the webservices which you want to use it.
2) Hope you are aware of that a werbservice will have the request and response.
3) Create the mapping program accroding to your requirement.
Go through blogs of Bhavesh and Naveen which talks about calling webservice in a specific condition:
Webservice Calls From a User Defined Function - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
Consuming/Calling webservices from DataBases - /people/sap.user72/blog/2005/10/20/consumingcalling-webservices-from-databases
Also check this help file on Web Services:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
Cheers..
Vasu
<i>** Reward Points if found useful **</i> -
How cud I run odi using a java application.
HI,
I need the location of the jar files that cud help me to run odi using a java application.
I am unable to find jar file which is responsible for the invoking ODI using the classes in the package named
"oracle.odi.sdk.invocation".
I found this package name from doc
regards,
Palash ChatterjeeIt's going to depend on the application in question.
-
Can we run the batch file using simple java application
Hello sir,
we want to run the batch file using simple java application. i tried with some example, we run the exe files but not batch file.
Runtime r = Runtime.getRuntime();
r.exec("D:\\jboss\\bin\\run.bat");
My application is server will run when we run the java appliation.
any suggestion? plz give me the solutionsyes you can run html file
WEB.SHOW_DOCUMENT is a built-in that is used in Forms to call URL from a Web Form. It works much like the similar way that a link on an HTML page works and it takes two arguments, one is URL and second one is TARGET, in your case use following.
WEB.SHOW_DOCUMENT('http://channas.iil.informatics.lk:8890/forms/frmservlet?config=abc.html', '_blank');
Hope this will work for you
Abbas -
Deployment failed. Building failed using sun java application server
Hi
am using netbean 6 ,glassfish v2 and sun java application server 9
When am try to run my jsp file am getting Deployment error report with further error given below.
Deployment error:
The Sun Java System Application Server could not start.
More information about the cause is in the Server log file.
Possible reasons include:
- IDE timeout: refresh the server node to see if it's running now.
- Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
- Incorrect server configuration (domain.xml to be corrected manually)
- Corrupted Deployed Applications preventing the server to start.(This can be seen in the server.log file. In this case, domain.xml needs to be modified).
- Invalid installation location.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor256.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: org.netbeans.modules.j2ee.deployment.impl.ServerException: The Sun Java System Application Server could not start.
More information about the cause is in the Server log file.
Possible reasons include:
- IDE timeout: refresh the server node to see if it's running now.
- Port conflicts. (use netstat -a to detect possible port numbers already used by the operating system.)
- Incorrect server configuration (domain.xml to be corrected manually)
- Corrupted Deployed Applications preventing the server to start.(This can be seen in the server.log file. In this case, domain.xml needs to be modified).
- Invalid installation location.
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1270)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1224)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1035)
at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:912)
at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:417)
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:140)
... 16 more
BUILD FAILED (total time: 44 seconds)Hi,
I've found that if you remove the j2ee-application element related to the enterprise app you are trying to deploy from Sun\AppServer\domains\domain1\config\domain.xml, and also remove your enterprise j2ee-app directory from Sun\AppServer\domains\domain1\applications\j2ee-apps\, it works.
This is not a permanent solution. I get the same error again, when I try to redeploy the application for the third time. Hope someone can help soon!
Thanks. -
Reading a video input using a java application
I want to read a live video input inside a java application and extract frames from that video,..But I don't have knowledge of doing this.
If any of you know how to implement this would you please send me some sample applications codes to one of the following email addresses.
[email protected]
[email protected]
[email protected]
[email protected]I am not really sure how to solve this problem, you might be interested in checking this example on Accesing Individual Decoded Video Frames - http://java.sun.com/products/java-media/jmf/2.1.1/solutions/FrameAccess.html
regards -
Web dynpro java application to update data in CRM system
Hello All,
I need to develop a web dynpro java application which will read and update data in CRM. How can I do this?
Thanks and Regards,
DeeptiFirst develop RFC / BAPIs to update and read in CRM system. Call those BAPIs from Web Dynpro Java application using AdaptiveRFC model.
Cheers,
~kranthi -
ITunes causing whole system to freeze?
Hi
There are a lot of questions on this forum which are similar to this, but I have not found one that actually replicates the same problem in the same conditions.
Today I was listening to iTunes and had a bunch of other applications open. For no apparent reason, the whole system froze up on me. By this I mean: the mouse no longer responds, keyboard no longer responds, the colon that flashes the seconds in the clock stops flashing (I have that turned on so that I can see when the machine is really frozen), and all the keyboard-shortcuts like Option-Command-Esc (Forced Quit dialog) or Ctrl-Eject fail to work. Even the Ctrl-Command-Power doesn't work (for forced Restart): instead I have to hold the power button for a few seconds and the computer shuts down, but does not restart. (This is what I mean by the 'whole system freezing'). There is no warning, no beachball spinning, and the G5 does not even seem particularly hot (the fans were not blowing hard). So I am completely at a loss to understand what's going on.
Thinking this was a one-off event, I restarted, ran a "Verify permissions" and "Repair permissions" (was this a mistake?) and ran a few applications (Mail, Safari) all of which worked fine. Then I opened iTunes again. It opened OK. I then closed the window, which worked. Then I quit iTunes. This caused the whole system to freeze again, exactly as before.
I have repeated this cycle a couple of times. iTunes will open, will even start playing a song, but on Quit the whole system freezes.
More recently I found that the system froze with iTunes just playing a song.
What then happened was that I looked for help on this forum, found too many cases of iTunes doing strange things but none with my configuration, and thought (perhaps recklessly) that I should update iTunes (from 6.0.4 to 6.0.5). This seemed to work perfectly. Except when I opened it, and played a song, within seconds the whole freezing thing happened again, exactly as before.
So, apart from giving up on listening to music in the office, what is to be done? I am able to run other applications OK (I'm writing this within Safari), so it seems to be an iTunes related problem. I had no unusual devices connected (in fact nothing except keyboard, mouse, monitor), and no iPod connected.
Does anyone know what to do about this?
(I'm using a Power-PC based dual G5 which is only about 15 months old).
Thanks in advance.
PowerMac G5 Dual 1.8GHz, PowerBook G4 12" 1.33GHz Mac OS X (10.4.5)
PowerMac G5 Dual 1.8GHz, PowerBook G4 12" 1.33GHz Mac OS X (10.4.5)Just an update (I'm answering my own post) in case anyone else has this issue:
I managed to get iTunes to stop causing hard crashes. I went through the repair disk procedure outlined here:
http://www.thexlab.com/faqs/repairprocess.html
Including running Yasu at the end with most of the boxes ticked, to clean caches thoroughly.
And I also trashed all the iTunes preferences files. The first time you run iTunes after this you have to answer some questions (as it resets the prefs) but you can always restore your settings manually afterwards.
So far so good -- iTunes launches, runs, and quits without crashing the system.
I guess this might not have been an issue with iTunes itself. The damage was probably done when the first crash happened and I had to use the power button to shut down. I still don't understand what caused the first crash, though, and Yasu seems to have deleted the panic log so I'll never know.
PowerMac G5 Dual 1.8GHz (1 GB RAM), PowerBook G4 12" 1.33GHz (768 MB RAM) Mac OS X (10.4.5) -
Re-using existing client application minus Swing.
Our company has developed a desktop application over the years and I'd be comfortable in stating that it's close to legacy status. The application has a Swing View and throughout the years, unfortunately, the BL and the presentation layer has become tightly coupled.
A challenge has been given to me to take this application and make it run as a 'service' (i.e. re-use the BL but without the Swing). I say service loosely here since the requirement is simply to transform the application to either a web-based or a handheld application. The application is fairly big (~1400 classes) so I can appreciate the reason to do so.
I'm looking for suggestions or direction as to how I should approach this task. A re-write is not an option. The application has a lot of code which requires user input (i.e. prompt for this, then prompt for that)
I'm not well versed in the innards of Swing although I have one idea which entails redirecting all ui calls to a handler of some sort (i.e. override all relevant methods in JPanel and rather than displaying to the screen, I'd create and XML representation of the panel and send it to a handler). The application would be running on the Swing Thread therefore only one application per client (which is ok)
Are there any tools/libraries out there that will do this or something similar?
Any suggestions to alternative solutions is greatly appreciated.
It sure sounds messy and I'm not looking forward to this.
Many thanks.
MarcThe basic approach is to separate UI from BL one
panel at a time.
When I say the BL and the UI is tightly coupled, I don't mean we have BL in our UI...we simply make several calls to the UI within our BL.
1) BL decides to display a prompt to allow user to enter Customer ID
2) Once panel returns, BL decides that Customer has more than one account
3) BL displays a prompt to allow user to chose a Customer account
4) Panel returns a Customer account ID
5) etc...
Create a data transfer object to hold the data that's
entered on the screen. The only role of the GUI
panels will be to display and enter data. Define the
interactions between it and the business logic.
I don't think this will solve my problem since we're not performing any BL (for the most part) in the UI Layer. I just want to swap the UI Layer...that's why I was considering overriding key methods in the Component.class and instead of displaying the ui, I'd use reflection and recreate an XML version of my panels and send that over to either a web interface or a handheld device for input. That way I wouldn't have to modify the BL at all.
If you're moving to a "service oriented
architecture," then you're largely constrained to
request-response operations. If your current GUI has
a lot of buried interaction (eg, selecting a value
from one list populates another), then you have to
give some real thought to how this applies to the
SOA.
I'd start poking around Martin Fowler's website ...
aside from being a/the major evangelist for
refactoring, he has worked with just these sorts of
separation issues.
http://martinfowler.com/
Thanks for all your suggestions.
Marc -
Using a Java application as EJB consumer
Hi everybody,
I'm new to EJB, and I have to develop a desktop application that will interact with some EJBs. I've done so using JSPs/Servlets as the EJBs consumers, but I can't get it to work with my Java app.
I thought it would be as easy as including some JNDI code in my app, lookup the beans and invoke their methods, but all I get is an exception.
I've read in some tutorials, that the client needs to be registered in the server, or deployed at the same time (or I completely misunderstood it), but I'm still in a development stage, so I don't want to jar everything and redeploy...
I'm using Orion, and I get the following exception:
javax.naming.NamingException: META-INF/application-client.xml resource not found (see J2EE spec, application-client chapter for requirements and format of the file)
I've included though that META-INF/application-client.xml in my app jar.
I've been thinking about using web services as a more standard way to communicate, which do you think will be better?
Anyway, what am I doing wrong, or what should I do to make it work?
What other app server do you recomend?
thanks in advance!
Luis Javier<--I've read in some tutorials, that the client needs to be registered in the server, or deployed at the same time (or I completely misunderstood it), but I'm still in a development stage, so I don't want to jar everything and redeploy...-->
No, client doesnt need to be registered in the server. If your client is a Java App you have to make sure that your app client classpath includes :
1) An Initial Context Factory class to create JNDI context, and it depends on server you deployed EJB components
2) An client support jar file, that contains Home,Remote interfaces and
their implementations of EJBs client will call. This support could be provided by your J2EE server deploy tool at deploying time. J2EE RI deploy tool, for axample, asks deployer if he wants to generate this jar file as he deploy an application containing some EJB module.
Fil -
Hardware identification using Java-application
Hi,
please help me! I would like to get some hardware-specific information using a Java-application? Is it possible?
Thanks everybody,
dzsitterProbably not, in pure Java. Depends on what the "hardware" is that you had in mind.
-
Use OC4J jms provider in a java application
Hi all,
I'd like to send messages in a OC4J queue (declared in jms.xml) using a java application, is it possible?
Thank in advice, Cesare
I read messages by a servlet using this code:
factory = (QueueConnectionFactory)new InitialContext().lookup("jms/myQueueConnectionFactory");
queue = (Queue) new InitialContext().lookup("jms/myQueue");
connection = factory.createQueueConnection();
connection.start();
QueueSession queueSession = connection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
QueueReceiver receiver = queueSession.createReceiver(queue);
Message message = receiver.receive();hi
if you wish to know how to send and recieve messages from a queue then there is a sample application available at the following link.
http://otn.oracle.com/sample_code/tech/java/oc4j/samplesPage.html
try the ch19 sample.
hope this helps
regards
shrinivas -
Unable load jasperreports using java application
I have created a report using jasperassistant.
But i could'nt run the report using my java
application.below given is the code sgment to call the
report.
try{
String rFile="/root/Production.jasper";
HashMap rptHash=null;
FileInputStream fs=new FileInputStream(rFile);
System.out.println("loading report file , read " +fs.available());
JasperReport template=(JasperReport)JRLoader.loadObject(fs);
System.out.println("Successfully created the report");
JasperPrint report=JasperFillManager.fillReport(template,rptHash,conn);
System.out.println("Report filled with data");
}catch(JRException jex)
System.out.println("Jasper Exception :"+jex.getMessage());
System.out.println("Jasper Exception :"+jex.fillnStackTrace());
System.out.println("Jasper Exception :"+jex.getStackTrace());
System.out.println("Jasper Exception :"+jex.getLocalizedMessage());
While running this application ,it throws into the
exception section.
Out put of the program is
Loading report file ,read 15275
Jasper Exception : Error loading object from InputStream
Jasper Exception :net.sf.jasperreports.engine.JRException :Error loading object from InputStream Jasper Exception :[Ljava.lang.StackTraceElement;@e7b241
Jasper Exception :Error loading object from InputStream
I request you to go through my code and give me some help to solve this asap.
thanking youDo you actually mean you want to make sure that only one instance of a GIVEN Java program is running at one time? If so then search this forum becuse this question comes up frequently.
-
Unable to run jasperreport using java application
I have created a report using jasperassistant.
But i could'nt run the report using my java
application.below given is the code sgment to call the
report.
try{
String rFile="/root/Production.jasper";
HashMap rptHash=null;
FileInputStream fs=new FileInputStream(rFile);
System.out.println("loading report file , read " +
fs.available());
JasperReport
template=(JasperReport)JRLoader.loadObject(fs);
System.out.println("Successfully created the report");
JasperPrint
report=JasperFillManager.fillReport(template,rptHash,conn);
System.out.println("Report filled with data");
}catch(JRException jex)
{System.out.println("Jasper Exception
:"+jex.getMessage());
System.out.println("Jasper Exception
:"+jex.fillnStackTrace());
System.out.println("Jasper Exception
:"+jex.getStackTrace());
System.out.println("Jasper Exception
:"+jex.getLocalizedMessage());
While running this application ,it throws into the
exception section.
Out put of the program is
Loading report file ,read 15275
Jasper Exception : Error loading object from
InputStream
Jasper Exception
:net.sf.jasperreports.engine.JRException :Error
loading object from InputStream
Jasper Exception
:[Ljava.lang.StackTraceElement;@e7b241
Jasper Exception :Error loading object from
InputStream
I request you to go through my code and give me some help to solve this asap.
thanking youHi Again Monty.
I may have given up too soon.
Click once on the downloaded TheGame.zip file to highlight it.
Press the Command⌘ + I keys, to Get Info.
Change Open With to Stuffit Expander.
Double-Click on TheGame.zip.
A folder titled TheGame will be created. Open that.
In there will be:
decks An Empty Folder
Game.jar
game.xml
images Folder This one has many sub entries.
preferences.properties
readme.txt
release_notes.txt
runme.bat
When I Get Info on Game.jar, Open With is set to Jar Launcher.
That's as far as I am going though. does that help any?
ali b -
Event Date: October 1, 2002 at 11:00 AM Pacific (US), 02:00 PM Eastern (US)
To register: http://regsvc.placeware.com/?wily-bea1001
Title: Achieving Availability, Performance and Control of Java Applications
in Financial Services
Abstract:
In today's competitive environment, financial institutions must focus on
three key business goals:
a.. Creating a customer-centric enterprise to maximize value to customers
and increase share of wallet
b.. Improving transactional efficiency for rapid delivery of the right
products, services and information to customers and to employees
c.. Accelerating the decision making process to mitigate risk and improve
returns.
BEA and Wily Technology have helped a number of financial services firms
meet these objectives by delivering high-performance business solutions that
meet rigorous demands for performance, reliability and scalability.
On October 1, 2002, Wily Technology and BEA will present a joint Web seminar
titled "Achieving Availability, Performance and Control of Java Applications
in Financial Services" with Eric Gudgion, Principal System Architect,
Technical Solutions Group at BEA and Chris Farrell, Director of Technical
Marketing at Wily. This Webinar will showcase the many advantages that the
WebLogic® Enterprise PlatformT and Wily's Introscope® offer financial
services firms.
Attendees will learn how WebLogic Server, BEA's unified, simplified and
extensible solution, provides a robust platform for the development and
deployment of enterprise Java applications. Some examples of what financial
institutions can achieve with BEA include Multi-channel Services Delivery,
Straight-Through Processing, Wealth Management and Cash Management.
Wily Technology will highlight Introscope's ability to manage financial
services Java applications by pinpointing component-level performance issues
in real-time, whether in the application, application server or
Java-connected back-end systems. Wily's suite of Java application management
solutions offers a comprehensive platform for achieving 24x7 application
availability, enhanced performance and better control of IT resources.First of all you should check out which products are supported on 64bit :- http://www.oracle.com/technology/products/bi/hyperion-supported-platforms.html
If you are planning on using windows 64bit EAS then you will have to manually deploy the web application, it cannot be automatically deployed.
Cheers
John
http://john-goodwin.blogspot.com/
Maybe you are looking for
-
BAPI for ME21N with Material Configuration
Hi friends, I need to create a Z Program which will create the purchase order and during creation of purchase order it will also make the configuration of material in Material Data. I know the BAPI name BAPI_PO_CREATE1, but it will not do the configu
-
How to find the invalid form session in oracle Apps
Oracle Apps R12 Hai All How to find the invalid form session in oracle Apps R12 and How to Kill the that. Thanks & Regards Srikkanth.M
-
InDesign CC Switch Language (ENG/FRA)
Sorry for this question: i use InDesign CC in ENG language but i need use it 1 days of the week in FRA. What is the best way to have this configuration?
-
Adding fields to a form based on stored procedure
I have a store procedure and a form based on it. I'd added a new parameter to the store procedure. How can I do to add a field in the form which takes the new parameter. I'd tried adding a new field with the same name of the parameter but it didn't w
-
Hello ESS/MSS Experts, I am trying to configure MSS in Portal. The backend configuration for Compensation Management has been performed under the node Personnel Management -> Enterprise Compensation Management by the functional consultant. Even aft