Problem with SQL Editor Code Template
Hello,
I use Oracle SQL Developer 3.0.04 in a computer is Spanish language. When I insert a SQL Code Template with unicode chars (like ñ, á, etc.) and I go to the tab Preferences -> Database -> SQL Editor Code Template, I've lost all the templates.
I've been investigating about the problem and I've found that the templates have been stored at *%APPDATA%/SQL Developer/CodeTemplate.xml*. When I open that template, I can see that it is codified in ANSI instead of UTF-8. If I recodified the file to UTF8 manually, the SQL Code Template work perfectly.
To sum up, my problem is that everytime I add a code template the file CodeTemplate.xml was recodified to ANSI.
For example: if I add the next template AÑO="2011" lost all the templates the next time that go to the tab SQL Editor Code Template
Thanks in advance.
Lolo
Thanks, logged bug 12691441 for this.
Similar Messages
-
Flex application problem with Sql editor
Hi,
I get the error message:
Error in compiling Flex application (1). When deploying a SQL query iView
I browsed trough som threads, and see that others have had the same problem. I looked in the log file but, the same message is displayed there.
My problem is that I only get this message when I use the SQL editor. I can deploy other iViews perfectly fine.
The sql statment works fine.
Can anyone help?
Ingvild
Message was edited by: Ingvild NygaardHi,
Thanks for helping
In your document you drag one table( order details) into your iView. When you do this you are only getting data from one table right? If do as you do, drag one table into the iView my SQL will be like this;
Select ""."MATRICS"."PERIOD"."PERIOD_ID" , ""."MATRICS"."PERIOD"."LAST_MODIFIED_TIME" , ""."MATRICS"."PERIOD"."LAST_MODIFIED_BY_ID" , ""."MATRICS"."PERIOD"."FOLDER_ID" , ""."MATRICS"."PERIOD"."PERIOD_NAME" , ""."MATRICS"."PERIOD"."START_DATE" , ""."MATRICS"."PERIOD"."END_DATE" , ""."MATRICS"."PERIOD"."END_DATE" from ""."MATRICS"."PERIOD"
If I remove the ." and the " I will get my table printed out, and I can deploy the iView.
My problem was how to join all my tables in the sql editor, I do not understand how this can only be a copy paste operation. So I can not paste in her my SQL from my VC because I do not know how it is suppose to look in VC. In SQLPlus code is:
SQL> SELECT indices.index_name, period.period_name, MAX(price.bid)
2 FROM folder, indices, price, series, period,source
3 WHERE folder.folder_id = indices.folder_id
4 AND indices.index_id = series.index_id
5 AND series.series_id = price.series_id
6 AND period.period_id = series.period_id
7 AND series.source_id = source.source_id
8 AND folder.folder_id = '15351'
9 AND source.source_id = '573'
10 AND price.trade_date = SYSDATE -1
11 GROUP BY index_name, period_name;
I have solved my problem by crating a view in the database. This mayby the soulution ? Or is it possbile to solve it within VC? -
Problem with links on email templates
Problem with links on email templates
Hi,
We have been having issues with links on our email templates. Some of the links point to the following URL:
http://server'sname/thirdparty/FCKeditor/editor/fckeditor.html?InstanceName=emailTemplatesDTO.htmlBody&Toolbar=NewscaleFCKEditorToolBar#URL
Sometimes we get “Unknown internal error” on the web page.
Can anyone help or advise on how to resolve this issue?
Many thanks,
Wesley.Hi Wesley,
This is rather late, but we've seen the same thing frequently (and I believe can replicate it). It's caused when you a creating a new email by copying the content of an existing one with a name space in it.
Upon copying, the link gets scrambled. The approach we use is to copy the email in to a new template, then strip out all of the URL links and add them back in.
Thanks!
Ant -
Problem with SQL connection and a Collection
hi all,
I have two problems with sql...
1. how can I assign the values of a resultset to a collection?
2. how can I close the sql connection, because when I close the statement and connection error shows me in the resultset
thanks!Hello Pablo,
RetrivingResults In Collection:
1) use getObject method, and assign it to collection.
Collection c_obj=new ArrayList();
while(rs.next())
c_obj.add(rs.getInt(Project_ID), rs.getString(Project_Name));
Closing ResultSet
2) The close() methos of ResultSet closes the ResultSet object, like bellow
ResultSet rs = stmt.executeQuery("SELECT a, b FROM TABLE2");
rs.close(); //Closes the result set -
Hello, i have a problem with this number code 213:19, please help me!
Hello, i have a problem with this number code 213:19, please help me!
dan
What version of Premiere Elements and on what computer operating system is it running?
If you are using Premiere Elements 13, have you updated it to 13.1 yet? If not, please do so using an opened project's Help Menu/Updates.
What type of user account are you using....local administrator or domain type?
Please review the following Adobe document on the 213.19 issue. Have you read that already?
Error 213:19 | Problem has occurred with the licensing of this product
ATR -
Hello,
I have a small problem regarding to my code. I have attached the source code. There isn't any problem with the vi code. But when I convert the vi to exe, and double click the exe file in order to open it , the program is trying to start, I mean it is acting like I clicked the run button. I said it is not a problem, because all the values (test duration, delay duration, high limit, low limit) are zero. Therefore it is attempting to run, but only very small portion of the pressure reading occurs. What do you think about the cause of this problem? Thanks for your help.
Ahmet
Attachments:
front panel1.jpg 47 KB
Oksijen_Atolyesi.vi 45 KBHi Ahmet,
when duration and delay are zero, the your DAQ loop will (probably) run only once, thus giving you only small amount of data...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome
Attachments:
Oksijen_Atolyesi.vi 35 KB -
hi
i have a strange problem....when i run the following code with the 'if' statement commented out then it works fine. but when i have to search a particular name, say roy , then i include that if statement. but now it gives an error like no such data found.
if the return typ of result.getString(2) is a string type then i wonder what is the problem. i enclose the code below.
import java.sql.*;
import java.io.*;
public class checkDoc
public static void main(String args[])
String name;
ResultSet result;
try
name= "roy";
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con;
con = DriverManager.getConnection("jdbc:odbc:MyDataSource","","");
Statement stat = con.createStatement();
result = stat.executeQuery("Select * from Details1");
while (result.next())
/* problem here*/
/* if(result.getString(2).equals(name))
*/ System.out.println(result.getString(2));
catch(Exception e)
System.out.println("Error"+e);thanks alot for that help...but now there is another silly problem!..
i following is perhaps the simplest code possible for insering data into an ACCESS database.(simplest possible with just one column by the name Doc_name and table name is docdetails)...but it gives the error...
"java.sql.SQLException:syntax error or in INSERT INTO statement"
someone plz help!
import java.sql.*;
public class checkDoc4
public static void main(String args[])
ResultSet rs;
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con;
con = DriverManager.getConnection("jdbc:odbc:MyDataSource2","","");
Statement stat = con.createStatement();
stat.executeUpdate("INSERT INTO docdetails" +
"VALUES ('ankur')");
catch(Exception e)
System.out.println("Error"+e); -
Performance problem with SQL in NT vs. Solaris
Hi, I am using the thin driver in classes12.zip. The 8.1.5 server runs on a solaris box. With the same code executing the same sql statement against the same database using the same version of JRE, Statement.execute() takes 5-10 times longer on a solaris client then a NT client. The other java code doesn't show any noticeable performance degradation. Has anyone seen this problem before? Thanks in advance.
JDK1.3.0 on NT and JDK1.2.2/JDK1.3.0Beta on Solaris (tried both jdk on solaris, pretty much the same result). The network set up is this:
1 Oracle Server (8.1.5)
1 Web Server (Alliaire JRun, running servlets, communicates with oracle server via JDBC thin driver)
a couple clients using explorer or netscape
The problem is actually the web server. When the webserver is installed on NT, a sql call (stmt.executeUpdate(sql) for example) takes say 10 seconds, the same call will take twice as long or more on Solaris. The reason why I don't think JRun solaris/NT version makes that much of a difference is that besides the JDBC calls, all the other java codes completes at about the same rate.
null -
Problems with SQL Developer 2.1
I have upgraded to SQL Developer 2.1 from 1.5.5.
Iam presenting my overall experience with SQL Developer 2.1 compare to 1.5.5 version.
If the session expires, reconnecting is really pain in all SQL Developer versions. It opens a new blank window every time we reconnect, we have to copy all the things into new window every time.
when i tried to execute an insert as select statement it is showing nothing, but it's doing something in the background.
My templates are not working for (ctrl+Shift+T) after i upgraded to 2.1 from 1.5.5.
Things I tried and liked in 2.1 are*
1. 2.1 gives the exact time taken to return the no.of rows (Ex: If it returns first 50 rows, it will display time taken for that particular 50 rows only).
Things I did not like in 2.1*
1. When we try to expand a node, it shows "Loading and folder icon" (I didn't like the folder icon showing up every time)
2. I did not like the new icon for SQL Developer 2.1 itself. (It has become hard to identify the 2.1 on the task bar with this icon)
3. I did not like the close(i.e., x) on the worksheet tab.
4. Look and feel wise 1.5.5 is better than 2.1
Thanks!
RGRegrettably we can't please all the people all the time.
The little cross was a request specifically from the user community. We had complaints that users inadvertently closed windows and wanted a permanent symbol to show the closing tab. This took much effort and time to finally introduce into the product as it had to be approved through usability teams and introduced into the underlying IDE.
The release notes explain that there is no longer a key sequence for the Code Templates, start typing your code and it should appear in the code insight.
The icon updates on the taskbar was also an update based on user feedback.
While there won't be many changes between the release candidate and production, I do remind you that you are working with beta software and not production software.
Thank you for taking the tiem to post your feedback. I hope you'll find lots to really like in the latest release. Take a look through the 2.1 New Features list.
Sue -
I've got a big and terrible problem with a query. I'm trying to query a MS ACCESS db from my Java program, using IDSServer. That means that i need to import j102.sql.* instead of java.sql.*
The query is:
String querynumrioff = "SELECT DETTAGLI_OFFERTE.[Cod-nmg], DETT_RISP1.NUM_RISPOSTA, DETT_RISP1.DATA_COMPILAZIONE, DETTAGLI_OFFERTE.[Pos offerta], DETTAGLI_OFFERTE.[Codice NMG], DETTAGLI_OFFERTE.[Disegno NMG], DETTAGLI_OFFERTE.Descrizione, DETTAGLI_OFFERTE.[Rev disegno], DETTAGLI_OFFERTE.Um, DETTAGLI_OFFERTE.[Qt� lotto], DETTAGLI_OFFERTE.[Qt� annua], DETTAGLI_OFFERTE.[Prezzo obiettivo], DETTAGLI_OFFERTE.[Data cons off], DETTAGLI_OFFERTE.[Data cons mat], DETTAGLI_OFFERTE.Note, DETTAGLI_OFFERTE.[ID offerta] FROM DETTAGLI_OFFERTE LEFT JOIN DETT_RISP1 ON DETTAGLI_OFFERTE.[ID dettagli offerta] = DETT_RISP1.ID_DETTAGLI WHERE (((DETTAGLI_OFFERTE.[ID offerta])= '" + numoff + "'))";
The error message that I get is:
j102.sql.SQLException: [22018][Microsoft][Driver ODBC Microsoft Access] Tipi di dati non corrispondenti nell'espressione criterio.
That means something like "Data types not matching in the critera expression".
Could anybody help me finding a solution to this problem?
Thank you really much!
GiorgioI used :
Integer gio=new
Integer(jTextFieldnumrioff.getText());
int numoff =gio.intValue() ;
But it still doesn't work
Thank you very much for you answer!
GiorgiLike I said, you don't use quotes around numbers in SQL
This is what you have:
WHERE (((DETTAGLI_OFFERTE.[ID offerta])= '" + numoff + "'))";
Let's say numoff = 10 Then your SQL is equivalent to
WHERE DETTAGLI_OFFERTE.[ID offerta] = '10';
'10' is a string 10 is a number. Change your SQL to this:
WHERE (((DETTAGLI_OFFERTE.[ID offerta])= " + numoff + "))"; -
Hiii..
Actually I am facing some problems with the text editor font. Since I have some part of text was written in arabic (For labels), currently these parts are not readable and appears like this:
"ط§ط³ظ⦠ط§ظâط¥ط¯ط§ط±ط© ط§ظâطھط¯ط±ظٹط¨ظٹط©"
I have tryed to fix that using:
Tools --> Preferences --> Code Editor --> Font
However it still arise.
Please reply me the solution if you have some idea about this..
Regard'sWhich JDeveloper version?
What is the character encoding settings for your project's compiler in the project properties? -
Hi experts,
i am keeping a combobox renderer and editor in my JTable for 2 columns say 5th column and 7th column.
In renderer no Problem.
But while i am editing ,whenever i am choosing a perticular item from the drop down in the first row of table,it is affecting the remaining set of rows.,not all the rows also.
for example,next 5 rows are getting the same selected value.
next some 2 rows are getting affected.
the below 2 class are my renderer and editor.public class ComboBoxRenderer extends JComboBox implements TableCellRenderer {
public ComboBoxRenderer(String[] items) {
super(items);
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
if (isSelected) {
// Select the current value
setSelectedItem(value);
return this;
}My ComboBox editor is public class ComboBoxEditor extends DefaultCellEditor {
public ComboBoxEditor(String[] items) {
super(new JComboBox(items));
}so i am using this render and editor in my swing screen by the following codeString strSP[] = {"P", "O", "H", " "};
column5.setCellEditor(new ComboBoxEditor(strSP));
column5.setCellRenderer(new ComboBoxRenderer(strSP));I am sure like the problem with my renderer and editoronly,but i am helpless.
Please if someone help me to come out of this problem,it will be much helpful for me .
thanksHi,
Thanks for u'r reply
I tried in so many ways.
I tried with u'r editor,and sun forum examples also.
I brief what i want.
I am having table with 3 column.
The zeroth col, and the 2 col is a combo box.so i am rendering.
when i choose a one from zeroth col combo Box ,the 2nd col ComboBox value has to change into YES
when i choose a apart from one from zeroth col combo Box ,the 2nd col combo Box value has to change into NO.
Here my Problem is
When ever i am choosing the particular value from the 1st combo box,it is affecting the all the combobox values below(set of values,not all)..To solve that i kept the commented line in the renderer but it is creating the new problem.
I am very seriously working to solve this problem,if any one suggest to solve this,it will be very much helpful to me.
I am posting my code belowimport java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
import javax.swing.table.*;
public class TableComboBox extends JFrame implements TableModelListener
public JTable table;
DefaultTableModel model = null;
JComboBox editor2 = null;
public TableComboBox()
Object[][] data = { {" ", "A" , " "}, {" ", "B", " "}, {" ", "C", " "}, {" ", "D", " "}, {" ", "E", " "}, {" ", "F", " "}, {" ", "G", " "}, {" ", "H", " "} };
String[] columnNames = {"FIRST","SECOND", "THIRD" };
String[] column0Items = { "one", "two", "three", "four" };
String column2Items[] = {"YES","NO"};
model = new DefaultTableModel(data, columnNames);
model.addTableModelListener(this);
table = new JTable(model);
// Set the Zeroth column to use a combobox as its editor,renderer
table.getColumnModel().getColumn(0).setCellRenderer(new ComboBoxRenderer(column0Items));
table.getColumnModel().getColumn(0).setCellEditor(new ComboBoxEditor(column0Items));
// Set the second column to use a combobox as its editor,renderer
table.getColumnModel().getColumn(2).setCellRenderer(new ComboBoxRenderer(column2Items));
table.getColumnModel().getColumn(2).setCellEditor(new ComboBoxEditor(column2Items));
JScrollPane scrollPane = new JScrollPane( table );
getContentPane().add( scrollPane );
public void tableChanged(TableModelEvent e) {
int row = e.getFirstRow();
int column = e.getColumn();
if(e.getType() == TableModelEvent.INSERT) {
if (e.getType() == TableModelEvent.UPDATE) {
if(table.getEditingRow() != table.getSelectedRow())
((DefaultCellEditor)table.getCellEditor()).cancelCellEditing();
if ( column == 0 ) {
if(model.getValueAt(row, 0).equals("one")) {
model.setValueAt("YES", row, 2);
} else if(model.getValueAt(row, 0).equals("two")){
model.setValueAt("NO", row, 2);
} else if(model.getValueAt(row, 0) == "three"){
model.setValueAt("NO", row, 2);
} else if(model.getValueAt(row, 0) == "four"){
model.setValueAt("NO", row, 2);
}else{
//do nothing
public static void main(String[] args)
final TableComboBox frame = new TableComboBox();
frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
frame.pack();
frame.setVisible(true);
class ComboBoxRenderer extends JComboBox implements TableCellRenderer {
String items[];
public ComboBoxRenderer(String[] items) {
super(items);
this.items = items;
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
if(isSelected){
setSelectedItem(value.toString());
return this;
}/*else{
setSelectedItem(items[0]));
return this;
class ComboBoxEditor extends DefaultCellEditor {
public ComboBoxEditor(String[] items) {
super(new JComboBox(items));
} -
Hi
I am using Flex to insert data through remoteobject and using
SAVE method generated from CFC Wizard.
My VO contains the following variables where id has a default
value of 0 :
public var id:Number = 0 ;
public var date:String = "";
public var accountno:String = "";
public var debit:Number = 0;
public var credit:Number = 0;
id is set as the primary key in my database.
I have previously used MySQL which automatically generates a
new id if I either omitted the id value in my insert statement or
use 0 as the default value.
However, now I am using MS SQL Server and the insert
generated this error:
Unable to invoke CFC - Error Executing Database Query.
Detail:
[Macromedia][SQLServer JDBC Driver][SQLServer]Cannot insert
explicit value for identity column in table 'Transactions' when
IDENTITY_INSERT is set to OFF.
Strange thing is that I dont see this problem with another
sample application. I compared with that application (it has the
same VO with default value of 0 for id) and everything looks
similar so I can't understand why I have this error in my
application.
This is SQL used to create the table:
USE [Transactions]
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
SET ANSI_PADDING ON
CREATE TABLE [dbo].[Transactions](
[id] [int] IDENTITY(1,1) NOT NULL,
[date] [datetime] NULL,
[accountno] [varchar](100) NULL,
[debit] [int] NULL,
[credit] [int] NULL,
CONSTRAINT [PK_Transactions] PRIMARY KEY CLUSTERED
[id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE =
OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
Has anyone encountered this problem before with insert
statements dealing with a unique id (with MS SQL Server)?Change "addRecords =
connection.prepareStatement("
to "addRecords =
connection.preparedStatement("
-BIGD -
Hi All,
While i am trying to connect to sql server through an applet it is giving an error in the java console
Ie SQLException: Connection refused :connect
i also tried with standlone application it is working fine then would be the problem with applet
Here is my driver
Class.forName("com.inet.tds.TdsDriver").newInstance();
DriverManager.getConnection("jdbc:inetdae7:SERVER:1433?database=abc","gin","gin");
How can i resolve this issue.
Thx & Rgds
VinCheck the permissions for your applet. Anuntrusted
applet(which it is by default) is not allowed toopen
network connections. That might be the cause. Butthen
you should get a SecurityException and not a
Connection Failed exception. Couls you pleasedescribe
the exception that you are getting.
Cheers
JaySome times it is giving access denied i.e.
java.net.SocketPermission error in java console
Try giving full permissions to your applet. There is a
exe file in the bin dir of the jdk installation which
does that(I forgot the name)
Here is the exact error msg which is displaying in java console
SQLException:access denied(Java.net.SocketPermission 127.0.0.1:1433 connect)
-vin -
Office Home and Student 2010 Install problems with a Key Code Err..
I had to install a new hard drive, lost everything..So I upgraded to Windows 7 Professional ..
I own a the 2010 Home and Student CD bought at the Microsoft store...Doesn't come with Outlook...
So I ordered the Home and Business 2010 disc with Service Pack 1 Included, this has 2010 outlook ...It loaded and worked fine up to the point I had to replace my Drive with New Windows 7 Pro...
Everything loaded find, but every time I try and use it, its acts like it is caught in some kind of loop...It keep trying install and configure, then ask for my Key Code every time, sort of like a OLMAP132.Dll err...I did manage to make it work once, I even
got back the test email from Microsoft after setting up Outlook....Then when I rebooted the system, this same loop action started ...
I have uninstalled this at least 4 times, searched for anything with ties to Microsoft office, and uninstalled it..Then did a New Clean Install...Still getting this key Code question every time I open up a Office program....So, I am saying without a doubt,
2010 Office Home and Student and Business WILL NOT RUN on Windows 7 professional ......If you have any idea how to fix this..Please respond with facts on how to repair this please....Greta,,,After down loading ( Off Cat ) tools...I saved that program...However, there is another major problem with Your Instructions I ran into...It seems I'm not the trusted source to change files such as the Mapi32.dll files..So I was unable to attempt
your repair ...However I have found instructions for the task, but it seems very complicated for sure.. Here are the instructions, and I would like for you and maybe a co-worker to check these.. before I make any changes in system..
How to Change the Trusted Installer name...
1. Right Click on the File Or directory.
2.Click On properties, on the Right Click menu.
3.Click On "" Security "" tab
4.Click On " Advanced" Button on the bottom.
5.In the advance Security Dialog Window, Click on "" Owner "" tab
6.Here you will able to see the Current Owner ( ie: Trusted Installed )
7. To take owner ship of the object, click on the Edit button, Give permission to UAC , the highlight the user name in the " Change Owner To" box that you want to assign as the owner for the object. Then Click " OK " to finish the process.
8.Back in the Advanced Security Settings Window , You will see the current owner has changed to the user you just selected.
9.Click the ""OK "" and exit this window.
10. Click "'OK"" again, to exit completely from the Properties window..
11. Repeat Step 1 to 4 to open the object's Properties Window again...
12.Back in Object's Properties window, click on the edit button , and confirm the UAC elevation request.
13. Highlight the Administrators in the " group of users names"" box. If the user ID or group that you want to manage the permissions for the object doesn't exist, Click on.."" Add"" button, and type in the user name or
group name desired into the "" Enter Object names to select ( can use Everyone as user Name)" box and finish off by clicking on the "" OK""
14. In the permissions for Administrators box below ( or any other user name or group name you choose). click on ""Full Control"" under the ""Allow"" column to assign full access rights control permission to Administrator's
group....
http//windows.microsoft.com/en-us/windows-vista/troubleshoot-access-denied-when opening-files-or-folders.
Maybe you are looking for
-
Adobe Acrobat Pro can't handle time zones?
I normally work in Texas, but at the moment I am in San Francisco. I have updated the time zone on my Mac OS X 10.6.4 system accordingly. When I attempt to certify a PDF using Acrobat Pro 9.3.3, my digital signature (that I just created on the PDF) i
-
my sound won't work on my ipod 5. I plugged the speakers in and it works fine. When the headphones aren't plugged in and I turn the volume up it says that they are plugged in. Please help !
-
My iMessage still won't work!
I have tried every answer and my iMessage still won't work!
-
Sony HD GV700 and Windows 7 64bit OS and CS5
I am using Premiere CS5 with Sony HD GV700/1 through firewire. I have no problem of recording on to the PC using capture screen. But once I finished the project, I tried to export back to GV700//1. I get a red dot on GV700/1 indicating that it is bei
-
Hi, Ive been taking a look through these forums and have seen plenty of these posts but I have noticed something alarmingly different with my router stats. To fill you in due to my distance friom the exchange the best speed that I can get at the mome