Exception while Parsing date

When i try to parse date like this :
Date date = new Date();
date = DateFormat.getDateInstance(DateFormat.SHORT).parse("08.02.05");
out.println(date);
At run time i get the following Exception:
Exception in thread "main" java.text.ParseException: Unparseable date: "08.02.05"
at java.text.DateFormat.parse(DateFormat.java:335)
at demo.main(demo.java:12)
I had seen this working in an example and now this is not working.....can anyone tell me Why.................

It probably depends on your regional settings. You should specify the pattern instead of using DateFormat.SHORT.
Kaj

Similar Messages

  • Runtime exception while updating data

    Hi All,
    I'm getting a runtime exception while trying to update data to cube. It if full load and the error is like
    "A RAISE statement in the program "SAPLSDIFRUNTIME" raised the exception
    condition "NOT_FOUND".
    Since the exception was not intercepted by a superior
    program, processing was terminated."
    The runtime exception is "RAISE_EXCEPTION".
    Can anyone pls help me understand it and how to overcome it.
    Thanks in advance,
    Sananda

    Hi,
    Are you trying to load from DSO->Cube? or PSA->Cube?
    Whatever the case, take an ABAPer's help and analyze the dump. You will get a clue.......
    Regards,
    Suman

  • Manual Webservice -  TechnicalException: IO Exception while parsing wsdl

    Hi Gurus,
    I have been following the tutorial [Generating Webservice Manually for a Rule project (XSD)|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c082390a-035f-2b10-dc9d-befec4aff998?quicklink=index&overridelayout=true]. Steps has been followed as described, but  WSNavigator shows the following error when the service is selected.
    com.sap.engine.services.webservices.espbase.query.exceptions.TechnicalException: IO Exception occurred while parsing file:http://host:5xx00/demo.comp%7Eloaneligibility/GenericService?wsdl&mode=ws_policy
    I guess the bug is in GenericWebService.java or in the wsdl. How can I figure out what is went wrong ?
    I am in NW CE 7.2 & NWDS 7.2 SP01 PAT0001
    Also wants to know whether provision of generating webservice for Rule project is available in NWDS 7.2 apart from webservice generation tool.
    Thanks in anticipation.
    Nikhil

    Hello Nikhil,
    Were you able to generate the web service using the feature to expose rules(using XSDs) as web serive?
    To resolve this exception you recieved while manually trying to create web service, we suggest the following steps -
    1. Add the design time dependency of tc/brms/facade to the web module created
    2. Add the deploy time and run time dependencies of tc/brms/facade to the EAR DC created.
    3. Build and Deploy these DCs
    Do let us know if the issue was resolved. Else, I suggest you raising an IT ticket for help from NW BRM team.
    Regards,
    Arti

  • SimpleDateFormat fails while parsing dates

    i have to parse a string representing a date, i did this test case which fails:
    public void testParseDate4() throws Exception {
              dateAsString = "Fri, 01-Jan-2000 01:00:00 GMT+1";
              String datePattern = "EEE, dd-MMM-yyyy HH:mm:ss z";
              boolean correctlyParsed=false;
              try {
                   SimpleDateFormat sdf = new SimpleDateFormat(datePattern);
                   java.util.Date utilData = sdf.parse(dateAsString);
              }catch(Exception e) {
                   e.printStackTrace();
                   correctlyParsed=false;
              assertTrue("Assert date correctly parsed", correctlyParsed);
         }any help is very appreciated.
    valerio

    i must correct my self. i checked jdk 1.5 sources, and i found the code implementing that case:
    case 17: // 'z' - ZONE_OFFSET
                int zoneIndex =
                    formatData.getZoneIndex(calendar.getTimeZone().getID());
                if (zoneIndex == -1) {
                    value = calendar.get(Calendar.ZONE_OFFSET) +
                        calendar.get(Calendar.DST_OFFSET);
              buffer.append(ZoneInfoFile.toCustomID(value));
                } else {
              int index = (calendar.get(Calendar.DST_OFFSET) == 0) ? 1: 3;
                    if (count < 4) {
                  // Use the short name
                  index++;
              buffer.append(formatData.zoneStrings[zoneIndex][index]);
                break;i must be doing something unproper...

  • Exception while creating Data Control

    Good day house,
    I have been doing some research on using business components design in other IDEs with Oracle ADF faces within JDeveloper 11g.
    I went through the following steps
    create a Java EE web application - a model and viewcontroller project
    imported my EJB project jar file - but I could not get an icon to show me the beans within my jar, so I imported the source instead
    On importing the source, I right click on my bean classes and chose create Data control but it comes with an exception
    May 27, 2009 2:15:10 AM oracle.javatools.logging.LogUtils log
    WARNING: Plugin threw exception: oracle.adfdtinternal.model.ide.datatransfer.jclient.JClientJavaSourceNodePlugin@1439ad
    java.lang.NullPointerException
         at oracle.adfdtinternal.model.ide.dbpanel.jclient.JClientUtil.getContextFromEditor(JClientUtil.java:539)
         at oracle.adfdtinternal.model.ide.datatransfer.jclient.PaletteItemProviderInfo.dropOnSameFile(PaletteItemProviderInfo.java:83)
         at oracle.adfdtinternal.model.ide.datatransfer.jclient.JClientJavaSourceNodePlugin.handleDataControlInfo(JClientJavaSourceNodePlugin.java:80)
         at oracle.adfdtinternal.model.ide.datatransfer.jclient.JClientJavaSourceNodePlugin.augmentImpl(JClientJavaSourceNodePlugin.java:56)
         at oracle.javatools.datatransfer.AbstractTransformingDataTransferPlugin.augmentIfDesired(AbstractTransformingDataTransferPlugin.java:65)
         at oracle.javatools.datatransfer.DataTransferPluginRegistry._runPlugin(DataTransferPluginRegistry.java:151)
         at oracle.javatools.datatransfer.DataTransferPluginRegistry.performAugmentation(DataTransferPluginRegistry.java:98)
         at oracle.adfdtinternal.model.ide.dbpanel.DataPanelDropListener._getTransferable(DataPanelDropListener.java:331)
         at oracle.adfdtinternal.model.ide.dbpanel.DataPanelDropListener.drop(DataPanelDropListener.java:253)
         at oracle.adfdtinternal.model.ide.dbpanel.DataPanelDropListener.drop(DataPanelDropListener.java:114)
         at java.awt.dnd.DropTarget.drop(DropTarget.java:434)
         at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
         at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:30)
         at java.awt.Component.dispatchEventImpl(Component.java:4358)
         at java.awt.Container.dispatchEventImpl(Container.java:2081)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
         at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:4036)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3890)
         at java.awt.Container.dispatchEventImpl(Container.java:2067)
         at java.awt.Window.dispatchEventImpl(Window.java:2458)
         at java.awt.Component.dispatchEvent(Component.java:4331)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Hence, I have two question
    1. Can I create my data control from the bean interfaces instead of the bean?
    2. Why the exception? Is it a problem with my JDeveloper installation?
    3. Is it also possible to create a data control from any plain java object/interface.
    thanks in advance

    Did you create the weblogic domain with the Oracle Webcenter Spaces option selected? This should install the relevant libraries into the domain that you will need to deploy your application. My experience is based off WC 11.1.1.0. If you haven't, you can extend your domain by re-running the Domain Config Wizard again (WLS_HOME/common/bin/config.sh)
    Cappa

  • Error while parsing date format

    Hi Friends
    I am using db2 as backend for my project and currently facing an issue with the parsing of the date.
    The date being returned from the db is in the format - yyyy-MM-dd-HH.mm.ss.SSS000 and the return type is String.
    when i try to parse and convert it into a date object. i get the following error
    java.text.ParseException: Unparseable date: "2011-05-30-20.23.25.319000"
    the code to format is as below
    String dateTime = "2011-05-30-20.23.25.319000";
    java.text.SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd-HH.mm.ss.SSS000");
    Date date =format.parse(dateTime);
    please provide your comments as to what i am doing wrong here.and if possible let me know the solution.
    Best Regards
    Vikeng

    Use this instead:
    java.text.SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd-HH.mm.ss.SSS");

  • Exception while Parsing SELECT

    I'm working with NB 5.5.1, VWP 5.5.1, MySQL 5.0.45 and J/Connect 5.0.7. When I enter following SELECT in the SQL-Editor-Window of a RowSet:
    SELECT DISTINCT twibu_ergebnisse.spieltag
      FROM twibu_ergebnisse
        WHERE     twibu_ergebnisse.saisonnr = 45
              AND twibu_ergebnisse.toreheim IS NOT NULL
              AND twibu_ergebnisse.toregast IS NOT NULLI get the following Exception when I Parse it:
    com.sun.rave.queryeditor.parser.SQLParser$LookaheadSuccess
         at com.sun.rave.queryeditor.parser.SQLParser.<init>(SQLParser.java:1319)
         at com.sun.rave.queryeditor.querymodel.SQLQueryFactory.parse(SQLQueryFactory.java:16)
         at com.sun.rave.queryeditor.querybuilder.QueryModel.parse(QueryModel.java:57)
         at com.sun.rave.queryeditor.querybuilder.QueryBuilder.parseQuery(QueryBuilder.java:1279)
         at com.sun.rave.queryeditor.querybuilder.QueryBuilder.populate(QueryBuilder.java:889)
         at com.sun.rave.queryeditor.querybuilder.QueryBuilderSqlTextArea.actionPerformed(QueryBuilderSqlTextArea.java:572)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1216)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1257)
         at java.awt.Component.processMouseEvent(Component.java:6038)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5803)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4410)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4240)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2429)
         at java.awt.Component.dispatchEvent(Component.java:4240)
    [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)I suppose it is the "IS NOT NULL" in the WHERE-Clause. Any suggestions how I can get rid of the Error?
    Regards,
    Willi
    Message was edited by:
    Willi2793

    I use JSC and have encountered the same problem. Although it affects the visual display of the query, it doesn't seem to affect the execution of the query in MySQL.
    I suspect the query isn't really being parsed by MySQL but by some JSC code. IS NULL or IS NOT NULL just isn't part of its vocabulary.
    If you want to validate your query, maybe you could temporarily change IS NOT NULL to = -1 (or something to that effect). After you validate your query you can change = -1 back to IS NOT NULL.
    For me, this has been more than an annoyance than a real problem.

  • Exception while loading data into the cache

    I'm getting the following error while attempting to pre-populate the cache:
    2010-11-01 16:27:21,766 ERROR [STDERR] (Logger@9229983 n/a) 2010-11-01 16:27:21.766/632.975 Oracle Coherence EE n/a <Error> (thread=DistributedCache, member=1): SynchronousListener cannot be added on the service thread:
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.addMapListener(PartitionedCache.CDB:14)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.addMapListener(PartitionedCache.CDB:1)
         at com.tangosol.coherence.component.util.SafeNamedCache.addMapListener(SafeNamedCache.CDB:27)
         at com.tangosol.net.cache.CachingMap.registerListener(CachingMap.java:1463)
         at com.tangosol.net.cache.CachingMap.ensureInvalidationStrategy(CachingMap.java:1579)
         at com.tangosol.net.cache.CachingMap.registerListener(CachingMap.java:1484)
         at com.tangosol.net.cache.CachingMap.get(CachingMap.java:487)
         at com.jpm.ibt.primegps.cachestore.AbstractGpsCacheStore.isEnabled(AbstractGpsCacheStore.java:54)
         at com.jpm.ibt.primegps.cachestore.AbstractGpsCacheStore.store(AbstractGpsCacheStore.java:83)
         at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.store(ReadWriteBackingMap.java:4783)
         at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.storeInternal(ReadWriteBackingMap.java:4468)
         at com.tangosol.net.cache.ReadWriteBackingMap.putInternal(ReadWriteBackingMap.java:1147)
         at com.tangosol.net.cache.ReadWriteBackingMap.put(ReadWriteBackingMap.java:853)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.put(PartitionedCache.CDB:98)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onPutAllRequest(PartitionedCache.CDB:41)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$PutAllRequest.onReceived(PartitionedCache.CDB:90)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:11)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    2010-11-01 16:27:21,829 ERROR [STDERR] (pool-14-thread-3) Exception in thread "pool-14-thread-3"
    2010-11-01 16:27:21,829 ERROR [STDERR] (Logger@9229983 n/a) 2010-11-01 16:27:21.766/632.975 Oracle Coherence EE n/a <Error> (thread=DistributedCache, member=1): Assertion failed: poll() is a blocking call and cannot be called on the Service thread
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:5)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$BinaryMap.get(PartitionedCache.CDB:26)
         at com.tangosol.util.ConverterCollections$ConverterMap.get(ConverterCollections.java:1559)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$ViewMap.get(PartitionedCache.CDB:1)
         at com.tangosol.coherence.component.util.SafeNamedCache.get(SafeNamedCache.CDB:1)
         at com.tangosol.net.cache.CachingMap.get(CachingMap.java:491)
         at com.jpm.ibt.primegps.cachestore.AbstractGpsCacheStore.isEnabled(AbstractGpsCacheStore.java:54)
         at com.jpm.ibt.primegps.cachestore.AbstractGpsCacheStore.store(AbstractGpsCacheStore.java:83)
         at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.store(ReadWriteBackingMap.java:4783)
         at com.tangosol.net.cache.ReadWriteBackingMap$CacheStoreWrapper.storeInternal(ReadWriteBackingMap.java:4468)
         at com.tangosol.net.cache.ReadWriteBackingMap.putInternal(ReadWriteBackingMap.java:1147)
         at com.tangosol.net.cache.ReadWriteBackingMap.put(ReadWriteBackingMap.java:853)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.put(PartitionedCache.CDB:98)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onPutAllRequest(PartitionedCache.CDB:41)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$PutAllRequest.onReceived(PartitionedCache.CDB:90)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:11)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:33)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    2010-11-01 16:27:21,922 ERROR [STDERR] (pool-14-thread-3) (Wrapped: Failed request execution for DistributedCache service on Member(Id=1, Timestamp=2010-11-01 16:20:09.372, Address=169.65.134.90:7850, MachineId=28250, Location=site:EMEA.AD.JPMORGANCHASE.COM,machine:WLDNTEC6WM754J,process:5416) (Wrapped: Failed to store key="9046019") poll() is a blocking call and cannot be called on the Service thread) com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service threadI'm a bit stumped as my code doesn't call poll() anywhere and this appears to be caused by the following in my CacheStore class:
    public void store(Object key, Object value) {
            log.info("CacheStore currently " + isEnabled());
            if (isEnabled()) {
                throw new UnsupportedOperationException("Store method not currently supported");
    public boolean isEnabled() {
            return ((Boolean) CacheFactory.getCache(CacheNameEnum.CONTROL_CACHE.name()).get(ENABLED)).booleanValue();
        }the only thing I can think of is maybe it has a problem calling a cache from within a CacheStore (if that makes sense). What I have is a CONTROL_CACHE which just stores a boolean value to indicate whether the store(), storeAll(), erase(), and eraseAll() methods should do anything. Is this correct?

    Hi Jonathan,
    I am trying to implement a write-behind cache but my configs may be wrong. The config for the cache with the cachestore looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd" >
    <cache-config>
         <caching-scheme-mapping>
         <cache-mapping>
              <cache-name>PARTY_CACHE</cache-name>
              <scheme-name>party_cache</scheme-name>
         </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <near-scheme>
                   <scheme-name>party_cache</scheme-name>
                   <service-name>partyCacheService</service-name>
                   <!-- a sensible default ? -->
                   <thread-count>5</thread-count>
                   <front-scheme>
                        <local-scheme>
                        </local-scheme>
                   </front-scheme>
                   <back-scheme>
                        <distributed-scheme>
                             <backing-map-scheme>
                                  <read-write-backing-map-scheme>
                                       <internal-cache-scheme>
                                            <local-scheme>
                                            </local-scheme>
                                       </internal-cache-scheme>
                                       <cachestore-scheme>
                                            <class-scheme>
                                                 <class-name>spring-bean:partyCacheStore</class-name>
                                            </class-scheme>
                                       </cachestore-scheme>
                                  </read-write-backing-map-scheme>
                             </backing-map-scheme>
                        </distributed-scheme>
                   </back-scheme>
                   <autostart>true</autostart>
              </near-scheme>
         </caching-schemes>
    </cache-config>and the control cache config looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd" >
    <cache-config>
         <caching-scheme-mapping>
         <cache-mapping>
              <cache-name>CONTROL_CACHE</cache-name>
              <scheme-name>control_cache</scheme-name>
         </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <near-scheme>
                   <scheme-name>control_cache</scheme-name>
                   <service-name>controlCacheService</service-name>
                   <!-- a sensible default ? -->
                   <thread-count>5</thread-count>
                   <front-scheme>
                        <local-scheme>
                             <high-units>100</high-units>
                        </local-scheme>
                   </front-scheme>
                   <back-scheme>
                        <distributed-scheme>
                             <backing-map-scheme>
                                  <read-write-backing-map-scheme>
                                  </read-write-backing-map-scheme>
                             </backing-map-scheme>
                        </distributed-scheme>
                   </back-scheme>
                   <autostart>true</autostart>
              </near-scheme>
         </caching-schemes>
    </cache-config>They have different service names but I'm guessing this isn't what you mean and I thought I was using write-behind but again I'm guessing my config is not correct?

  • EJB QL: Exception while parsing ... LIKE CONCAT(?1, '%')

    Hi,
    the following statement is EJB- 2.0 conform:
    <ejb-ql>SELECT OBJECT(obj) FROM aTable AS obj WHERE obj.aColumn LIKE CONCAT(?1, '%')</ejb-ql>
    While trying to deploy an EAR with the deployment tool, the following exception is thrown.
    [code]
    Cannot deploy application myCompany.com/myApp..
    Reason: Incorrect QL query: SELECT OBJECT(obj) FROM aTable AS obj WHERE obj.aColumn LIKE
                             CONCAT(?1, '%'), errors: line 2: unexpected token: CONCAT
                             CONCAT(?1, '%')
                             ^
    .; nested exception is:
         com.sap.engine.services.deploy.container.DeploymentException: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='com.sap.engine.services.ejb.exceptions.deployment.EJBDeploymentException: Incorrect QL query: SELECT OBJECT(obj) FROM aTable AS obj WHERE obj.aColumn LIKE
                             CONCAT(?1, '%'), errors: line 2: unexpected token: CONCAT
                             CONCAT(?1, '%')
                             ^
         at com.sap.engine.services.ejb.deploy.ejbql.QLTranslator.prepareQLContext(QLTranslator.java:191)
         at com.sap.engine.services.ejb.deploy.ejbql.QLTranslator.translateQuery(QLTranslator.java:103)
         at com.sap.engine.services.ejb.deploy.ejbql.QLTranslator.translateAllQueries(QLTranslator.java:171)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.translateQL(DeployAdmin.java:1398)
         at com.sap.engine.services.ejb.deploy.DeployAdmin.generate(DeployAdmin.java:254)
         at com.sap.engine.services.ejb.EJBAdmin.deploy(EJBAdmin.java:2118)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.makeComponents(DeploymentTransaction.java:594)
         at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:379)
         at com.sap.engine.services.deploy.server.application.DeploymentTransaction.begin(DeploymentTransaction.java:296)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:290)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:323)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3033)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.deploy(DeployServiceImpl.java:463)
         at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    [/code]
    The above mentioned query is supposed to be parsable, it works quite fine on JBoss and WLS.
    regards
    Marcel

    Hi Viliana,
    > Hi Marcel,
    > The J2EE Engine in NW04 is fully EJB 2.0 compatible.
    > Therefore, please check if your statement conforms to
    > the EJB QL BNF syntax (chapter 11 of the EJB2.0
    > specification) and if this is the case (at least to
    > me, your statement looks correct), open a CSS
    > ticket.
    I checked it against the EJB QL BNF and it is valid. What is a CSS ticket exactly?
    best regards
    Marcel

  • Object reference not set to an instance of an object. Exception while assigning data to a textbox

     spgetguestTableAdapter adapter = new spgetguestTableAdapter();
         HDeskDataset.spgetguestDataTable gt = new HDeskDataset.spgetguestDataTable();
                adapter.Fill(gt);
    HDeskDataset.spgetguestRow g = gt.FindByHD_GUEST_GUESTCODE(1);
    txtGuestCity.Value = g.HD_GUEST_CITY;  //  Here Is the Exception Occures, But Value Is Not Enpty

    Either the FindByHD_GUEST_GUESTCODE method doesn't return any spgetguestRow object or txtGuestCity has not yet been initialized and assigned to an object.
    If txtGuestCity is a TextBox, you should make sure that you assign its Text property
    after the call to the InitializeComponent() in the constructor of the Form or Window.
    If it is a custom object you must create an instance of the type before
    you assign its Value property:
    TheType txtGuestCity = new TheType();
    txtGuestCity.Value = g.HD_GUEST_CITY;
    If g is NULL you need to make sure that your FindByHD_GUEST_GUESTCODE actually returns an object when you pass the value 1 to it.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • MFL Exception while parsing fixed length file

    Hello Folks,
    I am getting a MFLException when I run a fixed length file through a MFL Format tester.
    <MFLException>
    <ErrorMessage>Did not completely process all input data.</ErrorMessage>
    <Details>
    <Detail>
    <Name>ErrorCode</Name>
    <Value>-3</Value>
    </Detail>
    <Detail>
    <Name>DataOffset</Name>
    <Value>2720</Value>
    </Detail>
    </Details>
    </MFLException>
    Added a Filler to handle any new line characters at the EOF.
    Any ideas what's wrong with my MFL ?
    Cheers,
    Abhijeet

    Hi Atheek,
    Thanks for the response. I sent an email to you gmail id with MFL & sample message being used.
    Cheers,
    Abhijeet

  • SAXException while parsing a well formed XML

    Hi all,
    I am getting SAXException while parsing even though my XML is well formed.
    It is written in the API that SAXException can be thrown for both error and warning. Is there any way to ignore the warnings coming while parsing and hence no SAXException is thrown.
    One more weird behavior I am getting is that when I catch the SAXException, it executes the catch block and after that control goes to the next line from where the exception was thrown, and that line is in try block itself. I'll show this with code example:
    1.     Try {
    2.        DocumentBuilder docBuild = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    3.        Document document = docBuild.parse( inputSrc );      //SAXException is thrown on this line
    4.        //Some code�
    5.     �
    6.     } catch (Exception e) {
    7.        System.out.println(�Exception while parsing: �+e.getMessage);
    8.     }
    9.     //Some Code�Ideally when SAXException is thrown on line 3, control should go to the line 7 and the to line 9 after the catch block. But in current senario control is going to line 4 after line 7. It is something very strange happening. My guess is, is it because of some property of SAXException, when thrown for warning?
    Any suggetion/advice in this regard will be helpful.
    Thanks in advance

    First: if an exception is happening, then your XML isn't well-formed. Look at the exception text and see what it's complaining about.
    As for why you're not catching the exception: a DocumentBuilder uses an ErrorHandler to handle the different warnings and errors. You can set your own ErrorHandler when parsing. The default (as documented in the link above) simply writes warnings and non-fatal errors to the console, and throws an exception only for fatal errors.

  • Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

    We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
    August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
    failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
    values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
    Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
    instead of only "Daughter".
    Please provide the solution to get rid of this issue.
    Thanks
    Ramasubbu

    Try below:
    http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
    http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
    While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
    'i' and I was working with an Edit Form. Changing it to
    'u' as it was with every other FormField fixed the issue.
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
    />
    Explanation:
    DataBind operation type parameters (the first parameter) are listed below:
    'i' stands for INSERT,
    'u' stands for UPDATE,
    'd' stands for DELETE.
    http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • (Class cast Exception)Problem while loading data fro database in java class

    Dear all,
    Please help me...to solve this
    I have a database having two columns of String and Date Types.
    In my java code i was trying to load the data to a UI.
    I am successfull in loading the String type value.
    But while loading date field value,is showing Class cast Exception.
    What i am doing is Getting the values from database to a String[] array.
    So my question is how to
    get the Date field as date field itself,Then convert it to a String..Then put it in to String[] array...
    Any body please help...If any one want more clarification in question i will give......

    Hi,
    I am using GWT to display my data in a Grid.
    So it will accept a Single two dimensional String array....Here i have one as String and other as Date.
    So i was trying to get each row in a sindle dimensional array array[] then store it in a list.
    Iteration goes up to 10 rows.After i am setting it in to a list
    ie list.add(array);
    Now while returning this list i am doing this
    "return (String[][])list.toArray(new String[0][]);"
    When i tried to get the date element to String array it is showing class cast exception. When i tried with toString() method it is showing the same problem.

  • Spry = Exception caught while loading data.xml [object Error]

    Exception caught while loading data.xml [object Error]
    I get this mistake message then I look in the Browser to my
    create html page with put in the xml file by Spry. All my xml files
    are not shows, its shows only the error massage.
    What can I do for the repair it?
    Thanks in advance for you answer and regards.

    Hi Jay,
    While in theory it should work offline, you have run into
    the main issue.
    IE7 has a security limitation that prevents the ActiveX
    control that does the XMLHttpRequest from working from the local
    file system.
    Without being about to control the viewing environment, you
    can't guarantee it will work in all instances.
    It will work if running off a web server (
    http://localhost or otherwise).
    I wouldn't recommend it for offline use unless you can
    control the usage.
    Let me know if you have further questions.
    Thanks,
    Donald Booth
    Adobe Spry Team

Maybe you are looking for

  • Concurrent Manager not processing the requests

    Dear friends, We are facing a serious issue with our production instance since morning. The concurrent managers are not processing the requests. As its month closing, a lot of requests are being piled up in the Standard Manager's queue. The Standard

  • Double-click any file on desktop, calling JAVA PROGRAM

    hi guys, i'm breakin my head on doin this prog....when we double click a file icon of any file extension, my another java program should be called. how to do this??? pls send a sample code........asap!!!!!!!!! regards, Sam...

  • Region free NTSC and PAL

    Hi all. I'm hoping someone can answer this question for me..... I wish to create a DVD to be played in various regions (PAL & NTSC). I know that in Encore CS5 I can create a Region free (0) DVD but do I need to create a PAL and an NTSC version (Im cu

  • How do I fix orientation of photos after they were changed after importing iPhoto library into new Photo app in Yosemite?

    When I switched over to the new Photos app in Yosemite v10.10.3 and imported my iPhoto library to it, random photos in my library had their orientation changed. Some are upside down and some are turned on their side. I have a huge photo library, so t

  • Forecast parameters in BAPI_MATERIAL_SAVEDATA

    Dear all, for a material hot to change its forecast parameters through BAPI_MATERIAL_SAVEDATA?There are 3 tabs in forecasting Exeute forecast,forecast values and consuption vals. How can i select forecast values through the bapiand then make changes