Asking urgent help for UI problems
Hope to get any reply and help from you!
Now, as for the UIs we want to get, we require that when users press one button on UI1 with "Enter" in keyboard(not using mouse), another UI2 would appear in front. Moreover, when users press "ESC" in keyboard, it can also return back from UI2 to UI1.
However, we have some following problems as below:
1. Now we use the following way for ui programming. However, we always find that the UI would be dead without any response for any key press. What's wrong with the following porgramming style and way:
//UI1 class
dispse();
UI2 ui2 = new UI2();
ui2.setVisible(true);
//UI2 class
dispse();
UI1 ui1 = new UI1();
ui1.setVisible(true); Many thanks for you! I hope it would not cost you much time!
best wishes for you!
Sorry if the code is rather long. However most of them are for the design of GUI only.
Thanks in advance.
import javax.swing.SwingUtilities;
import java.awt.Color;
import java.awt.Font;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.KeyStroke;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.JLabel;
public class sample extends JFrame
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JButton[] EntButton = new JButton[3];
private JLabel jLabel = null;
int current = 0;
Font originalfont = new Font("serif", Font.BOLD, 20);
Font changedfont = new Font("serif", Font.BOLD, 30);
Color blue = new Color (0,0,255);
Color violet = new Color (182,122,132);
Color red = new Color (255,0,0);
Color black = new Color (0,0,0);
private JButton getJButton() {
EntButton[0] = new JButton();
EntButton[0].setText("Movies");
EntButton[0].setBounds(new Rectangle(256, 190, 180, 40));
EntButton[0].setBackground(blue);
EntButton[0].setFont(originalfont);
EntButton[0].setForeground(red);
return EntButton[0];
private JButton getJButton1() {
EntButton[1] = new JButton();
EntButton[1].setBackground(violet);
EntButton[1].setBounds(new Rectangle(280, 250, 135, 31));
EntButton[1].setFont(originalfont);
EntButton[1].setText("TV Series");
return EntButton[1];
private JButton getJButton2() {
EntButton[2] = new JButton();
EntButton[2].setBackground(violet);
EntButton[2].setBounds(new Rectangle(280, 310, 135, 31));
EntButton[2].setFont(originalfont);
EntButton[2].setText("News");
return EntButton[2];
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
sample thisClass = new sample();
thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
thisClass.setVisible(true);
public sample() {
super();
initialize();
private void initialize() {
this.setSize(1024,768);
this.setContentPane(getJContentPane());
//this.setUndecorated(true);
EntButton[0].requestFocus(true);
EntButton[0].setFocusPainted(false);
private JPanel getJContentPane() {
if (jContentPane == null) {
jLabel = new JLabel();
jLabel.setBounds(new Rectangle(345, 130, 135, 31));
jLabel.setText("Video");
jContentPane = new JPanel();
jContentPane.setLayout(null);
jContentPane.add(getJButton(), null);
jContentPane.add(getJButton1(), null);
jContentPane.add(getJButton2(), null);
jContentPane.add(jLabel, null);
jContentPane.getInputMap(jContentPane.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN,0), "MoveDown"); //KeyStroke.getKeyStroke("DOWN")
Action ActionDown = new AbstractAction() {
public void actionPerformed(ActionEvent e)
current = current < 2 ? current = current + 1 : (current + 1 > 2 ? 0:1);
EntButton[current].setBackground(blue);
EntButton[current].setFont(changedfont);
EntButton[current].setForeground(red);
if (current==1){
EntButton[1].setBounds(new Rectangle(256, 250, 180, 40));
EntButton[0].setBackground(violet);
EntButton[0].setFont(originalfont);
EntButton[0].setForeground(black);
EntButton[0].setBounds(new Rectangle(280, 190, 135, 31));
if (current==2){
EntButton[2].setBounds(new Rectangle(256, 310, 180, 40));
EntButton[1].setBackground(violet);
EntButton[1].setFont(originalfont);
EntButton[1].setForeground(black);
EntButton[1].setBounds(new Rectangle(280, 250, 135, 31));
if (current==0){
EntButton[0].setBounds(new Rectangle(256, 190, 180, 40));
EntButton[2].setBackground(violet);
EntButton[2].setFont(originalfont);
EntButton[2].setForeground(black);
EntButton[2].setBounds(new Rectangle(280, 310, 135, 31));
jContentPane.getActionMap().put("MoveDown", ActionDown);
jContentPane.getInputMap(jContentPane.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_UP,0), "MoveUp");
Action ActionUp = new AbstractAction() {
public void actionPerformed(ActionEvent e)
current = current < 3 ? current = current - 1 : (current - 1 > 0 ? 1:0);
if (current == -1)
current = 2;
EntButton[current].setBackground(blue);
EntButton[current].setFont(changedfont);
EntButton[current].setForeground(red);
if (current==0){
EntButton[0].setBounds(new Rectangle(256, 190, 180, 40));
EntButton[1].setBackground(violet);
EntButton[1].setFont(originalfont);
EntButton[1].setForeground(black);
EntButton[1].setBounds(new Rectangle(280, 250, 135, 31));
if (current==1){
EntButton[1].setBounds(new Rectangle(256, 250, 180, 40));
EntButton[2].setBackground(violet);
EntButton[2].setFont(originalfont);
EntButton[2].setForeground(black);
EntButton[2].setBounds(new Rectangle(280, 310, 135, 31));
if (current==2){
EntButton[2].setBounds(new Rectangle(256, 310, 180, 40));
EntButton[0].setBackground(violet);
EntButton[0].setFont(originalfont);
EntButton[0].setForeground(black);
EntButton[0].setBounds(new Rectangle(280, 190, 135, 31));
jContentPane.getActionMap().put("MoveUp", ActionUp);
jContentPane.getInputMap(jContentPane.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke("ESCAPE"), "MoveESC");
Action ActionESC = new AbstractAction() {
public void actionPerformed(ActionEvent e)
System.exit(0);
jContentPane.getActionMap().put("MoveESC", ActionESC);
jContentPane.getInputMap(jContentPane.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,0), "MoveEnter");
Action ActionEnter = new AbstractAction() {
public void actionPerformed(ActionEvent e)
if(current==0)
dispose();
//JDialog MoviesMenu = new MoviesMenu();
MoviesMenu MoviesMenu = new MoviesMenu();
MoviesMenu.show();
//MoviesMenu.setVisible(true);
jContentPane.getActionMap().put("MoveEnter", ActionEnter);
return jContentPane;
//second UI start
public class MoviesMenu extends JDialog {
private static final long serialVersionUID = 1L;
private JPanel jMovieContentPane;
private JButton[] MoviesButton = new JButton[3];
private JLabel jLabel,jLabel1;
private int current1 = 0;
private JButton getJButton() {
MoviesButton[0] = new JButton();
MoviesButton[0].setBounds(new Rectangle(110, 230, 450, 40));
MoviesButton[0].setText("Vid 1");
MoviesButton[0].setBackground(blue);
MoviesButton[0].setFont(changedfont);
MoviesButton[0].setForeground(red);
return MoviesButton[0];
private JButton getJButton1() {
MoviesButton[1] = new JButton();
MoviesButton[1].setBounds(new Rectangle(135, 320, 400, 46));
MoviesButton[1].setText("Vid 2");
MoviesButton[1].setBackground(violet);
MoviesButton[1].setFont(originalfont);
return MoviesButton[1];
private JButton getJButton2() {
MoviesButton[2] = new JButton();
MoviesButton[2].setBounds(new Rectangle(135, 410, 400, 46));
MoviesButton[2].setText("Vid 3");
MoviesButton[2].setBackground(violet);
MoviesButton[2].setFont(originalfont);
return MoviesButton[2];
public MoviesMenu() {
super();
initialize();
private void initialize() {
this.setSize(1024,768);
this.setContentPane(getjMovieContentPane());
this.setTitle("JFrame");
this.setUndecorated(true);
MoviesButton[0].requestFocus(true);
MoviesButton[0].setFocusPainted(false);
private JPanel getjMovieContentPane() {
if (jMovieContentPane == null) {
jLabel1 = new JLabel();
jLabel1.setBounds(new Rectangle(650, 270, 361, 226));
jLabel1.setText("Text Introduction");
jLabel = new JLabel();
jLabel.setBounds(new Rectangle(650, 105, 226, 136));
jLabel.setText("VIDEO IMAGE");
jMovieContentPane = new JPanel();
jMovieContentPane.setLayout(null);
jMovieContentPane.add(getJButton(), null);
jMovieContentPane.add(getJButton1(), null);
jMovieContentPane.add(getJButton2(), null);
jMovieContentPane.add(jLabel, null);
jMovieContentPane.add(jLabel1, null);
jMovieContentPane.getInputMap(jMovieContentPane.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN,0), "MoveDown"); //KeyStroke.getKeyStroke("DOWN")
Action ActionDown = new AbstractAction() {
public void actionPerformed(ActionEvent e)
current1++;
if (current1==0){
MoviesButton[0].setBounds(new Rectangle(110, 230, 450, 40));
MoviesButton[2].setBackground(violet);
MoviesButton[2].setFont(originalfont);
MoviesButton[2].setForeground(black);
MoviesButton[2].setBounds(new Rectangle(135, 410, 400, 46));
MoviesButton[2].repaint();
if (current1==1){
MoviesButton[1].setBounds(new Rectangle(110, 320, 450, 46));
MoviesButton[0].setBackground(violet);
MoviesButton[0].setFont(originalfont);
MoviesButton[0].setForeground(black);
MoviesButton[0].setBounds(new Rectangle(135, 230, 400, 40));
MoviesButton[0].repaint();
if (current1==2){
MoviesButton[2].setBounds(new Rectangle(110, 410, 450, 46));
MoviesButton[1].setBackground(violet);
MoviesButton[1].setFont(originalfont);
MoviesButton[1].setForeground(black);
MoviesButton[1].setBounds(new Rectangle(135, 320, 400, 46));
MoviesButton[1].repaint();
if(current1>2){
current1=0;
MoviesButton[0].setBounds(new Rectangle(110, 230, 450, 40));
MoviesButton[2].setBackground(violet);
MoviesButton[2].setFont(originalfont);
MoviesButton[2].setForeground(black);
MoviesButton[2].setBounds(new Rectangle(135, 410, 400, 46));
MoviesButton[2].repaint();
MoviesButton[current1].setBackground(blue);
MoviesButton[current1].setFont(changedfont);
MoviesButton[current1].setForeground(red);
MoviesButton[current1].repaint();
jMovieContentPane.getActionMap().put("MoveDown", ActionDown);
jMovieContentPane.getInputMap(jMovieContentPane.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke(KeyEvent.VK_UP,0), "MoveUp");
Action ActionUp = new AbstractAction() {
public void actionPerformed(ActionEvent e)
current1--;
if (current1==2){
MoviesButton[2].setBounds(new Rectangle(110, 410, 450, 46));
MoviesButton[0].setBackground(violet);
MoviesButton[0].setFont(originalfont);
MoviesButton[0].setForeground(black);
MoviesButton[0].setBounds(new Rectangle(135, 230, 400, 40));
MoviesButton[0].repaint();
if (current1==0){
MoviesButton[0].setBounds(new Rectangle(110, 230, 450, 40));
MoviesButton[1].setBackground(violet);
MoviesButton[1].setFont(originalfont);
MoviesButton[1].setForeground(black);
MoviesButton[1].setBounds(new Rectangle(135, 320, 400, 46));
MoviesButton[1].repaint();
if (current1==1){
MoviesButton[1].setBounds(new Rectangle(110, 320, 450, 46));
MoviesButton[2].setBackground(violet);
MoviesButton[2].setFont(originalfont);
MoviesButton[2].setForeground(black);
MoviesButton[2].setBounds(new Rectangle(135, 410, 400, 46));
MoviesButton[2].repaint();
if(current1==-1){
current1=2;
MoviesButton[2].setBounds(new Rectangle(110, 410, 450, 46));
MoviesButton[0].setBackground(violet);
MoviesButton[0].setFont(originalfont);
MoviesButton[0].setForeground(black);
MoviesButton[0].setBounds(new Rectangle(135, 230, 400, 40));
MoviesButton[0].repaint();
MoviesButton[current1].setBackground(blue);
MoviesButton[current1].setFont(changedfont);
MoviesButton[current1].setForeground(red);
MoviesButton[current1].repaint();
jMovieContentPane.getActionMap().put("MoveUp", ActionUp);
jMovieContentPane.getInputMap(jMovieContentPane.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke("ESCAPE"), "MoveESC");
Action ActionESC = new AbstractAction() {
public void actionPerformed(ActionEvent e)
dispose();
JFrame sample = new sample();
//sample.validate();
sample.show();
jMovieContentPane.getActionMap().put("MoveESC", ActionESC);
return jMovieContentPane;
}
Similar Messages
-
My itunes radio rebuffers every 8 seconds - is there any fix or help for this problem. I am running the latest itunes on a new Mac with 4MB download speed.
You need to update your Mac OS to at least 10.5.8.
Itunes 10+ requires Mac OS 10.5.8+ -
Hi Guys,
I need urgent help regards to our school File server which is having "No more connection to this remote computer error"
on SMB Shares where I usually authenticate with a domain username it used to work fine since till 3 weeks ago.
Now I can browse the SMB shares with only IP... Netbios gets straight away this error message from non-domain joined pc's where the computer needs to connect to the SCCM distribution point on this file server.
Strangely, Domain joined pc's does not have this problem at all they can use Netbios or IP no problem at all. But someone from a standalone laptop or desktop who needs to access shares through netbios gets this message.
Can someone help me please?
I did check DNS yet there is no problem on DNS I checked PTR record for the server to make sure it is not turned in to multihome accidently but nothing at all.
I also did a NETMON where I captured the data from server and the client I get these errors:
205 4:54:35 PM 16/12/2013
7.3299179 10.2.1.96
10.2.0.13 TCP
TCP:Flags=......S., SrcPort=49312, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=1771710719, Ack=0, Win=8192 ( Negotiating scale factor 0x2 ) = 8192
{TCP:22, IPv4:21}
206 4:54:35 PM 16/12/2013
7.3299668 10.2.0.13
10.2.1.96 TCP
TCP:Flags=...A..S., SrcPort=Microsoft-DS(445), DstPort=49312, PayloadLen=0, Seq=2167618331, Ack=1771710720, Win=8192 ( Negotiated scale factor 0x8 ) = 2097152
{TCP:22, IPv4:21}
207 4:54:35 PM 16/12/2013
7.3301468 10.2.1.96
10.2.0.13 TCP
TCP:Flags=...A...., SrcPort=49312, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=1771710720, Ack=2167618332, Win=16425 (scale factor 0x2) = 65700
{TCP:22, IPv4:21}
208 4:54:35 PM 16/12/2013
7.3301468 10.2.1.96
10.2.0.13 SMB
SMB:C; Negotiate, Dialect = PC NETWORK PROGRAM 1.0, LANMAN1.0, Windows for Workgroups 3.1a, LM1.2X002, LANMAN2.1, NT LM 0.12, SMB 2.002, SMB 2.???
{SMBOverTCP:23, TCP:22, IPv4:21}
209 4:54:35 PM 16/12/2013
7.3307974 10.2.0.13
10.2.1.96 SMB2
SMB2:R NEGOTIATE (0x0), GUID={8447F237-5219-D48A-40C0-29092450C68E}
{SMBOverTCP:23, TCP:22, IPv4:21}
210 4:54:35 PM 16/12/2013
7.3314064 10.2.1.96
10.2.0.13 SMB2
SMB2:C SESSION SETUP (0x1) {SMBOverTCP:23, TCP:22, IPv4:21}
211 4:54:35 PM 16/12/2013
7.3318815 10.2.0.13
10.2.1.96 SMB2
SMB2:R - NT Status: System - Error, Code = (22) STATUS_MORE_PROCESSING_REQUIRED SESSION SETUP (0x1), SessionFlags=0x0
{SMBOverTCP:23, TCP:22, IPv4:21}
212 4:54:35 PM 16/12/2013
7.3324012 10.2.1.96
10.2.0.13 SMB2
SMB2:C SESSION SETUP (0x1) {SMBOverTCP:23, TCP:22, IPv4:21}
215 4:54:35 PM 16/12/2013
7.3339977 10.2.0.13
10.2.1.96 SMB2
SMB2:R - NT Status: System - Error, Code = (109) STATUS_LOGON_FAILURE SESSION SETUP (0x1)
{SMBOverTCP:23, TCP:22, IPv4:21}
216 4:54:35 PM 16/12/2013
7.3341805 10.2.1.96
10.2.0.13 TCP
TCP:Flags=...A.R.., SrcPort=49312, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=1771711788, Ack=2167619070, Win=0 (scale factor 0x2) = 0
{TCP:22, IPv4:21}
217 4:54:35 PM 16/12/2013
7.3357089 10.2.1.96
10.2.0.13 TCP
TCP:Flags=......S., SrcPort=49313, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=2943201172, Ack=0, Win=8192 ( Negotiating scale factor 0x2 ) = 8192
{TCP:27, IPv4:21}
218 4:54:35 PM 16/12/2013
7.3357422 10.2.0.13
10.2.1.96 TCP
TCP:Flags=...A..S., SrcPort=Microsoft-DS(445), DstPort=49313, PayloadLen=0, Seq=3718656547, Ack=2943201173, Win=8192 ( Negotiated scale factor 0x8 ) = 2097152
{TCP:27, IPv4:21}
219 4:54:35 PM 16/12/2013
7.3359768 10.2.1.96
10.2.0.13 TCP
TCP:Flags=...A...., SrcPort=49313, DstPort=Microsoft-DS(445), PayloadLen=0, Seq=2943201173, Ack=3718656548, Win=16425 (scale factor 0x2) = 65700
{TCP:27, IPv4:21}
220 4:54:35 PM 16/12/2013
7.3359768 10.2.1.96
10.2.0.13 SMB2
SMB2:C NEGOTIATE (0x0), GUID={8213462D-2600-D1B1-11E3-65FC4BCDE707}
{SMBOverTCP:28, TCP:27, IPv4:21}
221 4:54:35 PM 16/12/2013
7.3364173 10.2.0.13
10.2.1.96 SMB2
SMB2:R NEGOTIATE (0x0), GUID={8447F237-5219-D48A-40C0-29092450C68E}
{SMBOverTCP:28, TCP:27, IPv4:21}
222 4:54:35 PM 16/12/2013
7.3369702 10.2.1.96
10.2.0.13 SMB2
SMB2:C SESSION SETUP (0x1) {SMBOverTCP:28, TCP:27, IPv4:21}
223 4:54:35 PM 16/12/2013
7.3373474 10.2.0.13
10.2.1.96 SMB2
SMB2:R - NT Status: System - Error, Code = (22) STATUS_MORE_PROCESSING_REQUIRED SESSION SETUP (0x1), SessionFlags=0x0
{SMBOverTCP:28, TCP:27, IPv4:21}
224 4:54:35 PM 16/12/2013
7.3377060 10.2.1.96
10.2.0.13 SMB2
SMB2:C SESSION SETUP (0x1) {SMBOverTCP:28, TCP:27, IPv4:21}
227 4:54:35 PM 16/12/2013
7.3390552 10.2.0.13
10.2.1.96 SMB2
SMB2:R - NT Status: System - Error, Code = (109) STATUS_LOGON_FAILURE SESSION SETUP (0x1)
{SMBOverTCP:28, TCP:27, IPv4:21}
Regards,
GokhanSolution has been found,
After doing bit of a backtrack, site DC's were out of sync with PDC with time.
Also Time service was shutdown on PDC which has been enabled and pointed to the Australian pool ntp IP address.
Everything is back on track now.
Regards,
Gokhan Cil -
Urgent Help Reqd: Delta Problem....!!!
Hi Experts,
Urgent help reqd regarding follwoing scenario:
I am getting delta to ODS 1 (infosource : 2LIS_12_VCHDR) from R/3. Now this ODS1 gives delta to Cube1. I got one error record which fails when going to cube (due to master data check).And this record would be edited later.
So I thought of re loading cube and using error handling to split request in PSA and load valid records in cube.Later when I have coorect info abt error, I would load erroneous record manually using PSA.
I did following steps:
1)Failed request is not in cube...(setting is PSA and then into target)....also it has been deleted from PSA.
2)Remove data status from source ODS1.
3)Change error handling in infopackage to valid " Valid records update, reporting possible".
4)start loading of cube.
But when I did this I got following message :
<b> "Last delta update is not yet completed.Therefore, no new delta update is possible.You can start the request again if the last delta request is red or green in the monitor"</b>
But both my requests in cube and ODS are Green...no request is in yellow...!!
Now the problem is :
1) I have lost ODS data mart status
2)how to load valid records to cube, since errorneous record can be edited only after 3- 4 days.
3)How not to affect delta load of tomorrow.
Please guide and help me in this.
Thanks in advance and rest assured I will award points to say thanks to SDNers..
Regards,
Sorabh
Message was edited by: sorabh aroraHi Joseph,
Thanks for replying....
I apolgize and I have modified the message above..
I just checked in cube...there is no failed request for today...and neither in PSA....Person who has handed this to me may have deleted this is PSA..and why req is not in failed state in cube...I am not sure..though setting is "PSA and then into data package".....
So how to go frm here....
Thanks
Sorabh -
Need urgently help for OBIEE Installation (11g)
Hi all,
I am having problems trying to install Oracle Business Intelligence 11g on Windows 7.
The Installation Wizard hangs on the step: Domain Configuration (0%). The Creating Domain shows In progress.
The log under the Inventory directory shows me only following:
INFO: Ending the inventory Session
INFO: Using an existing InstallAreaControl for this Inventory Session with existing access level 1
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
INFO: The ORACLE_CONFIG_HOME env var is set to
I really don't know what to do. I am searching for a solution on Internet, but I don't find it.
I need urgently help. I would appreciate someone could help me.
We can do together via Webex or something similar. It doesnt worth it for me to type here and wait till someone give me an answer (if any), trying to find out how I did.
I hope to find the help I need. I am desperated :-(Can I install the OBIEE 10g version?I am not sure but i think OBIEE is not certified with windows 7. i could not find any MOS doc confirming same. Please log a call with oracle to confirm this.
would it work fine with the Oracle Database 11g and the RCUs?. Yes OBIEE 10g will work with oracle database 11g.
Thanks,
JD -
I need urgent help in that problem
Hi All,
first I have project in forms 6i and I migrate it to 10g successfully after that I make deploying for forms locally on my machine (without installing oracle application server ) and it works good (forms , reports , icons) everything is good after that I want to move to the production stage then I installed oracle application server 10.2 on the machine (the same machine which I have the oracle database on it ) and after installation successfully I make the changes for deploying forms in forsweb.cfg and default.env files as I made it locally on my machine and write the url like that
http://computer name/forms/frmservlet?config= sepwin&form=login_ncs.fmx
The login screen appears but I cannot make any action on it like login, exit or close. on the contrary it was working very good locally and all the projects forms also.
I searched for that problem allots but I didn't get any answer.
Note:
The OS for oracle Database and application server machine is XP
So can anyone help?
Regards,
NasserHi:
I recompile the forms again with forms compiler tool in application server and the forms now works fine,
But the problem is I can't open the reports from the forms.
Note:
The reports open successfully from forms locale,and that is my code
------------------------------------ PROCEDURE -----------------------------------------
PROCEDURE VIEW_PRINT_REPORT (v_p_dest varchar2) IS
RO_Report_ID REPORT_OBJECT;
Str_Report_Server_Job VARCHAR2(200);
Str_Job_ID VARCHAR2(200);
Str_URL VARCHAR2(200);
PL_ID PARAMLIST ;
rep_status VARCHAR2(50);
BEGIN
PL_ID := GET_PARAMETER_LIST('report_parameter');
IF NOT ID_NULL(PL_ID) THEN
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('report_parameter');
RO_Report_ID := FIND_REPORT_OBJECT('PROJECTS_REP');
IF v_p_dest = 'P' THEN
add_parameter(PL_ID,'DESTYPE',TEXT_PARAMETER,'PRINTER');
END IF ;
add_parameter(PL_ID,'PARAMFORM',text_parameter,'NO');
add_parameter(PL_ID,'ORIENTATION',TEXT_PARAMETER,'PORTRAIT');
add_parameter(PL_ID,'MAXIMIZE',TEXT_PARAMETER,'YES');
add_parameter(PL_ID,'H_USER',text_parameter,:PARAMETER.user_id);
if :ctrl.customer_id is not null then
add_parameter(PL_ID,'p_customer_id',text_parameter,:ctrl.customer_id);
end if;
if :ctrl.mgr_id is not null then
add_parameter(PL_ID,'p_mgr_id',text_parameter,:ctrl.mgr_id);
end if;
if :ctrl.pr_status is not null then
add_parameter(PL_ID,'p_pr_status',text_parameter,:ctrl.pr_status);
end if;
add_parameter(PL_ID,'ORACLE_SHUTDOWN',text_parameter,'YES');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, CACHE);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'PDF');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_autoserve_mt');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID,REPORT_OTHER, 'jobname='||'projects.RDF');
Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
rep_status := REPORT_OBJECT_STATUS(Str_Report_Server_Job);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(Str_Report_Server_Job);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('/reports/rwservlet/'||'getjobid'||
substr(Str_Report_Server_Job ,instr(Str_Report_Server_Job ,'_',-1)+1)||'?'||'server=rep_autoserve_mt','_blank');
ELSE
message('Error when running report');
END IF;
END;
------------------- and when WHEN-BUTTON-PRESSED trigger
view_print_report('V');
and i great report object in object navigator
So any help or idea about what I do or change to open reports from forms on application server.
Regards,
Nasser.
Edited by: eng nasser on Apr 29, 2010 8:00 AM -
Urgent help telnet remote problem
Hello,
i have a problem with remote telnet connection to cisco 800 series router
I can connect via telnet/ssh from my local network when connecting to public ip
but nobody can connect from outside
here is my config
interface FastEthernet4
ip address 85.xx.xx.xx 255.255.255.252
ip nat outside
ip virtual-reassembly
duplex auto
speed auto
interface Vlan1
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 85.xx.xx.xx
no ip http server
no ip http secure-server
ip nat inside source list 10 interface FastEthernet4 overload
access-list 10 permit any
line con 0
password cisco
login
no modem enable
line aux 0
line vty 0 4
password cisco
login
transport input all
transport output all
HELPI have seen problems before with very similar symptoms that telnet did work from inside but did not work from outside. In most of these cases it turned out to be a problem in the way that address translation was configured. I suggest that you change the access list used to select traffic for address translation.
no access-list 10
access-list 10 permit 192.168.1.0 0.0.0.255
Give this a try and let us know if it helps.
HTH
Rick -
Very urgent help - for update field1 nowait across databaselink
Hi,
We have a form that uses select for update field1 nowait for a table that is accessed across a database link. When we try to do this the form errors out giving frm-92101 error. If I comment out the for update statement then it works fine. I know it the for update that is causing the problem but I'm not sure how to fix it. Can someone help me please. Very urgent, we are in the middle of upgrade and we found this issue while testing the forms.
Any ideas or suggestions ?
I'm using 10g App.Server and 10g database.
Please help.
Thanks in advance.under which trigger you ran that update ?
-
E-mail Setting Up - Require Urgent Help for BlackBerry 9380 Options
Hi guys.
I've bought a BlackBerry 9380 and everything seems to be working except for setting up my emails.
Everything I read says: Go to 'Settings' then 'Email Setup', but I do not have email set up in my settings, I only have an option that says 'Email Accounts', which for the BB9380 I'm sure you have to do.
However, everytime I click it, it says 'Connecting to email settings...' and after a couple of minutes it will say: 'Your device had a problem connecting to the server.' And everytime I click retry, the same thing occurs. All my wireless settings are on, my signal's good etc, but I can't find how to sort this anywhere.
All I want to do is add m hotmail email address to my BlackBerry so the emails come straight through to my phone.
Please help!!!
Thanks you.Hi there,
Can you confirm that you are on a BlackBerry data plan? In order to use email on your BlackBerry, you need access to the BlackBerry data network. If you are sure that you have a BlackBerry data plan (e.g. if you're able to use services like BBM), then try doing the following:
1. Go to Options > Device > Advanced System Settings > Host Routing Table and then press the BB Menu button and select Register now. You should get a message in your Inbox stating that your device is now registered on the BlackBerry network.
2. Try to go to Setup > Email Accounts again. Are you now able to access the email setup?
If you don't get the message stating that your device is registered on the BlackBerry network, you need to contact your carrier and ask them to ensure that they have set up your BlackBerry data plan correctly. I've had that happen before and once they changed my data package over, everything started working correctly.
I hope this info helps!
If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
If your issue is resolved, don't forget to click the Solution button on the resolution! -
I tried to read my electric bill and got a message to view in an application or download. I assigned Preview.app to view it and it wouldn't work. Safari opens the bill in Preview.app by default.
Hello,
'''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
''(If you're using an added theme, switch to the Default theme.)''
If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
[[Image:FirefoxSafeMode|width=520]]<br><br>
If Firefox is not running, you can start Firefox in Safe Mode as follows:
* On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
* On Mac: Hold the '''option''' key while starting Firefox.
* On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
''Once you get the pop-up, just select "'Start in Safe Mode"''
[[Image:Safe Mode Fx 15 - Win]]
'''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
When you figure out what's causing your issues, please let us know. It might help others with the same problem.
Thank you. -
Urgent help for extremely new newbie - please.
I have been asked to set up a Labview program to graph and log
thermocouple temperature measurements from two Keithley 2001 Multimeters
and a DC voltage from HP 34420A nano Volt/Micro Ohm Meter. All three are
instruments are IEEE interfaced to a Windows 98 machine running Labview
(version 5.0 I think.) I have a couple of weeks to get the job done.
The problem is that I have never used Labview. I am an experienced C,
Fortran, BASIC programmer but this graphical system is completely new.
My situation is complicated because I am told the experienced person who
was originally going to set this up left under bad circumstances and
took many of the manuals. I would greatly appreciate any and all help I
can get.
Please feel free to send responses directly to me.
[email protected]
Thanks,
Stan ThomasIn article
<[email protected]>,
Stan Thomas
wrote:
> I have been asked to set up a Labview program
to graph and log
> thermocouple temperature measurements from two
Keithley 2001 Multimeters
> and a DC voltage from HP 34420A nano Volt/Micro
Ohm Meter. All three are
> instruments are IEEE interfaced to a Windows 98
machine running Labview
> (version 5.0 I think.) I have a couple of
weeks to get the job done.
> The problem is that I have never used Labview.
I am an experienced C,
> Fortran, BASIC programmer but this graphical
system is completely new.
> My situation is complicated because I am told
the experienced person who
> was originally going to set this up left under
bad circumstances and
> took man
y of the manuals. I would greatly
appreciate any and all help I
> can get.
>
> Please feel free to send responses directly to
me.
>
> [email protected]
>
> Thanks,
>
> Stan Thomas
>
>
All manuals are available at
http://www.natinst.com/manuals/
They also have an example program database at
http://www.natinst.com/support/epd/
Sten Karlson
D/A Production AB
SWEDEN
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. -
I am employed for Coca Cola at Mexico, in the company we develop a program in Java for the Nokia 6670, which registers the sale of our product to the clients. This program comes out into the server for Bluetooth. Now well we cannot unload cellular several simultaneously for that all the Bluetooth of these equipments have Mac Address the same (00:02:5b:00:a5:a5), nowadays we have 200 of these equipments. Is it possible they to change this Mac Address? I am grateful for the help that they could give us.
Guillermo Rojas
Tampico, MéxicoI purchased a Nokia 6070 with a data cable DKU-5, downloaded the latest PC suite and installed into my Windows XP Pc. When asked I connected the phone to the cable and PC. The PC sees the phone but when i try to connect to the internet it say "No MODEM FOUND". When i checked the website it says the modem drivers would be installed automatically but apparently not. How would i be able to connect to the internet?Message Edited by jeshu on 06-Oct-200705:31 PM
-
Urgent help for processing XML stream read from a JAR file
Hi, everyone,
Urgently need your help!
I am reading an XML config file from a jar file. It can print out the result well when I use the following code:
===============================================
InputStream is = getClass().getResourceAsStream("conf/config.xml");
BufferedReader br = new BufferedReader(new InputStreamReader(is));
String line;
while ((line = br.readLine()) != null) {
System.out.println(line); // It works fine here, which means that the inputstream is correct
// process the XML stream I read from above
NodeIterator ni = processXPath("//grid/gridinfo", is);
Below is the processXPath() function I have written:
public static NodeIterator processXPath(String xpath, InputStream byteStream) throws Exception {
// Set up a DOM tree to query.
InputSource in = new InputSource(byteStream);
DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
dfactory.setNamespaceAware(true);
Document doc = dfactory.newDocumentBuilder().parse(in);
// Use the simple XPath API to select a nodeIterator.
System.out.println("Querying DOM using " + xpath);
NodeIterator ni = XPathAPI.selectNodeIterator(doc, xpath);
return ni;
It gives me so much errors:
org.xml.sax.SAXParseException: The root element is required in a well-formed doc
ument.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XM
LDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.endO
fInput(XMLDocumentScanner.java:790)
at org.apache.xerces.framework.XMLDocumentScanner.endOfInput(XMLDocument
Scanner.java:418)
at org.apache.xerces.validators.common.XMLValidator.sendEndOfInputNotifi
cations(XMLValidator.java:712)
at org.apache.xerces.readers.DefaultEntityHandler.changeReaders(DefaultE
ntityHandler.java:1031)
at org.apache.xerces.readers.XMLEntityReader.changeReaders(XMLEntityRead
er.java:168)
at org.apache.xerces.readers.UTF8Reader.changeReaders(UTF8Reader.java:18
2)
at org.apache.xerces.readers.UTF8Reader.lookingAtChar(UTF8Reader.java:19
7)
at org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.disp
atch(XMLDocumentScanner.java:686)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
java:195)
at processXPath(Unknown Source)
Thank you very much!
Sincerely Yours
Davidorg.xml.sax.SAXParseException: The root element is required in a well-formed document.This often means that the parser can't find the document. You think it should be able to find the document because your test code could. However if your test code was not in the same package as your real (failing) code, your test is no good because getResourceAsStream("conf/config.xml") is looking for that file name relative to the package of the class that contains that line of code.
If your test code wasn't in any package, put a slash before the filename and see if that works. -
Need help for connection problem
When I try to run JdbcCheckup.java, I get following problem:
password: tiger
database(a TNSNAME entry): myhost:1521:orcl
Connecting to the database...Connecting...
Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap
ter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:156)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:212)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:251)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:224)
at java.sql.DriverManager.getConnection(Compiled Code)
at java.sql.DriverManager.getConnection(DriverManager.java:137)
at JdbcCheckup.main(Compiled Code)
I'm very appreciated for everybody's help
nullThis example can be run without specifying a TNSNAME connection string, as the oci8 jdbc driver will default to the localhost. OR - Specifying the only the TNSNAME is required, i.e. edit %ORACLE_HOME%\network\ADMIN\TNSNAMES.ORA file and locate the XXXXX.WORLD entry in the file. This is the TNSNAME entry referred to.
Try re-running this as follows (with no TNSNAME entry at all):
%ORACLE_HOME%\jdbc\demo\samples\oci8\basic-samples> java JdbcCheckup
Please enter information to test connection to the database
user: system
password: manager
database (a TNSNAME entry):
Connecting to the database...Connecting...
connected.
Hello World
Your JDBC installation is correct.
null -
I use cisco 2911 with 4 FXO port and 1 FXS port for my office. My IP phone is CP 3905
I configure for call internal/ external ok.
But when i change the dialpeer for outgoing PSTN, I not make a call from internal -> PSTN
I debug error and the error message "disconnect cause 11 " or disconnect text cause 17
When i make a call from internal to PSTN: I hear the busy tone. And I call for my mobile many time but i till hear the busy tone.
I call from PSTN to extension is ok. And call ext to ext is ok. But call from extension to PSTN have a busy tone
Please help me or have solution for solve this problem.I just checked all but not make outgoing call to PSTN.
I check dialplan, dialpeer for internal calll to mobile phone
Macro Exp.: 0908043018
VoiceEncapPeer2
peer type = voice, system default peer = FALSE, information type = voice
description = `',
tag = 2, destination-pattern = `^0.........',
voice reg type = 0, corresponding tag = 0,
allow watch = FALSE
answer-address = `', preference=0,
CLID Restriction = None
CLID Network Number = `'
CLID Second Number sent
CLID Override RDNIS = disabled,
rtp-ssrc mux = system
source carrier-id = `', target carrier-id = `',
source trunk-group-label = `', target trunk-group-label = `',
numbering Type = `unknown'
group = 2, Admin state is up, Operation state is up,
Outbound state is up,
incoming called-number = `', connections/maximum = 0/unlimited,
DTMF Relay = disabled,
URI classes:
Destination =
huntstop = disabled,
in bound application associated: 'DEFAULT'
out bound application associated: ''
dnis-map =
permission :both
incoming COR list:maximum capability
outgoing COR list:minimum requirement
Translation profile (Incoming):
Translation profile (Outgoing):
incoming call blocking:
translation-profile = `'
disconnect-cause = `no-service'
advertise 0x40 capacity_update_timer 25 addrFamily 4 oldAddrFamily 4
mailbox selection policy: none
trunk-group:
id = `1', preference = `'
type = pots, prefix = `',
forward-digits default
session-target = `', voice-port = `',
direct-inward-dial = disabled,
digit_strip = disabled,
register E.164 number with H323 GK and/or SIP Registrar = TRUE
fax rate = system, payload size = 20 bytes
supported-language = ''
preemption level = `routine'
bandwidth:
maximum = 64 KBits/sec, minimum = 64 KBits/sec
voice class called-number:
inbound = `', outbound = `'
dial tone generation after remote onhook = enabled
mobility=0, snr=, snr_noan=, snr_delay=0, snr_timeout=0
snr calling-number local=disabled, snr ring-stop=disabled, snr answer-to
o-soon timer=0
Time elapsed since last clearing of voice call statistics never
Connect Time = 0, Charged Units = 0,
Successful Calls = 0, Failed Calls = 22, Incomplete Calls = 22
Accepted Calls = 0, Refused Calls = 0,
Last Disconnect Cause is "11 ",
Last Disconnect Text is "user busy (17)",
Last Setup Time = 7491887.
Last Disconnect Time = 0.
Matched: 0908043018 Digits: 2
Have ideas for me to solve this problem.
Maybe you are looking for
-
Sales order same plant different storage location
Hi We are doing a sale order for a material that is storage in two storage location. Storage location A: 2 units Storage location B: 3 units We did a sale order for 5 material. Stock availability asigned 5 unit in one position of the purchase or
-
Modify Payment Terms for Lockbox Processing
All, For our batch lockbox processing (RFEBLB00), I need change the payment terms information. The percentage varies for up to 8 months. So, I need to alter the percentage discount and number of days. BTE 00001100 looks like a perfect fit, but it do
-
Sorting the respective account number at the top
Hi, I have list of account numbers , say 5 account numbers (2300,5200,7689,1234,4566) from which I found which is the parent acct number by invoking a query. Here the parent acct number is say "1234". Now i need to make sure that parent acct number r
-
Question Why cant i re-add gmail button on google toolbar? 4.01 is not good, I have never had a problem with your products..Whats going on??
-
Thunderbolt to HDMI - audio?
I have a Macbook Air (2012) running Maverick (OSX 10.9.2). Will the Thunderbolt port provide video and audio to an HDMI converter cable for HDTV display of media played from the Mac?