BUG?: unexpected token in connection pane for cursor declaration
If I declare a cursor with an order clause in the declaration part of a procedure in a package I will get the unexpected token. The code compiles without errors.
SQL Developer 15.57.
Windows XP SP2
Oracle 10g
example:
declare procedure test( param in integer ) as
cursor cur( nVal in integer ) is
select * from tab where col1 = nVal
order by col2;
begin
NULL;
end test;
If I comment out the order by line and proper end the line before all is OK in connection pane.
There are a few issues logged for these unexpected tokens. We will be reviewing this section for 1.1.
Regards
Sue Harper
Similar Messages
-
Unexpected token on package body
Tree shows a "Unexpected Token" message and icon for package bodies of some packages. After some investigation we discovered that it happens only when there is a "FOR UPDATE" clause in declared cursors in any of the packages functions. Without the clause the problem disapears. It compiles and runs correctly. Is there a fix for this bug?
ThanksHere is a simple test case for the development team:
CREATE OR REPLACE PACKAGE test_token IS
PROCEDURE test_case;
END;
CREATE OR REPLACE PACKAGE BODY test_token IS
PROCEDURE test_case
IS
test_var VARCHAR2(1);
BEGIN
SELECT TRIM('Z')
INTO test_var
FROM dual;
EXCEPTION
WHEN OTHERS THEN NULL;
END test_case;
END;
Using:
SQL Developer 1.0.0.14.67
on Microsoft Windows XP Professional Version 2002 Service Pack2
Oracle 10g Enterprise Edition Release 10.2.0.1
on HP/UX Itanium 11.23 -
Bug in OC4J [unexpected token: IN] when use Subquery
Hi
I use this named query in my entity, but when I run it from JDeveloper 10.1.3.0.4 (SU2)
it throw exception
Thia is as sample query:
@NamedQuery(name="EmpbyDept",query="SELECT object(o) FROM Employees o WHERE o.departments IN(SELECT object(d) FROM Departments d)")
Internal Exception: Exception [TOPLINK-0] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.EJBQLException
Exception Description: Syntax Recognition Problem parsing the EJBQL [SELECT object(o) FROM Employees o WHERE o.departments IN(SELECT object(d) FROM Departments d)]. The parser returned the following [unexpected token: IN]
I looked in the Java Persistence API Proposed final for the In Expressions and it look like this:
in_expression ::=state_field_path_expression [NOT] IN ( in_item {, in_item}* | subquery)
in_item ::= literal | input_parameter
GhassanHi Ghassan,
At the moment we don't have a final date for the release, but we are hopeful to have a 10.1.3.1 Beta release very soon (in a few weeks), please keep watching the OTN space, and we will also announce it here in the forums.
Thanks for your patience.
Deepak -
Package body in tree view shows "unexpected token"
I have a package which is in production for months now. This does not show any error with PL/SQL Developer nor OraEdit. SQL Developer shows "unexpected token" after trying to expand the package into the list of functions and procedures. Database is 9.2, Sql developer is 1.0.0.14.22.
Any idea how to fix this?
MartinDid you get any test material? Here is one example.
TABLES:
CREATE TABLE "RAPTOR"."SETTLEMENTCALENDAR"
( "SSRRUNNUMBER" NUMBER(*,0) NOT NULL ENABLE,
"SETTLEMENTDATE" DATE NOT NULL ENABLE,
"SSRRUNTYPE" VARCHAR2(2 BYTE) NOT NULL ENABLE,
"SSRRUNDATE" DATE NOT NULL ENABLE
CREATE TABLE "RAPTOR"."DATAFILELOG"
( "DATAFILEID" NUMBER(*,0) NOT NULL ENABLE,
"FILENAME" VARCHAR2(70 BYTE) NOT NULL ENABLE,
"FILELASTMODIFIEDDATE" DATE NOT NULL ENABLE,
"FILETYPE" VARCHAR2(8 BYTE),
"FILEIDENTIFIER" VARCHAR2(50 BYTE),
"FROMPARTICIPANTID" VARCHAR2(8 BYTE),
"FROMPARTICIPANTROLECODE" VARCHAR2(2 BYTE),
"TOPARTICIPANTID" VARCHAR2(8 BYTE),
"TOPARTICIPANTROLECODE" VARCHAR2(2 BYTE),
"CREATIONTIME" DATE,
"PERIODENDDATE" DATE,
"FILESTATUS" VARCHAR2(50 BYTE) NOT NULL ENABLE,
"FILESTATUSDATETIME" DATE NOT NULL ENABLE,
"EMAILINBOXLOGID" NUMBER(*,0),
"RESPONSEFILE" VARCHAR2(50 BYTE),
"RESPONSEFILEGROUPID" NUMBER(*,0),
"DATETIMERECEIVED" DATE NOT NULL ENABLE
CREATE TABLE "RAPTOR"."ELX_MULTI_PARAMETERS"
( "EMP_JOB_NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE,
"EMP_PARAM_NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE,
"EMP_STRING_VALUE" VARCHAR2(100 BYTE),
"EMP_DATE_VALUE" DATE,
"EMP_NUMBER_VALUE" NUMBER
) ;Code
create or replace PACKAGE "ELX_PARMS_TOOLS" AS
procedure do_settlementcal_gap_check(cutoff_date in date default null);
END;
create or replace PACKAGE BODY "ELX_PARMS_TOOLS" AS
--This procedure checks the settlementcalendar table for gaps
procedure do_settlementcal_gap_check( cutoff_date in date default null) is
cursor gap_cursor is
((select rnum
from ( select rownum rnum
from datafilelog )
where rownum <= ( select max(ssrrunnumber)
from settlementcalendar)
minus
select rnum
from ( select rownum rnum
from datafilelog )
where rownum <= ( select max(ssrrunnumber)
from settlementcalendar
where settlementdate <=cutoff_date))
minus
select ssrrunnumber from settlementcalendar)
minus
select emp_number_value from elx_multi_parameters
where emp_job_name ='SETTLECAL1'
and emp_param_name ='GAPEXCEPTION';
begin
null;
end;
END; -
SQL Developer cloud login - Unexpected token NUMERIC_VALUE encountered
Dear all
I have set up a cloud database, the database is activated. I have reset the published sftp user which was sent by mail and a new user in APEX interface is created, the groups are attached.
Now for cloud new connection in SQL Developer
-> Username = my new created user
-> URL= https://database-trialabsw.db.us1.oraclecloudapps.com/apex/
-> SFTP-Username = provided by mail, password changed in Identity console
-> SFTP-Hostname = sftp.us1.cloud.oracle.com
When I want to connect, i am prompted with username set above, but if I enter the password which is set, a popup with this error message will be shown:
Unexpected token NUMERIC_VALUE encountered
I have create user as document in "Data Movement...." and i have seen the blog from Kris, but same error. Can you help me?
Here is the error log from SQL Developer:
Unexpected token NUMERIC_VALUE encountered at oracle.dbtools.raptor.cloud.auth.basic.BasicAuthenticationHandler.readProperty(BasicAuthenticationHandler.java:221)
Edited by: user626582 on Oct 18, 2012 2:19 AMHi,
I download the latest version, but when I try to make the connection I always get an "Invalid resource owner credentials". I have given the user admin, user and develop role and can login with the user via the web interface.
Is this path correct? https://database-trialabxn.db.us1.oraclecloudapps.com/apex/
Is there anything else from a security setup I need to do? -
I am working on SharePoint 2010 Infopath form, i have created one secondary connection to SharePoint List view using XML Connection it works fine.
For the deployment from DEV to PROD i converted this connection to universal data connection (UDC) and tested this before deploying to PROD but i m getting below error.
An error occurred querying a data source.
i checked ULS logs and found below details
Data adapter failed during OnLoad: The UDC file contains errors: '=' is an unexpected token. The expected token is ';'. Line 17, position 108.
UDC file is below
<?xml version="1.0" encoding="UTF-8"?>
<?MicrosoftWindowsSharePointServices ContentTypeID="0x010100B4CBD48E029A4ad8B62CB0E41868F2B0"?>
<udc:DataSource MajorVersion="2" MinorVersion="0" xmlns:udc="http://schemas.microsoft.com/office/infopath/2006/udc">
<udc:Name>LastItemID</udc:Name>
<udc:Description>Format: UDC V2; Connection Type: XmlQuery; Purpose: ReadOnly; Generated by Microsoft InfoPath 2010 on 2014-04-25 at 16:49:31 by DOMAIN\username.</udc:Description>
<udc:Type MajorVersion="2" MinorVersion="0" Type="XmlQuery">
<udc:SubType MajorVersion="0" MinorVersion="0" Type=""/>
</udc:Type>
<udc:ConnectionInfo Purpose="ReadOnly" AltDataSource="">
<udc:WsdlUrl/>
<udc:SelectCommand>
<udc:ListId/>
<udc:WebUrl/>
<udc:ConnectionString/>
<udc:ServiceUrl UseFormsServiceProxy="false"/>
<udc:SoapAction/>
<udc:Query>https://contoso/_vti_bin/owssvr.dll?Cmd=Display&List={32364DED-7FE3-4276-837C-F2AC62C04B81}&View={804CC528-34B2-4473-89DB-C4E766CACC95}&XMLDATA=TRUE&NOREDIRECT=TRUE</udc:Query>
</udc:SelectCommand>
<udc:UpdateCommand>
<udc:ServiceUrl UseFormsServiceProxy="false"/>
<udc:SoapAction/>
<udc:Submit/>
<udc:FileName>Specify a filename or formula</udc:FileName>
<udc:FolderName AllowOverwrite=""/>
</udc:UpdateCommand>
<!--udc:Authentication><udc:SSO AppId='' CredentialType='' /></udc:Authentication-->
</udc:ConnectionInfo>
</udc:DataSource>
w: sandippatilblog.blogspot.com/Hi Sandip ,
How about escape “&” to “&” as below:
<udc:Query>https://contoso/_vti_bin/owssvr.dll?Cmd=Display&List={32364DED-7FE3-4276-837C-F2AC62C04B81}&View={804CC528-34B2-4473-89DB-C4E766CACC95}&XMLDATA=TRUE&NOREDIRECT=TRUE</udc:Query>
Reference:
http://social.technet.microsoft.com/Forums/en-US/534fae6b-2cef-4947-86e2-4869cb291cfe/the-form-cannot-be-opened-because-it-requires-the-domain-permission-level-log-id-5566-error?forum=sharepointcustomizationlegacy
http://stackoverflow.com/questions/3493405/do-i-really-need-to-encode-as-amp
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Hi
My application is an interface to ldap directory. I have not used any ldap open source api to retrieve data from ldap. I have written connection pool that will help the application to connect to the ldap. It's working fine, but it's creating threads which are not invited.
ConnectionPool class takes care of the connection storage and creation, while Housekeeping thread relases these connection when idle after a given time.
Can someone please help in finding the problem in the code that creates additional threads.
package com.ba.cdLookup.manager;
import com.ba.cdLookup.exception.CDLookupException;
import com.ba.cdLookup.server.CdLookupProperties;
import java.util.Vector;
import javax.naming.Context;
import javax.naming.NamingException;
public class HouseKeeperThread extends Thread {
* Apache Logger to log erro/info/debug statements.
protected static org.apache.commons.logging.Log log = org.apache.axis.components.logger.LogFactory
.getLog(HouseKeeperThread.class.getName());
private static HouseKeeperThread houseKeeperThread;
* Close all connections existing.
* @param connections
* void
private void closeConnections(Vector connections) {
String methodIdentifier = "closeConnections";
int numOfConn = connections.size();
try {
for (int i = 0; i < numOfConn; i++) {
Context context = (Context) connections.get(i);
if (context != null) {
context.close();
context = null;
connections.remove(i);
numOfConn--;
log.info(" connection name:" + context
+ " removed. Threadcount =" + (connections.size()));
} catch (NamingException e) {
String errMsg = "CDLdapBuilder connect() - failure while releasing connection "
+ " Exception is " + e.toString();
log.error(errMsg);
} catch (Exception e) {
String errMsg = "CDLdapBuilder connect() - failure while releasing connection "
+ " Exception is " + e.toString();
log.error(errMsg);
* Thread run method
public void run() {
String methodIdentifier = "run";
try {
while(true){
log.debug("house keeping :" + this + " ---sleep");
//sleep(100000);
log.debug("house keeping :" + this + " startd after sleep");
sleep(CdLookupProperties.getHouseKeepConnectionTime());
ConnectionPool connectionPool = ConnectionPool
.getConnectionPool();
Vector connList = connectionPool.getAvailableConnections();
closeConnections(connList);
} catch (CDLookupException cde) {
log.error(methodIdentifier + " " + cde.getStackTrace());
} catch (InterruptedException ie) {
log.error(methodIdentifier + " " + ie.getStackTrace());
* @param connectionPool
* @return
* Thread
public static Thread getInstance() {
if(houseKeeperThread==null){
houseKeeperThread = new HouseKeeperThread();
return houseKeeperThread ;
package com.ba.cdLookup.manager;
import com.ba.cdLookup.exception.CDLookupException;
import com.ba.cdLookup.server.CdLookupProperties;
import com.ba.cdwebservice.schema.cdLookupPacket.LookupFailureReasons;
import java.util.Properties;
import java.util.Vector;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directory.InitialDirContext;
* ConnectionPool class manages, allocates LDAP connections. It works as a lazy
* binder and retrieves connections only when required. It doesn't allow
* connection greater then the maximum connection stated.
* To retrieve a connection the singelton method getConnectionPool is to used,
* which retruns thread safe singleton object for the connection.
public class ConnectionPool implements Runnable {
private int initialConnections = 0;
private int maxConnections = 0;
private boolean waitIfBusy = false;
private Vector availableConnections, busyConnections;
private boolean connectionPending = false;
private static int threadCount = 0;
* classIdentifier
private final String classIdentifier = "ConnectionPool";
* Apache Logger to log erro/info/debug statements.
protected static org.apache.commons.logging.Log log = org.apache.axis.components.logger.LogFactory
.getLog(CDLdapBuilder.class.getName());
* To get the attribute a systemaccessfor out of the search result
private String vendorContextFactoryClass = "com.sun.jndi.ldap.LdapCtxFactory";// "com.ibm.jndi.LDAPCtxFactory";
* context factory to use
private String ldapServerUrl = "LDAP://test.ldap.com"; // default ldap
* server live used by default
private String searchBase;
* environment properties.
private Properties env;
* DirContext
private javax.naming.directory.DirContext ctx;
* default search base to be used in Corporate Directory searches
private String defaultSearchBase = "dc=Pathway";
* search criteria
private String searchAttributes;
* search filter to retrieve data from CD
private String searchFilter;
* CorporateDirectoryLookup Constructor
* <p>
* loads the setup parameters from the properties file and stores them
* Makes a connection to the directory and sets default search base
* @throws CDLookupException
* @throws CDLookupException
private ConnectionPool() throws CDLookupException {
this.maxConnections = CdLookupProperties.getMaxConnection();// maxConnections;
this.initialConnections = CdLookupProperties.getInitialConnection();
this.waitIfBusy = CdLookupProperties.isWaitIfBusy();
this.searchBase = CdLookupProperties.getDefaultSearchBase();
//for local env testing
// this.maxConnections = 5;
// this.initialConnections = 1;
// this.waitIfBusy = true;
* For keeping no of connections in the connection pool if
* (initialConnections > maxConnections) { initialConnections =
* maxConnections; }
availableConnections = new Vector(maxConnections);
busyConnections = new Vector(maxConnections);
for (int i = 0; i < maxConnections; i++) {
availableConnections.add(makeNewConnection());
* ConnectionPoolHolder provide Thread safe singleton
* instance of ConnectionPool class
private static class ConnectionPoolHolder {
* connection pool instance
private static ConnectionPool connectionPool = null;
* If no ConnectionPool object is present, it creates instance of
* ConnectionPool class and initiates thread on that.
* @return ConnectionPool Returns singleton object of ConnectionPool
* class.
* @throws CDLookupException
private static ConnectionPool getInstance() throws CDLookupException {
if (connectionPool == null) {
connectionPool = new ConnectionPool();
new Thread(connectionPool).start();
// Initiate house keeping thread.
HouseKeeperThread.getInstance().start();
return connectionPool;
* Returns singleton object of ConnectionPool class.
* @return ConnectionPool
* @throws CDLookupException
public static ConnectionPool getConnectionPool() throws CDLookupException {
return ConnectionPoolHolder.getInstance();
* getConnection retrieves connections to the corp directory. In case
* there is no available connections in the pool then it'll try to
* create one, if the max connection limit for the connection pool
* reaches then this waits to retrieve one.
* @return Context
* @throws CDLookupException
public synchronized Context getConnection() throws CDLookupException {
String methodIdentifier = "getConnection";
if (!availableConnections.isEmpty()) {
int connectionSize = availableConnections.size() - 1;
DirContext existingConnection = (DirContext) availableConnections
.get(connectionSize);
availableConnections.remove(connectionSize);
* If connection on available list is closed (e.g., it timed
* out), then remove it from available list and repeat the
* process of obtaining a connection. Also wake up threads that
* were waiting for a connection because maxConnection limit was
* reached.
if (existingConnection == null) {
notifyAll(); // Freed up a spot for anybody waiting
return (getConnection());
} else {
busyConnections.add(existingConnection);
return (existingConnection);
} else {
* Three possible cases: 1) You haven't reached maxConnections
* limit. So establish one in the background if there isn't
* already one pending, then wait for the next available
* connection (whether or not it was the newly established one).
* 2) You reached maxConnections limit and waitIfBusy flag is
* false. Throw SQLException in such a case. 3) You reached
* maxConnections limit and waitIfBusy flag is true. Then do the
* same thing as in second part of step 1: wait for next
* available connection.
if ((totalConnections() < maxConnections) && !connectionPending) {
makeBackgroundConnection();
} else if (!waitIfBusy) {
throw new CDLookupException("Connection limit reached", 0);
* Wait for either a new connection to be established (if you
* called makeBackgroundConnection) or for an existing
* connection to be freed up.
try {
wait();
} catch (InterruptedException ie) {
String errMsg = "Exception raised =" + ie.getStackTrace();
log.error(errMsg);
throw new CDLookupException(classIdentifier, methodIdentifier,
errMsg, ie);
// connection freed up, so try again.
return (getConnection());
* You can't just make a new connection in the foreground when none are
* available, since this can take several seconds with a slow network
* connection. Instead, start a thread that establishes a new
* connection, then wait. You get woken up either when the new
* connection is established or if someone finishes with an existing
* connection.
private void makeBackgroundConnection() {
connectionPending = true;
try {
Thread connectThread = new Thread(this);
log.debug("background thread created");
connectThread.start();
} catch (OutOfMemoryError oome) {
log.error("makeBackgroundConnection ="+ oome.getStackTrace());
* Thread run method
public void run() {
String methodIdentifier = "run";
try {
Context connection = makeNewConnection();
synchronized (this) {
availableConnections.add(connection);
connectionPending = false;
notifyAll();
} catch (Exception e) { // SQLException or OutOfMemory
// Give up on new connection and wait for existing one
// to free up.
String errMsg = "Exception raised =" + e.getStackTrace();
log.error(errMsg);
* This explicitly makes a new connection. Called in the foreground when
* initializing the ConnectionPool, and called in the background when
* running.
* @return Context
* @throws CDLookupException
private Context makeNewConnection() throws CDLookupException {
String methodIdentifier = "makeNewConnection";
Context context = null;
env = new Properties();
log.debug("inside " + methodIdentifier);
try {
env.put(Context.INITIAL_CONTEXT_FACTORY,
getVendorContextFactoryClass());
env.put(Context.PROVIDER_URL, getLdapServerUrl());
env.put("com.sun.jndi.ldap.connect.pool", "true");
context = new InitialDirContext(env);
} catch (NamingException e) {
String errMsg = "CDLdapBuilder connect() - failure while attempting to contact "
+ ldapServerUrl + " Exception is " + e.toString();
throw new CDLookupException(classIdentifier, methodIdentifier,
errMsg, e, LookupFailureReasons.serviceUnavailable);
} catch (Exception e) {
String errMsg = "CDLdapBuilder connect() - failure while attempting to contact "
+ ldapServerUrl + " Exception is " + e.toString();
throw new CDLookupException(classIdentifier, methodIdentifier,
errMsg, e, LookupFailureReasons.serviceUnavailable);
log.info("new connection :" + (threadCount++) + " name =" + context);
log.debug("exit " + methodIdentifier);
return context;
* releases connection to the free pool
* @param context
public synchronized void free(Context context) {
busyConnections.remove(context);
availableConnections.add(context);
// Wake up threads that are waiting for a connection
notifyAll();
* @return int give total no of avail connections.
public synchronized int totalConnections() {
return (availableConnections.size() + busyConnections.size());
* Close all the connections. Use with caution: be sure no connections
* are in use before calling. Note that you are not <I>required</I> to
* call this when done with a ConnectionPool, since connections are
* guaranteed to be closed when garbage collected. But this method gives
* more control regarding when the connections are closed.
public synchronized void closeAllConnections() {
closeConnections(availableConnections);
availableConnections = new Vector();
closeConnections(busyConnections);
busyConnections = new Vector();
* Close all connections existing.
* @param connections
* void
private void closeConnections(Vector connections) {
String methodIdentifier = "closeConnections";
try {
for (int i = 0; i < connections.size(); i++) {
Context context = (Context) connections.get(i);
if (context != null) {
log.info(" connection name:" + context
+ " removed. Threadcount =" + (threadCount++));
context.close();
context = null;
} catch (NamingException e) {
String errMsg = "CDLdapBuilder connect() - failure while attempting to contact "
+ ldapServerUrl + " Exception is " + e.toString();
log.error(errMsg);
public synchronized String toString() {
String info = "ConnectionPool(" + getLdapServerUrl() + ","
+ getVendorContextFactoryClass() + ")" + ", available="
+ availableConnections.size() + ", busy="
+ busyConnections.size() + ", max=" + maxConnections;
return (info);
* @return the defaultSearchBase
public final String getDefaultSearchBase() {
return defaultSearchBase;
* @param defaultSearchBase
* the defaultSearchBase to set
public final void setDefaultSearchBase(String defaultSearchBase) {
this.defaultSearchBase = defaultSearchBase;
* @return the ldapServerUrl
public final String getLdapServerUrl() {
return ldapServerUrl;
* @param ldapServerUrl
* the ldapServerUrl to set
public final void setLdapServerUrl(String ldapServerUrl) {
this.ldapServerUrl = ldapServerUrl;
* @return the vendorContextFactoryClass
public final String getVendorContextFactoryClass() {
return vendorContextFactoryClass;
* @param vendorContextFactoryClass
* the vendorContextFactoryClass to set
public final void setVendorContextFactoryClass(
String vendorContextFactoryClass) {
this.vendorContextFactoryClass = vendorContextFactoryClass;
* @return the availableConnections
public final Vector getAvailableConnections() {
return availableConnections;
}Hi,
As the connection pool implmentation has the bug of not extending more than the min size, workaround I use is MIN_CONN=100 and MAX_CONN=101,and just waiting for the bug to get fixed. (using Netscape SDK for java4.0) -
I have an "unexpected error" on my iPad for my VPN.
I have an "unexpected error" on my iPad for my VPN. I removed my old certificate because it said "not trusted" and received and installed a new certificate (now it shows trusted) but get the same message. Worked find before I installed iOS7.
Could be a "bug".
Send feedback to Apple.
http://www.apple.com/feedback/ipad.html
Cheers, Tom -
Connect Mobile for RIM Blackberry Playbook hangs while trying to connect to server
We have Adobe Connect 8 (Multilanguage - Portuguese) installed on a server. Connect Mobile for RIM Blackberry Playbook hangs while trying to connect to the server. Hayward Drummond has posted a notice about Adobe Connect 8.1.2 that seems to solve this problem, known as BUG 2886745. I sucessfuly downloaded this update but I´m not sure if it is compatible with Adobe Connect 8 Multilanguage - Portuguese. Does anyone know something about it? I also need to first install version 8.1.1 in order to upgrade to 8.1.2, as remarked by Hayward. Does anyone know where can I download version 8.1.1 (Multlanguage - Portuguese)?
try to install Firefox 8 on top of Firefox 7, or
Profile is a folder which store all your personal data in a safe place
* https://support.mozilla.com/en-US/kb/Profiles
here explain how to backup profile
* https://support.mozilla.com/en-US/kb/Backing%20up%20your%20information
here explain how to restore it
* https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile -
Gateway unexpectedly closed the connection..
When I try to Test Connection for the Active Directory Resources it shows the following error
The gateway unexpectedly closed the connection with an exception, check the gateway trace for more information. ==> java.net.SocketException: Connection reset by peer: socket write error
Previously it has working fine for me...Kannan SB wrote:
I Have resolved my issue... I had remove the Gateway service and reinstall the service & restart the machine and try it got success...Still I have face the same issue, only it works for sometime I means while we restart the service it will work after some mins it got failed to perform the service.. Please suggest me for that....
I have migrated Sun Identity Manager 8.1 Patch 7 to Oracle Waveset 8.1.1 Still the issue persists ... -
Ati driver install warning unexpected token `}'
/var/lib/pacman/local/ati-drivers-8.22.5-4/install: line 32: syntax error near unexpected token `}' do I need to worry about this
it's not fixed at home :
[root@ElroCorp nico]# pacman -S ati-drivers
Targets: ati-drivers-8.22.5-4
Total Package Size: 9.1 MB
Proceed with upgrade? [Y/n]
checking package integrity... done.
loading package data... done.
checking for file conflicts... done.
/tmp/pacman-j2SHLE/.INSTALL: line 32: syntax error near unexpected token `}'
/tmp/pacman-j2SHLE/.INSTALL: line 32: `}'
installing ati-drivers... done.
/var/lib/pacman/local/ati-drivers-8.22.5-4/install: line 32: syntax error near
nexpected token `}'
/var/lib/pacman/local/ati-drivers-8.22.5-4/install: line 32: `}' -
TO_DATE function with JPA, Getting Unexpected Token error
I am constructing a search query like this from my JAVA code
SELECT * FROM EMAIL_PROXY_ERROR_LOG WHERE (to_date((REPLACE (DATETIME,'T',':')),'yyyy-mm-dd:hh24:mi:ss') BETWEEN to_date('2008-04-29:11:30:08','yyyy-mm-dd:hh24:mi:ss') AND to_date('2008-04-30:11:30:02','yyyy-mm-dd:hh24:mi:ss'))
I am using Toplink Essentials and I get the following error while running, what would be a possible solution
Exception Description: Syntax error parsing the query [select c FROM EmailProxyErrorLog c WHERE to_date((REPLACE (c.dateTime,'T',':')),'yyyy-mm-dd:hh24:mi:ss') BETWEEN to_date('2008-04-26:11:30:08','yyyy-mm-dd:hh24:mi:ss') AND to_date('2008-04-30:11:30:02','yyyy-mm-dd:hh24:mi:ss')], line 1, column 42: unexpected token [to_date].
Internal Exception: line 1:42: unexpected token: to_date
at oracle.toplink.essentials.exceptions.EJBQLException.unexpectedToken(EJBQLException.java:389)
at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.handleANTLRException(EJBQLParser.java:350)
at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.addError(EJBQLParser.java:278)
at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.reportError(EJBQLParser.java:378)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticPrimary(EJBQLParser.java:3617)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticFactor(EJBQLParser.java:3513)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticTerm(EJBQLParser.java:3407)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.simpleArithmeticExpression(EJBQLParser.java:1021)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticExpression(EJBQLParser.java:2304)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.simpleConditionalExpression(EJBQLParser.java:2282)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalPrimary(EJBQLParser.java:2218)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalFactor(EJBQLParser.java:2155)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalTerm(EJBQLParser.java:2030)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.conditionalExpression(EJBQLParser.java:1989)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.whereClause(EJBQLParser.java:507)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.selectStatement(EJBQLParser.java:184)
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.document(EJBQLParser.java:135)
at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.parse(EJBQLParser.java:166)
at oracle.toplink.essentials.internal.parsing.ejbql.EJBQLParser.buildParseTree(EJBQLParser.java:127)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:215)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:189)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.buildEJBQLDatabaseQuery(EJBQueryImpl.java:153)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:114)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EJBQueryImpl.<init>(EJBQueryImpl.java:99)
at oracle.toplink.essentials.internal.ejb.cmp3.EJBQueryImpl.<init>(EJBQueryImpl.java:86)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerImpl.createQuery(EntityManagerImpl.java:204)
Caused by: line 1:42: unexpected token: to_date
at oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLParser.arithmeticPrimary(EJBQLParser.java:3611)Hello,
The JPQL dies not define a to_date function, which is why it will throw an exception when parsing the query string. You will need to use a native query for this if you need to convert database fields to dates for comparison.
Best Regards,
Chris -
Java.sql.SQLException: Unexpected token: IN in statement
I use Toplink 2.0-b41-beta2 (03/30/2007) and have a problem with the following JPQL query:
“SELECT DISTINCT OBJECT(e) FROM Entry e WHERE e.location IN (SELECT loc From View v JOIN v.viewLocs vl JOIN vl.location loc where v.code = :code)”
“Entry” is a subclass of “TrainElement”, location points to Entity Location. Entity View has a one-to-many relationship to ViewLoc whereas each ViewLoc has a relationship to a Location object.
Toplink creates the following incorrect sql statement – I inserted some CRLF for better readability::
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Unexpected token: IN in statement
[SELECT DISTINCT t0.TELEM_TRAINELEM_ID, t0.TRAINELEMENT_TYPE, t0.TELEM_INDEX, t0.TTELEM_TRAIN_ID, t0.ENTRY_TYPE, t0.ENTRY_ARRIVAL, t0.DISPLAY, t0.ENTRY_ORDERED_STOP, t0.ENTRY_DEPARTURE, t0.ENTRY_ORDER_CODE, t0.ENTRY_PREV_SEC_ID, t0.ENTRY_NEXT_SEC_ID, t0.ENT_LOC_ID FROM TRAINELEMENT t0, LOCATION t1
WHERE (( IN ((SELECT DISTINCT t2.LOC_ID, t2.LOC_GPSY, t2.LOC_GRX, t2.LOC_CODE, t2.LOC_GRY, t2.LOC_GPSX, t2.LOC_LOCAL_RADIO, t2.LOC_NAME, t2.DELETED, t2.LOC_CLASS_ID FROM VIEW t4, VIEWLOC t3, LOCATION t2 WHERE ((t4.VIEW_CODE = ?) AND ((t3.VIEWLOC_VIEW_ID = t4.VIEW_ID) AND (t2.LOC_ID = t3.VIEWLOC_LOCACTION_ID))))) AND (t0.TRAINELEMENT_TYPE = ?)) AND (t1.LOC_ID = t0.ENT_LOC_ID))]
Error Code: -11
Call: SELECT DISTINCT t0.TELEM_TRAINELEM_ID, t0.TRAINELEMENT_TYPE, t0.TELEM_INDEX, t0.TTELEM_TRAIN_ID, t0.ENTRY_TYPE, t0.ENTRY_ARRIVAL, t0.DISPLAY, t0.ENTRY_ORDERED_STOP, t0.ENTRY_DEPARTURE, t0.ENTRY_ORDER_CODE, t0.ENTRY_PREV_SEC_ID, t0.ENTRY_NEXT_SEC_ID, t0.ENT_LOC_ID FROM TRAINELEMENT t0, LOCATION t1 WHERE (( IN ((SELECT DISTINCT t2.LOC_ID, t2.LOC_GPSY, t2.LOC_GRX, t2.LOC_CODE, t2.LOC_GRY, t2.LOC_GPSX, t2.LOC_LOCAL_RADIO, t2.LOC_NAME, t2.DELETED, t2.LOC_CLASS_ID FROM VIEW t4, VIEWLOC t3, LOCATION t2 WHERE ((t4.VIEW_CODE = ?) AND ((t3.VIEWLOC_VIEW_ID = t4.VIEW_ID) AND (t2.LOC_ID = t3.VIEWLOC_LOCACTION_ID))))) AND (t0.TRAINELEMENT_TYPE = ?)) AND (t1.LOC_ID = t0.ENT_LOC_ID))
bind => [ROMAN W-Pb, ENT]
There sould be a “t0.ENT_LOC_ID” before the IN in the WHERE clause and the implicit join “ID FROM TRAINELEMENT t0, LOCATION t1” seems incorrect to me. At any rate the database (HSQLDB) rejects that incorrect sql statement.
How can I circumvent that problem?
A add the relevant mapping part of the involved classes.
@Entity
@DiscriminatorValue("ENT")
public class Entry extends TrainElement implements IEntry {
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "ENT_LOC_ID", nullable = true)
private Location location;
@Entity
@Table(name = "LOCATION")
public class Location implements ILocation {
// persistent part
// primary key field
@Id
@GeneratedValue
@Column(name = "LOC_ID")
private Long id;
@Column(name = "LOC_CODE", nullable = false)
private String code;
@Column(name = "LOC_NAME", nullable = false)
private String name;
@Entity
@EntityListeners(EntityListener.class)
@Table(name = "VIEW")
public class View implements IView {
// persistent
// primary key field
@Id
@GeneratedValue
@Column(name = "VIEW_ID")
private Long id;
@OneToMany(mappedBy = "view", cascade = CascadeType.ALL)
private List<ViewLoc> viewLocs = new ArrayList<ViewLoc>();
@Entity
@Table(name = "VIEWLOC")
@EntityListeners(EntityListener.class)
public class ViewLoc implements IViewLoc {
// persistent fields
// primary key field
@Id
@GeneratedValue
@Column(name = "VIEWLOC_ID")
private Long id;
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "VIEWLOC_VIEW_ID", nullable = false)
private View view;
// direct Linking to the infrastrucutre location
@ManyToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "VIEWLOC_LOCACTION_ID")
private Location location;
….IN doesn't support objects, only state_field_path_expression that must have a string, numeric, or enum value.
Try using
“SELECT DISTINCT OBJECT(e) FROM Entry e WHERE e.location.id IN (SELECT loc.id From View v JOIN v.viewLocs vl JOIN vl.location loc where v.code = :code)”
Best Regards,
Chris -
ERROR Internal Error: Received unexpected exception processing connection
Hi,
I am observing A INTERNAL Error within the JMS Open MQ server with a connection failing:
Thanks.!
Java Runtime: 1.6.0_01 Sun Microsystems Inc. /usr/jdk/instances/jdk1.6.0/jre
[08/Nov/2007:12:07:49 MST] IMQ_HOME=/zpool1/OpenMQ4-1/mq
[08/Nov/2007:12:07:49 MST] IMQ_VARHOME=/zpool1/OpenMQ4-1/mq/var
[08/Nov/2007:12:07:49 MST] SunOS 5.10 x86 vdev4th (4 cpu) root
[08/Nov/2007:12:07:49 MST] Max file descriptors: 65536 (65536)
[08/Nov/2007:12:07:49 MST] Java Heap Size: max=191168k, current=34304k
[08/Nov/2007:12:07:49 MST] Arguments: -loglevel DEBUG
[08/Nov/2007:12:07:50 MST] [B1060]: Loading persistent data...
[08/Nov/2007:12:07:50 MST] Using built-in file-based persistent store: /zpool1/OpenMQ4-1/mq/var/instances/imqbroker/
[08/Nov/2007:12:07:50 MST] [B1039]: Broker "imqbroker@vdev4th:7676" ready.
[08/Nov/2007:19:19:35 MST] ERROR Internal Error: Received unexpected exception processing connection closing connection:
java.lang.NullPointerException
at com.sun.messaging.jmq.util.lists.NFLPriorityFifoSet.internalRemove(NFLPriorityFifoSet.java:1069)
at com.sun.messaging.jmq.util.lists.NFLPriorityFifoSet$FilterSet.removeNext(NFLPriorityFifoSet.java:583)
at com.sun.messaging.jmq.jmsserver.core.Consumer.getMoreMessages(Consumer.java:556)
at com.sun.messaging.jmq.jmsserver.core.Consumer.getAndFillNextPacket(Consumer.java:798)
at com.sun.messaging.jmq.jmsserver.core.Session.fillNextPacket(Session.java:675)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.fillNextPacket(IMQIPConnection.java:2039)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.writeData(IMQIPConnection.java:1678)
at com.sun.messaging.jmq.jmsserver.service.imq.IMQIPConnection.process(IMQIPConnection.java:650)
at com.sun.messaging.jmq.jmsserver.service.imq.OperationRunnable.process(OperationRunnable.java:170)
at com.sun.messaging.jmq.jmsserver.util.pool.BasicRunnable.run(BasicRunnable.java:493)
at java.lang.Thread.run(Thread.java:619)This this from a new install or on that been running for awhile?
-
PowerShell command returned an exception. Unexpected token 's' in expression or statement
Hi All,
I am trying to Creating a VM based on a Template in VMM through Orchestrator Runbook using below URL;
http://blogs.catapultsystems.com/lrayl/archive/2013/07/03/orchestrator-system-center-integrations-part-3-creating-a-vm-based-on-a-template-in-vmm.aspx
Runbook:
But at the Create VM from Template activity runbook will failed:
Throwing below error in while running runbook in Error Summary text:
PowerShell command returned an exception. Unexpected token 's' in expression or statement.
Exception: InvalidOperationException
Target site: PSRunspaceInvoker.HandleInvokeException
Stack trace:
at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.HandleInvokeException(Exception ex, ILogger logger)
at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSRunspaceInvoker.Invoke(RunspaceInvoke runspace, String script, ILogger logger)
at Microsoft.SystemCenter.Orchestrator.Integration.PowerShellConnector.PSScriptRunner.Execute(String script)
at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012Domain.VM.CloneFromTemplate(String vmmServer, ParameterList inputParameters)
at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.VM.CloneFromTemplate.DoExecute(IActivityRequest request, ILogger logger)
at Microsoft.SystemCenter.Orchestrator.Integration.VMM2012QIK.ActivityBase`2.Execute(IActivityRequest request, IActivityResponse response)
Both Orchestrator & SCVMM powershell are set on Unrestricted powershell.
Kindly suggest any solution or work around for resolution.
Thanks Rahul$This may be a bit late and perhaps not even relevant but I came across this post when trying to solve an issue I had with a powershell script in Orchestrator. Maybe it will help you, or maybe it will help someone else.
I was trying to create a connector between SCOM and our ticketing system. I wanted to export alert descriptions and in the process of testing I came across an alert description that had multiple lines and all kinds of crazy formatting. When I tried to assign
the Published Data to a varialbe in my powershell script i would get an error "Unexpected token [a partial alert description] in expression or statement.". After looking at the actual alert description data and seeing that i was only getting some of it
and not all of it it dawned on me that i somehow needed to escape out of all the crazy quoting, carriage returns, and special characters. to do that i assigned the Published Data to a variable in my powershell script as follows:
$Description = @"
{Description from "Get Alert"}
Apparently the @" "@ is called a here-string. Somewhat interesting. Hope it helps you or someone else!
Maybe you are looking for
-
How can I write waveform data to a txt file or an excel sheet?
I want have a table that I can follow up in excel. In first column should be the timestamp (in ms or better in us), in the second column should be the value. I made an effort but it doesn´t work. Attachments: PWMReadWrite.vi 167 KB
-
Hard drive sometimes not recognized! Plz help!
Hello, For the past 3 weeks I've been having problems with my iMac during start-up, and I'm completely out of ideas to solve them... Here are the symptoms: -Very long grey screen at start-up, culminating in the "?" folder after 10 or so minutes. -Whe
-
Auto album ratings breaks smart playlists - hollow stars
I've seen this discussed a few times but the given answers don't seem to work, maybe it has changed again in the new release of itunes (I'm on 9.1.1.12 on XP). I have a smart playlist of all the songs which have not been rated. Once I'd rated 19/29 o
-
How to recover only to C:\
I tried to find a similar topic in the past but I failed so I am asking everybody here: My Qosmio is partitioned in 3 Partitions. After 1 year of work the system grows slower and slower. Ill try to recover a fresh system from the recovery CD but I ra
-
I tunes version 7.5 and error message 2738
Have made several attempts recently to download the latest version of i tunes (7.5) but everytime I try I get almost to the end of installing and then when it starts to install quicktime I get an error message which is 2738 and says it cannot complet