«"" «... Illegal state exception»»» " Help!
Here's my situation.
I have an A screen that has a button and an ObjectListField and a button. Initially, the object list field contains a list of strings.
What is push the button a new popup window appears, it contains a text field and a button. I use the display of the text field to get the input of the chain of the user and when the user presses the button, the precious screen containing the ObjectListField appears with the updated value.
Here is my code
-----------------------------------------------------------------------------------------------
you manage the ESC but will also run great, it means that the screen is closed twice.
put in a return after that manipulation of the ESC key should solve the problem.
Tags: BlackBerry Developers
Similar Questions
-
Illegal state Exception when running the code at startup
Here's my main method:
public static void main(String[] args) { if (args.length == 1 && args[0].equals("startup")) { Criteria locationCriteria = new Criteria(); locationCriteria.setCostAllowed(false); LocationProvider mlocationProvider; Location mLocation = null; try { mlocationProvider = LocationProvider .getInstance(locationCriteria); mLocation = mlocationProvider.getLocation(-1); } catch (LocationException e) { } catch (InterruptedException e) { } QualifiedCoordinates mQC = mLocation.getQualifiedCoordinates(); } else { MyApp theApp = new MyApp(); theApp.enterEventDispatcher(); } }
The method
mlocationProvider = LocationProvider.getInstance(locationCriteria);
throws the illegal state exception
When I check the debug information, I found this exception are thrown to the line when he calls Application.getApplication ();
When I move this code to run in a normal life to screen it works fine. !
Any help?
There may be a number of issues here:
(1) until your Application is actually running, you can't really do any processing. Your Application does not start running until you
'enterEventDispatcher() '.
Hand, all you should do is instantiate your Application. Manufacturer of your Application should not do anything complicated either, since it works as part of main().
You can do some activities, for example to add listeners, in main() code that is, in some respects, unfortunate because it lulls people into thinking they can do anything. ,
(2) get the location as you do, is a blocking call. If you need to do it on a background Thread. You c a get away with that on the Simulator because GPS simulated returns immediately with a location. So it does not actually block. But on a real device, code as you can force your application to break.
(3) you seem to try to do something in the commissioning. You must be aware, this start-up up is called as part of the start-up of the device and before the unit is fully active. In fact, I think on a real device that this code will fail because the device is not ready to provide a location in the beginning upward.
You will find find article, informative and useful for (1) and (3).
http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795
I suspect you want to start and get a location at first upward, in which case you might find this useful:
http://supportforums.BlackBerry.com/T5/Java-development/create-a-background-application/Ta-p/445226
-
By clicking on the button "return" gives illegal state exception
Hello
In my app, when I'm clicking on I show a dialog box. and when I am pressing Yes in the dialog box, it gives me the illegal state exception. But I want to return to the previous screen. If I'm clicking on menu and then clicking Close, and then it goes back to the previous screen. Here is my code:
public boolean keyDown(int keycode, int time) { if (Keypad.KEY_ESCAPE == Keypad.key(keycode)) { int result = Dialog.ask(Dialog.D_YES_NO, "Do you want to edit the list?"); if (result == Dialog.YES) { try { UiApplication.getUiApplication().popScreen(this); } catch (Exception e) { e.printStackTrace(); } // onClose(); } else { return true; } } // end if return false; }
Please help me...
Same question in StackOverFlow:
Dear arindamhit,
When you are clicking back into the device and then by default button the onclose() method is called. So try to do like this;
protected boolean onSavePrompt() { return true; } public boolean onClose() { int choose=Dialog.ask(Dialog.D_YES_NO, "Close the screen"); if(choose==Dialog.YES) { return super.onClose(); } return true; }
It's the best way; If you use like the one above you might get a problem; It is:
*) If you use this method on the first screen, then according to your code when popup screen then there is no screen in the battery display (because it's the first screen); So you could get this kind of problem;
Try this one;
-
JavaFX binding throws illegal state Exception: not on the thread of Application FX
Hi all
I am updating a label of a task using bindings.
However, when I 'Bind' the label text property with a property of the task, Illegal state exception string is thrown. Saying: this is not not on the thread of JavaFX.
The Exception occurs whenever I try to set the property of the task of the Interior string.
Please do not suggest to use the platform. RunLater(). I want to do this through links as the values I am trying to display in the label (later on) could change too frequently, and I don't want to flood the queue of the thread of the user interface with executable objects.
Please let me know what I'm doing wrong and what I need to change to make it work properly with links. (I'm new to links and concurrency JavaFx API)
Here is my Code.
public class MyTask extends Task<String>{ MyTask(){ System.out.println("Task Constructor on Thread "+Thread.currentThread().getName()); } private StringProperty myStringProperty = new SimpleStringProperty(){ { System.out.println("Creating stringProperty on Thread "+Thread.currentThread().getName()); } }; private final void setFileString(String value) { System.out.println("Setting On Thread"+Thread.currentThread().getName()); myStringProperty.set(value); } public final String getFileString() { return myStringProperty.get(); } public final StringProperty fileStringProperty() { System.out.println("Fetching property On Thread"+Thread.currentThread().getName()); return myStringProperty; } @Override public String call() throws Exception{ System.out.println("Task Called on thread "+Thread.currentThread().getName()); for(int counter=0;counter<100;counter++){ try{ setFileString(""+counter); }catch(Exception e){ e.printStackTrace(); } Thread.sleep(100); System.out.println("Counter "+counter); } return "COMPLETED"; } } public class MyService extends Service<String> { MyTask myTask; public MyService(){ System.out.println("Service Constructor on Thread "+Thread.currentThread().getName()); myTask=new MyTask(); } @Override public Task createTask(){ System.out.println("Creating task on Thread "+Thread.currentThread().getName()); return myTask; } } public class ServiceAndTaskExperiment extends Application { @Override public void start(Stage stage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("Sample.fxml")); Scene scene = new Scene(root); stage.setScene(scene); stage.show(); } public static void main(String[] args) { launch(args); } } public class SampleController implements Initializable { @FXML private Label label; @FXML private void handleButtonAction(ActionEvent event) { System.out.println("You clicked me!"); myTestService.start(); //This will throw out exceptions when the button is clicked again, it does not matter } MyService myTestService=new MyService(); @Override public void initialize(URL url, ResourceBundle rb) { label.setText("Hello World!"); //adding the below Line causes the exception label.textProperty().bind(myTestService.myTask.fileStringProperty()); //removing this line removes the exception, ofcourse the label wont update. } } //sample.fxml <?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import java.util.*?> <?import javafx.scene.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns:fx="http://javafx.com/fxml" fx:controller="serviceandtaskexperiment.SampleController"> <children> <Button layoutX="126" layoutY="90" text="Click Me!" onAction="#handleButtonAction" fx:id="button" /> <Label layoutX="126" layoutY="120" minHeight="16" minWidth="69" fx:id="label" /> </children> </AnchorPane>
And it is the output with links on:
Output: when the link is activated label.textProperty () .bind (myTestService.myTask.fileStringProperty ());
Service on JavaFX Application Thread constructor
Creating string on thread JavaFX Application Thread
Task, Builder on JavaFX Application Thread
Get the property on request ThreadJavaFX wire
You clicked me!
Creating a task on a thread Thread Application JavaFX
Task called threadThread-4
Setting on ThreadThread-4
java.lang.IllegalStateException: not on the application thread FX; currentThread = Thread-4
at com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:237)
at com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:398)
to javafx.scene.Parent$ 1.onProposedChange(Parent.java:245)
at com.sun.javafx.collections.VetoableObservableList.setAll(VetoableObservableList.java:90)
at com.sun.javafx.collections.ObservableListWrapper.setAll(ObservableListWrapper.java:314)
at com.sun.javafx.scene.control.skin.LabeledSkinBase.updateChildren(LabeledSkinBase.java:602)
at com.sun.javafx.scene.control.skin.LabeledSkinBase.handleControlPropertyChanged(LabeledSkinBase.java:209)
to com.sun.javafx.scene.control.skin.SkinBase$ 3.changed(SkinBase.java:282)
at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:107)
to com.sun.javafx.binding.ExpressionHelper$ SingleChange.fireValueChangedEvent (ExpressionHelper.java:196)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)
at javafx.beans.property.StringPropertyBase.fireValueChangedEvent(StringPropertyBase.java:121)
at javafx.beans.property.StringPropertyBase.markInvalid(StringPropertyBase.java:128)
in javafx.beans.property.StringPropertyBase.access$ 100 (StringPropertyBase.java:67)
to javafx.beans.property.StringPropertyBase$ Listener.invalidated (StringPropertyBase.java:236)
to com.sun.javafx.binding.ExpressionHelper$ SingleInvalidation.fireValueChangedEvent (ExpressionHelper.java:155)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)
at javafx.beans.property.StringPropertyBase.fireValueChangedEvent(StringPropertyBase.java:121)
at javafx.beans.property.StringPropertyBase.markInvalid(StringPropertyBase.java:128)
at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:161)
at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:67)
to serviceandtaskexperiment. MyTask.setFileString (MyTask.java:24)
to serviceandtaskexperiment. MyTask.call (MyTask.java:36)
to serviceandtaskexperiment. MyTask.call (MyTask.java:11)
to javafx.concurrent.Task$ TaskCallable.call (Task.java:1259)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Output with links removed: (label will not be updated)
Service on JavaFX Application Thread constructor
Creating string on thread JavaFX Application Thread
Task, Builder on JavaFX Application Thread
You clicked me!
Creating a task on a thread Thread Application JavaFX
Task called threadThread-4
Setting on ThreadThread-4
Counter 0
Setting on ThreadThread-4
1 meter
Setting on ThreadThread-4
2 meter
Setting on ThreadThread-4
If myStringProperty is bound to the textProperty of etiquette, you can only change it on the Thread of the JavaFX Application. The reason is that change its value will result in a change of the label, and changes of live parts of the graphic scene cannot be performed on the Thread of the JavaFX Application.
Task and Service classes expose a messageProperty you could use here. The Task class has a updateMessage (...) method that changes the value of the message on the Thread of the JavaFX Application property. It also merges calls in order to prevent the flooding of this thread. If you could do the following in your MyTask.call () method:
updateMessage(""+counter);
and then in your controller just do
label.textProperty().bind(myTestService.messageProperty());
If you don't want to use the messageProperty for some reason any (for example you are already using it for something else, or you want to make something similar to a property that is not a string), you must merge the updates yourself. What follows is based on the source code of the task:
public class MyTask extends Task
{ // add in the following: private final AtomicReference fileString = new AtomicReference<>(); private void updateFileString(String text) { if (Platform.isFxApplicationThread()) { setFileString(text); } else { if (fileString.getAndSet(text) == null) { Platform.runLater(new Runnable() { @Override public void run() { final String text = fileString.getAndSet(null); MyTask.this.setFileString(text); } }); } } } // Now just call updateFileString(...) from your call() method } -
see URLEncodedPostData.getBytes () and illegal state Exception
Hi, expert,
recently when I tried to understand the device encryption, I discovered my starts http grave failed when the device is locked and the encryption is enabled. After the addition of debugging information more, I finally discovered that the exception is thrown to the URLEncodedPostData.getBytes () with IllegalStateException, here is a part of the stack trace:
IllegalStateException No detail message net_rim_cldc-11(4DE8751A) PersistentContent decode 0x8E80 net_rim_cldc-11(4DE8751A) PersistentContent decode 0xB1FC net_rim_cldc-11(4DE8751A) PersistentContent decode 0xB18A net_rim_bb_browser_lib(4DE8802C) URLEncodedFormData toString 0xB6C9 net_rim_bb_browser_lib(4DE8802C) URLEncodedFormData getBytes 0xB6B2 net_rim_bbapi_browser(4DE88041) URLEncodedPostData getBytes 0x411
Then I did some search on the forum, I found this link, and that is exactly the same as what I saw: http://supportforums.blackberry.com/t5/Java-Development/URLEncodedPostData-getBytes-and-Illegal-Stat... As I saw no explanation on this thread, I just open this post to see if there is any explanation about it. I guess that fi that we can't work around this problem, we would have to write code ourselves url code.
This proximity. Work of my own URL encoding code which is pretty easy to code.
-
Illegal state exception reading MCC
Hello
I use the method above to read MCC
This is a good model for the treatment of the "start-up" which should mean that you can get your information from the Radio, once the device has started successfully.
http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795
-
JVM 104 - Illegal Argument Exception (wait, what?)
Friends and enemies,
I am the developer of a BlackBerry app that works very well for over a year. All of a sudden, I'm going to run the Simulator, and I get an exception error Uncaght JVM (not on the launch, but medium-term), specifically, the JVM 104 illegal Argument Exception. I did not any changes to the code in > 3 months, my last run of the application on the Simulator was a week ago.
This is where it gets crazy... If I create a new project in Eclipse using the code EXACT EVEN the above request, the Simulator works perfectly. What could have happened to my configuration of a project that builds an illegal Exception of Argument?
I ran clean.bat on all my simulators. The only change I made on my test machine is to install Adobe Photoshop CS5 (shouldn't really affect anything).
All the world has already seen this problem?
Help, please
JRT
Oudu a few hours and several breakpoints, I found the problem. Apparently, update a GaugeField using .setValue (int) can throw an Exception of the illegal Argument? But only once a year. I don't know why it was a problem now, the code has been stagnant...?
SOLUTION:
try {}
Update GaugeField
}
catch (IllegalArgumentException foo)
{
}
BOOYA! FTW
-
Java.lang.Illegal argument exception
Dear Sir
I have the below who worked after I made a few changes, I started getting this error:
"java.lang.illegal argument exception".
any help is highly appreciated
Zeo package;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
Import net.rim.device.api.i18n.SimpleDateFormat;
Import net.rim.device.api.ui.Field;
Import net.rim.device.api.ui.FieldChangeListener;
Import net.rim.device.api.ui.Font;
Import net.rim.device.api.ui.Ui;
Import net.rim.device.api.ui.UiApplication;
Import net.rim.device.api.ui.component.ButtonField;
Import net.rim.device.api.ui.component.Dialog;
Import net.rim.device.api.ui.component.LabelField;
Import net.rim.device.api.ui.component.SeparatorField;
Import net.rim.device.api.ui.container.HorizontalFieldManager;
Import net.rim.device.api.ui.container.MainScreen;
Import net.rim.device.api.ui.container.VerticalFieldManager;Home page of class extends screen
{
HorizontalFieldManager _fieldManagerBottom1, _fieldManagerBottom2, _fieldManagerBottom3, _fieldManagerBottom4, _fieldManagerBottom5, _fieldManagerBottom6, _fieldManagerBottom7;
ButtonField btnSo, btnPendingSo, btnOpenTT, btnPendingTT, btnTop50So, btnTop50TT;
LabelField lblSo, lblPendingSo, lblOpenTT, lblPendingTT, lblTop50So, lblTop50TT;
Do police = Font.getDefault ().derive(Font.PLAIN,5,Ui.UNITS_pt);
S ServerConnection = new ServerConnection();
String data = s.displayData ("http://m.zeo.zajil.com/BB/Default.aspx");
splitString spt = new splitString();
DisplayData String().
HomePage()
{
Thread postnameThread = new Thread (new ServerConnection());
postnameThread.start ();
LabelField title = new LabelField ("Zajil BlackBerry Edition", LabelField.ELLIPSIS: ") LabelField.USE_ALL_WIDTH);
setTitle (title);
HorizontalFieldManager _fieldManagerTop;
VerticalFieldManager _fieldManagerMiddle;
_fieldManagerTop = new HorizontalFieldManager();
_fieldManagerMiddle = new VerticalFieldManager();
_fieldManagerBottom1 = new HorizontalFieldManager();
_fieldManagerBottom2 = new HorizontalFieldManager();
_fieldManagerBottom3 = new HorizontalFieldManager();
_fieldManagerBottom4 = new HorizontalFieldManager();
_fieldManagerBottom5 = new HorizontalFieldManager();
_fieldManagerBottom6 = new HorizontalFieldManager();
_fieldManagerBottom7 = new HorizontalFieldManager();
during the initialization of the labels
lblSo = new LabelField (new LabelField ("So New"));
lblPendingSo = new LabelField (new LabelField ("waiting So"));
lblOpenTT = new LabelField (new LabelField ("open disturbance"));
lblPendingTT = new LabelField (new LabelField ("pending Tickets"));
lblTop50So = new LabelField (new LabelField ("TOP 50 SO Cust"));
lblTop50TT = new LabelField (new LabelField ("TOP 50 Cust TT"));
During the initialization of the buttons
btnSo = new ButtonField("");
btnSo.setFont (do);
btnPendingSo = new ButtonField("");
btnPendingSo.setFont (do);
btnOpenTT = new ButtonField("");
btnOpenTT.setFont (do);
btnPendingTT = new ButtonField("");
btnPendingTT.setFont (do);
btnTop50So = new ButtonField("");
btnTop50So.setFont (do);
btnTop50TT = new ButtonField("");
btnTop50TT.setFont (do);
displayData = spt.split (data, ';');
for (int i = 0; i)<>
// {
btnSo.setLabel(displayData[0]);
btnPendingSo.setLabel(displayData[1]);
btnOpenTT.setLabel(displayData[2]);
btnPendingTT.setLabel(displayData[3]);
btnTop50So.setLabel(displayData[4]);
btnTop50TT.setLabel(displayData[5]);
// }
Officials in the field initialization
Managers in the field to add to the Panel
Add (_fieldManagerBottom1);
Add (new SeparatorField());
Add (_fieldManagerBottom2);
Add (new SeparatorField());
Add (_fieldManagerBottom3);
Add (new SeparatorField());
Add (_fieldManagerBottom4);
Add (new SeparatorField());
Add (_fieldManagerBottom5);
Add (new SeparatorField());
Add (_fieldManagerBottom6);
Add (new SeparatorField());
Add (_fieldManagerBottom7);
Code to get the date current system / / start
Calendar c = Calendar.getInstance (TimeZone.getTimeZone ("GMT"));
c.setTime (new Date (System.currentTimeMillis ())); now
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
String eventDateString;Calendar calendar is Calendar.getInstance (TimeZone.getTimeZone ("GMT"));. GMT will be always supported by getTimeZone
eventDateString = sdf.format (calendar.getTime ());
System.out.println (eventDateString);Calendar calendarLocal = Calendar.GetInstance ();
eventDateString = sdf.format (calendarLocal.getTime ());
System.out.println (eventDateString);
Dim strDate = eventDateString.toString ();
end of the code to get the date current system: convert to string
_fieldManagerTop.Add (new LabelField ("* ZEO BlackBerry Main Menu *"));
_fieldManagerMiddle.Add (new LabelField ("summary for today:" + strDate));
Adding field etc.
addition of high so of
_fieldManagerBottom1.Add (new LabelField (lblTop50So));
_fieldManagerBottom1.Add (new LabelField(""));
_fieldManagerBottom1.Add (btnTop50So);
addition of the top 50 TT
_fieldManagerBottom2.Add (new LabelField (lblTop50TT));
_fieldManagerBottom2.Add (new LabelField(""));
_fieldManagerBottom2.Add (btnTop50TT);
Add this field
_fieldManagerBottom3.Add (new LabelField (lblSo));
_fieldManagerBottom3.Add (new LabelField(""));
_fieldManagerBottom3.Add (btnSo);
Add on hold pending field etc.
_fieldManagerBottom4.Add (new LabelField (lblPendingSo));
_fieldManagerBottom4.Add (new LabelField(""));
_fieldManagerBottom4.Add (btnPendingSo);
Adding open disturbance
_fieldManagerBottom5.Add (new LabelField (lblOpenTT));
_fieldManagerBottom5.Add (new LabelField(""));
_fieldManagerBottom5.Add (btnOpenTT);
Added forward to TT
_fieldManagerBottom6.Add (new LabelField (lblPendingTT));
_fieldManagerBottom6.Add (new LabelField(""));
_fieldManagerBottom6.Add (btnPendingTT);
Adding tabs for visitors and assignments
LabelField customersTab, AssignTab, spacer1, spacer2;
customersTab = new LabelField ("Customers", LabelField.FOCUSABLE |) LabelField.HIGHLIGHT_SELECT);
AssignTab = new LabelField ("Assignments", LabelField.FOCUSABLE |) LabelField.HIGHLIGHT_SELECT);
spacer1 = new LabelField ("|", LabelField.NON_FOCUSABLE);
spacer2 = new LabelField ("|", LabelField.NON_FOCUSABLE);
_fieldManagerBottom7.Add (customersTab);
_fieldManagerBottom7.Add (spacer1);
_fieldManagerBottom7.Add (AssignTab);
_fieldManagerBottom7.Add (spacer2);
Buttons by listening to events
btnSo.setChangeListener (listenerSo);
btnPendingSo.setChangeListener (listenerPendingSo);
btnOpenTT.setChangeListener (listenerOpenTT);
btnPendingTT.setChangeListener (listenerPendingTT);
}Listener for requests for new Service order
FieldChangeListener listenerSo = new FieldChangeListener()
{
' Public Sub fieldChanged (field field, int context)
{
Try
{
UiApplication.getUiApplication () .pushScreen (new ServiceOrders());
}
catch (Exception ex)
{
Dialog.Alert (ex. ToString());
}
}
};
Earphone for in-service control applications
FieldChangeListener listenerPendingSo = new FieldChangeListener()
{
' Public Sub fieldChanged (field field, int context)
{
Try
{
UiApplication.getUiApplication () .pushScreen (new PendingSo());
}
catch (Exception ex)
{
Dialog.Alert (ex. ToString());
}
}
};
Earphone for open trouble
FieldChangeListener listenerOpenTT = new FieldChangeListener()
{
' Public Sub fieldChanged (field field, int context)
{
Try
{
UiApplication.getUiApplication () .pushScreen (new OpenTT());
}
catch (Exception ex)
{
Dialog.Alert (ex. ToString());
}
}
};
Earphone for pending tickets
FieldChangeListener listenerPendingTT = new FieldChangeListener()
{
' Public Sub fieldChanged (field field, int context)
{
Try
{
UiApplication.getUiApplication () .pushScreen (new PendingTT());
}
catch (Exception ex)
{
Dialog.Alert (ex. ToString());
}
}
};
EXIT button that's will close the application...
FieldChangeListener listenerExit = new FieldChangeListener()
// {
' Public Sub fieldChanged (field field, int context)
// {
Dialog.Alert ("thank you for using ZEO BlackBerry");
System.Exit (0);
// }// };
}Rgds
Nadir
I solved it sorry for the post... It was just a stupid mistake... rgds Nadir
-
I have problem with value NULL when the use CASE statement please help this question
I have problem with value NULL when the use CASE statement please help this question
Table: digital_val
SNO cl C2
1 San1 11
2 22 San2
Actual result: expected to A B
A B 11 22
11 NULL
22 NULL
query:
Select case when c1 = "san1" then c2,.
case If c1 = "san2" then c2 B
of digital_val
I'm more curious why, when you select 2 rows, you expect a result of row?
WITH digital_val
AS (SELECT 1 AS 'Sno', 'San1"C1, c2 FROM DUAL 11)
UNION ALL
2 SELECT AS 'Sno', 'San2"C1, c2 FROM DUAL 22)
SELECT CASE WHEN c1 is "San1" THEN END AS A c2.
CASE WHEN c1 = "San2" THEN END AS B c2
OF digital_val;
With no other input, if you select 2 rows, you get 2 rows. One of the other solutions use a max function, but is this really what you want, does not specify?
-
If and Else statements? Help!
I am a dress up game in Adobe Flash 8 (AS2) and I am trying to Show and hide multiple video Clips on the release of a button to sort of a menu like this:
http://charfade.deviantart.com/art/dress-up-NALA-game-107105062
Its probably if/else statements, but I do not know how their code in ActionScript 2 , so it could very well help if you had a responseYou can use the movieclips _visible property to show (mc._visible = true) and hide (mc._visible = false) a movieclip mc.
-
SQL error in the preparation of the statement, need help on coding review.
I'm analyzing a parameter to the SQL of VO statement using setWhereClause. (the idea was copied from various sources)
However, I keep getting following error.
The exception message, it seems that the SQL statement is bad. I also tried a different combination of the establishment where clause with no luck.
I use a wrong code? or is there something missing?
======================================================================
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 27122 Houston: SQL error in the preparation of the statement. Statement: SELECT * FROM (SELECT SalAuditEO.AUDIT_TIMESTAMP,
SalAuditEO.AUDIT_TRANSACTION_TYPE,
SalAuditEO.AUDIT_USER_NAME,
SalAuditEO.AUDIT_TRUE_NULLS,
SalAuditEO.AUDIT_SESSION_ID,
SalAuditEO.AUDIT_SEQUENCE_ID,
SalAuditEO.AUDIT_COMMIT_ID,
SalAuditEO.PAY_PROPOSAL_ID,
SalAuditEO.CHANGE_DATE,
SalAuditEO.PROPOSED_SALARY,
SalAuditEO.PROPOSED_SALARY_N,
SalAuditEO.ROWID,
PPP. ASSIGNMENT_ID
OF HUMAN RESOURCES. PER_PAY_PROPOSALS_A SalAuditEO,
GRA PER_PAY_PROPOSALS PPP
WHERE PPP. PAY_PROPOSAL_ID = SalAuditEO.PAY_PROPOSAL_ID) WHERE QRSLT (and assignment_id =: 1).
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:603)
at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.processRequest(OAWebBeanTableHelper.java:2084)
at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processRequest(OATableBean.java:1034)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2336)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1735)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
in OA. jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
# # 0 in detail
java.sql.SQLException: ORA-00936: lack of expression
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at assembly.oracle.apps.cssm.saladmin.schema.server.SalAuditVOImpl.initQuery(SalAuditVOImpl.java:21)
at assembly.oracle.apps.cssm.saladmin.schema.server.SalAuditAMImpl.initDetails(SalAuditAMImpl.java:49)
at assembly.oracle.apps.cssm.saladmin.schema.server.webui.SalAuditCO.processRequest(SalAuditCO.java:50)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.processRequest(OAWebBeanTableHelper.java:2084)
at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processRequest(OATableBean.java:1034)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2336)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1735)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
in OA. jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-00936: lack of expression
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at assembly.oracle.apps.cssm.saladmin.schema.server.SalAuditVOImpl.initQuery(SalAuditVOImpl.java:21)
at assembly.oracle.apps.cssm.saladmin.schema.server.SalAuditAMImpl.initDetails(SalAuditAMImpl.java:49)
at assembly.oracle.apps.cssm.saladmin.schema.server.webui.SalAuditCO.processRequest(SalAuditCO.java:50)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.processRequest(OAWebBeanTableHelper.java:2084)
at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processRequest(OATableBean.java:1034)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2336)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1735)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
in OA. jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
to EDU.oswego.cs.dl.util.concurrent.PooledExecutor$ Worker.run (PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
======================================================================
VO query: (tested OK)
SELECT SalAuditEO.AUDIT_TIMESTAMP,
SalAuditEO.AUDIT_TRANSACTION_TYPE,
SalAuditEO.AUDIT_USER_NAME,
SalAuditEO.AUDIT_TRUE_NULLS,
SalAuditEO.AUDIT_SESSION_ID,
SalAuditEO.AUDIT_SEQUENCE_ID,
SalAuditEO.AUDIT_COMMIT_ID,
SalAuditEO.PAY_PROPOSAL_ID,
SalAuditEO.CHANGE_DATE,
SalAuditEO.PROPOSED_SALARY,
SalAuditEO.PROPOSED_SALARY_N,
SalAuditEO.ROWID,
PPP. ASSIGNMENT_ID
OF HUMAN RESOURCES. PER_PAY_PROPOSALS_A SalAuditEO,
HR. PER_PAY_PROPOSALS PPP
WHERE PPP. PAY_PROPOSAL_ID = SalAuditEO.PAY_PROPOSAL_ID
Co:
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
SalAuditAM am = (SalAuditAM) pageContext.getApplicationModule (webBean) .findApplicationModule ("SalAuditAM"
String str1 = (String) pageContext.getSessionValue ("PerSalAssgtId");
am.initDetails (str1);
................
Am:
public void initDetails (String employeeNumber)
{
SalAuditVOImpl vo = getSalAuditVO1();
vo.initQuery (employeeNumber);
}
Vo:
public void initQuery (String paramString)
{
super.setWhereClause ("and assignment_id =: 1");
super.setWhereClauseParam (0, paramString);
super.executeQuery ();
}Hello
Copy the following code
public void initQuery (String paramString)
{
setWhereClause ("ASSIGNMENT_ID =: 1");
setWhereClauseParams (null);
setWhereClauseParam (0, paramString);
executeQuery();
}Thank you
Gerard -
Cannot change the value in the report url column in the select statement. Help, please
Hi all
I'm moving the value of the column of the report as follows:
And I'm passing the values as follows:select key, num, case when Attachmentcnt(KEY) != 0 then 'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'
{noformat}
"#KEY #, ' NUM # #', 9' ELSE null.
Fixing of END
from tableA
{noformat}
But I'm not able to understand correct syntax for these column values. Can someone give me help. I appreciate it.
Rgds,
Suma.
Published by: sumak on June 23, 2009 12:11
Published by: sumak on June 23, 2009 12:22Suma,
If you try to generate a column with a URL, try something like the following:
Select the key, num,
-case when Attachmentcnt (KEY). = 0 then
' f ? p = & APP_ID.: 91: & SESSION. : "": NO::P91_KEY, P91NUM, P91_PREVPG:'
|| tableA.key | ',' || tableA.num | ',' || : P91_PREVPG
Another null
end
FROM tableA;But the best way to spend these would include values of checksum against the values of your parameters (to ensure that a user is not hack them). You will need to check the manual of the Apex for more details - see "Understanding Session State Protection".
Good luck
Stew
-
I can not navigate on at all. I installed 20 FF, and when I try to activate I get redirected to a support deadend page. Before the upgrade, I uninstalled the previous version, which worked very well.
Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files, and then reinstall Firefox. Please follow these steps:
Note: You can print these steps or consult them in another browser.
- Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
- Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
- Remove the Firefox installation folder, which is located in one of these locations, by default:
- Windows:
- C:\Program Files\Mozilla Firefox
- C:\Program Files (x 86) \Mozilla Firefox
- Mac: Delete Firefox in the Applications folder.
- Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
- Windows:
- Now, go ahead and reinstall Firefox:
- Double-click on the downloaded Setup file and go through the steps in the installation wizard.
- Once the wizard is completed, click to open Firefox directly after clicking the Finish button.
Please report back to see if this helped you!
-
My touchsmart310-1033 back to password sign after 90 seconds or so idle state? Help!
TouchSmart 310-1033 sign revetd at the password screen when idle for 90 seconds or more. I have reset the parameters fed forever but doesen't help!
Hello
Open windows control panel, open personalization, click on the link on the bottom right and in the next window, screen saver set time "Wait" to a more acceptable figure and Remove the tick in the box next to "in curriculum vitae, the logon screen. Click on apply, then Ok to save the setting.
Kind regards
DP - K
-
static PAT statements, need help...
Hi all
I am trying to set up a mail server, for the time being for reasons that I explain not rather, I can't put it on the demilitarized zone. So he is sitting inside the 515e Firewall interface.
I have the internal IP address of the server as 192.168.50.13 and inside the network I can send, receive, email etc. on this server. This is a new server, so I recently install my a records and MX. When the rattling of the entrance to the area the correct IP address is now assigned domain name. However, I can't see my e-mail server in the outside world. When you run a DNS query on the MX record, I get no response.
The problem is at the level of PIX. My static instructions do not seem to work.
One of my works of 4 static instructions (for our Services Terminal Server server), but the 3 other entries are not.
They are as follows:
static (inside, outside) MainOffice 3389 192.168.50.75 tcp 3389 netmask 255.255.255.255 0 0
static (inside, outside) tcp smtp MainOffice 192.168.50.13 smtp netmask 255.255.255.255 0 0
static (inside, outside) tcp MainOffice 192.168.50.13 pop3 pop3 netmask 255.255.255.255 0 0
static (inside, outside) tcp MainOffice telnet 192.168.50.201 telnet netmask
255.255.255.255 0 0
(the last entry is just to test and see if I could even host a standard telnet server from my local office win2k and see through the firewall, the test has failed, I can telnet in via the local IP address,.201, but not through the external IP, MainOffice.)
As often elsewhere in the config PIX seem to affect issues that I :), I included a complete running-config list below for those who would like to reference. Thank you for your time,
Another strange thing of note, with this current config I can't ping my IP external interface starting from IP external or internal IP. I have my entries ICMP set and thought I should be able to see, but can't. It is not as important a question as the above question.
Dave
::
6.2 (2) version PIX
ethernet0 nameif outside security0
nameif ethernet1 inside the security100
nameif ethernet2 security10 intf2
hostname YRPCI
domain yrpci.com
fixup protocol ftp 21
fixup protocol http 80
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol they 389
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol sip 5060
fixup protocol 2000 skinny
fixup protocol http-8080
fixup protocol ftp 22
names of
name x.x.71.8 ConstOffice
name x.x.81.11 BftOffice
name x.x.71.7 MainOffice
allow the ip host 192.168.50.10 access list acl_outbound a
allow the ip host 192.168.50.75 access list acl_outbound a
allow the ip host 192.168.50.201 access list acl_outbound a
allow the ip host 192.168.50.202 access list acl_outbound a
access-list acl_outbound allow the host tcp 192.168.50.203 a
access-list acl_outbound allow the host tcp 192.168.50.204 a
access-list acl_outbound allow the host tcp 192.168.50.205 a
access-list acl_outbound allow the host tcp 192.168.50.206 a
access-list acl_outbound allow the host tcp 192.168.50.207 a
access-list acl_outbound allow the host tcp 192.168.50.208 a
access-list acl_outbound allow the host tcp 192.168.50.209 a
access-list acl_outbound allow the host tcp 192.168.50.210 a
access-list acl_outbound allow the host tcp 192.168.50.211 a
access-list acl_outbound allow the host tcp 192.168.50.212 a
access-list acl_outbound allow the host tcp 192.168.50.213 a
access-list acl_outbound allow the host tcp 192.168.50.214 a
access-list acl_outbound allow the host tcp 192.168.50.215 a
access-list acl_outbound allow the host tcp 192.168.50.216 a
access-list acl_outbound allow the host tcp 192.168.50.217 a
access-list acl_outbound allow the host tcp 192.168.50.218 a
access-list acl_outbound allow the host tcp 192.168.50.219 a
access-list acl_outbound allow the host tcp 192.168.50.220 a
access-list acl_outbound allow the host tcp 192.168.50.221 a
access-list acl_outbound allow the host tcp 192.168.50.222 a
access-list acl_outbound allow the host tcp 192.168.50.223 a
access-list acl_outbound allow the host tcp 192.168.50.224 a
acl_outbound list of access allowed tcp 192.168.50.0 255.255.255.0 any eq smtp
acl_outbound list of access allowed tcp 192.168.50.0 255.255.255.0 any eq pop3
acl_outbound 192.168.50.0 ip access list allow 255.255.255.0 host 192.168.51.0
acl_outbound 192.168.50.0 ip access list allow 255.255.255.0 host 192.168.52.0
acl_outbound 192.168.50.0 ip access list allow 255.255.255.0 host 192.168.53.0
allow the ip host 192.168.50.51 access list acl_outbound a
access-list acl_outbound allow the host tcp 192.168.50.11 a
allow the ip host 192.168.50.13 access list acl_outbound a
access-list acl_outbound allow the host tcp 192.168.50.225 a
acl_inbound list access permit tcp any host MainOffice eq 3389
acl_inbound list access permit icmp any any echo response
access-list acl_inbound allow icmp all once exceed
acl_inbound list all permitted access all unreachable icmp
allow the ip host MainOffice one access list acl_inbound
acl_inbound list access permit tcp any any eq ssh
access-list 101 permit ip 192.168.50.0 255.255.255.0 192.168.52.0 255.255.255.0
access-list 102 permit ip 192.168.50.0 255.255.255.0 192.168.51.0 255.255.255.0
access-list 100 permit ip 192.168.50.0 255.255.255.0 192.168.51.0 255.255.255.0
access-list 100 permit ip 192.168.50.0 255.255.255.0 192.168.52.0 255.255.255.0
access-list 100 permit ip 192.168.50.0 255.255.255.0 192.168.53.0 255.255.255.0
access-list 103 allow ip 192.168.50.0 255.255.255.0 192.168.53.0 255.255.255.0
pager lines 24
opening of session
timestamp of the record
recording of debug console
logging warnings put in buffered memory
logging trap warnings
history of logging warnings
host of logging inside the 192.168.50.201
interface ethernet0 car
Auto interface ethernet1
Automatic stop of interface ethernet2
ICMP permitted MainOffice outside the host
ICMP permitted outside the host ConstOffice
ICMP allow any inaccessible outside
ICMP allow any response of echo outdoors
ICMP allow any inside
Outside 1500 MTU
Within 1500 MTU
intf2 MTU 1500
IP address outside pppoe setroute
IP address inside 192.168.50.1 255.255.255.0
intf2 IP address 127.0.0.1 255.255.255.255
alarm action IP verification of information
alarm action attack IP audit
don't allow no history of pdm
ARP timeout 14400
Global interface 2 (external)
NAT (inside) - 0 100 access list
NAT (inside) 2 192.168.50.0 255.255.255.0 0 0
static (inside, outside) MainOffice 3389 192.168.50.75 tcp 3389 netmask 255.255.255.255 0 0
static (inside, outside) tcp smtp MainOffice 192.168.50.13 smtp netmask 255.255.255.255 0 0
static (inside, outside) tcp MainOffice 192.168.50.13 pop3 pop3 netmask 255.255.255.255 0 0
static (inside, outside) tcp MainOffice telnet 192.168.50.201 telnet netmask 255.
255.255.255 0 0
Access-group acl_inbound in interface outside
acl_outbound access to the interface inside group
Timeout xlate 08:00
Conn timeout half-closed 06:00 07:00 07:00 from the PRC related to udp h323 from 07:00 0:05:00 TR
p 0:30:00 sip_media 0:02:00
timeout uauth 07.30: absolute
GANYMEDE + Protocol Ganymede + AAA-server
RADIUS Protocol RADIUS AAA server
AAA-server local LOCAL Protocol
Enable http server
http 192.168.50.0 255.255.255.0 inside
No snmp server location
No snmp Server contact
SNMP-Server Community public
No trap to activate snmp Server
enable floodguard
Permitted connection ipsec sysopt
No sysopt route dnat
Crypto ipsec transform-set esp - esp-sha-hmac RIGHT
VPN1 card crypto ipsec-isakmp 10
correspondence address 10 card crypto vpn1 102
card crypto vpn1 pfs set 10 group2
card crypto vpn1 together 10 peer ConstOffice
card crypto vpn1 10 set transform-set RIGHT
vpn1 20 ipsec-isakmp crypto map
correspondence address 20 card crypto vpn1 101
card crypto vpn1 pfs set 20 group2
20 card crypto vpn1 peer BftOffice game
card crypto vpn1 20 set transform-set RIGHT
vpn1 outside crypto map interface
ISAKMP allows outside
ISAKMP key * address ConstOffice netmask 255.255.255.255
ISAKMP key * address BftOffice netmask 255.255.255.255
ISAKMP identity address
part of pre authentication ISAKMP policy 10
encryption of ISAKMP policy 10
ISAKMP policy 10 sha hash
10 1 ISAKMP policy group
ISAKMP life duration strategy 10 86400
Telnet ConstOffice 255.255.255.255 outside
Telnet 192.168.51.0 255.255.255.0 outside
Telnet 192.168.52.0 255.255.255.0 outside
Telnet BftOffice 255.255.255.255 outside
Telnet 192.168.50.0 255.255.255.0 inside
Telnet timeout 10
SSH 0.0.0.0 0.0.0.0 outdoors
SSH 192.168.50.0 255.255.255.0 inside
SSH timeout 20
VPDN group pppoex request dialout pppoe
VPDN group pppoex localname xxxxxxxxx
VPDN group ppp authentication pap pppoex
VPDN username password xxxxxxxxxx *.
Terminal width 80
: end
Well, I'll be a son-of-b! * $@ !!! I don't know what I'm talking about then! Ha ha.
I'm just glad that you work, and maybe someone else watching tips can help us understand.
Thereafter.
Maybe you are looking for
-
When I updated Firefox to version 32, he started to always show my tabs in the last session when it is started. I tried to change the "Startup of Firefox" option to all three of the available choices. None of them changed the behavior. It nevertheles
-
I ran out of free space on the hard drive how can I free up space
My pc is freezing or locking up when I run a desktop wallpaper animated, so I defragment a saw that I was up to 20% freespace
-
Original title: games Since I updated to Windows 10, I can play is more my four games: Solitaire, Spider Solitaire, free cell, and hearts. What can I do to make them available to me.
-
where to find the model bb Simulator 9860?
Hello I intend to transplant my application on the device 9860. where to find the Simulator used in the development of this device? THX! BR liuqing
-
Need help using the access list blocking a single IP address
Basically, I'm being attacked by a massive spammer. I managed to deny him access to our mail server, however, his repeated attempts to connect to the same server is in our file of e-mail magazine. What I want to do is set up a block for its specific