4 Replies Latest reply on Aug 28, 2015 3:43 PM by John Mercado

    java.lang.IllegalArgumentException: character to be escaped is missing

    John Mercado Newbie

      Hello,

       

      I am trying to create a VDB to consume a REST based Web Service, using Teiid. I was able to create the view model and the view procedure, but when I try to preview the data, i get this: "ERROR: java.lang.IllegalArgumentException: character to be escaped is missing"

       

      error_Teiid_Kairosdb.jpg

       

      Could you please help me to identify what I am doing wrong?

       

      Regards,

       

      John.

        • 1. Re: java.lang.IllegalArgumentException: character to be escaped is missing
          Max Rydahl Andersen Master

          Does the error message contain more info (i.e. stacktrace) when you double click it ?

           

          That should give a better hint on where the error actually is.

          • 2. Re: java.lang.IllegalArgumentException: character to be escaped is missing
            John Mercado Newbie

            Hello Max,

             

            This is the exception stack trace from the error message:

             

            java.lang.IllegalArgumentException: character to be escaped is missing

              at java.util.regex.Matcher.appendReplacement(Unknown Source)

              at java.util.regex.Matcher.replaceAll(Unknown Source)

              at java.lang.String.replaceAll(Unknown Source)

              at org.teiid.query.metadata.SystemMetadata.<init>(SystemMetadata.java:90)

              at org.teiid.query.metadata.SystemMetadata.getInstance(SystemMetadata.java:66)

              at org.teiid.query.function.metadata.FunctionMetadataValidator.validateFunctionMethods(FunctionMetadataValidator.java:72)

              at org.teiid.query.function.SystemFunctionManager.getSystemFunctions(SystemFunctionManager.java:77)

              at org.teiid.runtime.client.query.QueryService.createFunctionLibrary(QueryService.java:137)

              at org.teiid.designer.udf.UdfManager.getSystemFunctionLibrary(UdfManager.java:372)

              at org.teiid.query.ui.sqleditor.sql.SqlSyntax.init(SqlSyntax.java:93)

              at org.teiid.query.ui.sqleditor.sql.SqlSyntax.<init>(SqlSyntax.java:61)

              at org.teiid.query.ui.sqleditor.sql.SqlCompletionProcessor.<init>(SqlCompletionProcessor.java:39)

              at org.teiid.designer.transformation.ui.editors.sqleditor.SqlSourceViewerConfiguration.getContentAssistant(SqlSourceViewerConfiguration.java:67)

              at org.teiid.designer.transformation.ui.editors.sqleditor.SqlTextViewer.<init>(SqlTextViewer.java:84)

              at org.teiid.designer.transformation.ui.editors.sqleditor.SqlEditorPanel.init(SqlEditorPanel.java:288)

              at org.teiid.designer.transformation.ui.editors.sqleditor.SqlEditorPanel.<init>(SqlEditorPanel.java:261)

              at org.teiid.designer.transformation.ui.editors.sqleditor.SqlEditorPanelWrapper.<init>(SqlEditorPanelWrapper.java:46)

              at org.teiid.designer.transformation.ui.editors.TransformationObjectEditorPage.getSqlEditorPanelWrapper(TransformationObjectEditorPage.java:669)

              at org.teiid.designer.transformation.ui.editors.TransformationObjectEditorPage.setCurrentSqlEditor(TransformationObjectEditorPage.java:696)

              at org.teiid.designer.transformation.ui.editors.TransformationObjectEditorPage.createSqlControl(TransformationObjectEditorPage.java:337)

              at org.teiid.designer.transformation.ui.editors.TransformationObjectEditorPage.createControl(TransformationObjectEditorPage.java:313)

              at org.teiid.designer.ui.editors.ModelObjectEditorPanel.addModelObjectEditor(ModelObjectEditorPanel.java:128)

              at org.teiid.designer.ui.editors.ModelObjectEditorPanel.activateModelObjectEditor(ModelObjectEditorPanel.java:151)

              at org.teiid.designer.ui.editors.MultiPageModelEditor.editModelObject(MultiPageModelEditor.java:393)

              at org.teiid.designer.ui.editors.ModelEditorManager.updateObjectEditor(ModelEditorManager.java:792)

              at org.teiid.designer.ui.editors.ModelEditorManager$5.run(ModelEditorManager.java:352)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator$2$1.run(UiBusyIndicator.java:206)

              at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

              at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

              at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)

              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.executeRunnable(UiBusyIndicator.java:227)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhileInternal(UiBusyIndicator.java:159)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:116)

              at org.teiid.designer.ui.editors.ModelEditorManager.open(ModelEditorManager.java:344)

              at org.teiid.designer.ui.editors.ModelEditorManager$7.run(ModelEditorManager.java:514)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator$2$1.run(UiBusyIndicator.java:206)

              at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

              at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

              at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)

              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.executeRunnable(UiBusyIndicator.java:227)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhileInternal(UiBusyIndicator.java:159)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:116)

              at org.teiid.designer.ui.editors.ModelEditorManager.edit(ModelEditorManager.java:505)

              at org.teiid.designer.ui.editors.ModelEditorManager.edit(ModelEditorManager.java:493)

              at org.teiid.designer.diagram.ui.notation.uml.part.UmlClassifierEditPart.edit(UmlClassifierEditPart.java:274)

              at org.teiid.designer.diagram.ui.editor.DiagramSelectionHandler$1.run(DiagramSelectionHandler.java:275)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator$2$1.run(UiBusyIndicator.java:206)

              at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

              at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)

              at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)

              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.executeRunnable(UiBusyIndicator.java:227)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhileInternal(UiBusyIndicator.java:159)

              at org.teiid.designer.ui.common.viewsupport.UiBusyIndicator.showWhile(UiBusyIndicator.java:116)

              at org.teiid.designer.diagram.ui.editor.DiagramSelectionHandler.handleDoubleClick(DiagramSelectionHandler.java:272)

              at org.teiid.designer.diagram.ui.notation.uml.part.UmlClassifierEditPart.performRequest(UmlClassifierEditPart.java:453)

              at org.teiid.designer.diagram.ui.util.SelectionTracker.handleDoubleClick(SelectionTracker.java:74)

              at org.eclipse.gef.tools.AbstractTool.mouseDoubleClick(AbstractTool.java:1069)

              at org.eclipse.gef.tools.SelectionTool.mouseDoubleClick(SelectionTool.java:527)

              at org.eclipse.gef.EditDomain.mouseDoubleClick(EditDomain.java:231)

              at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseDoubleClicked(DomainEventDispatcher.java:291)

              at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDoubleClick(LightweightSystem.java:518)

              at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:196)

              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)

              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)

              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)

              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)

              at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)

              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

              at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)

              at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)

              at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)

              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)

              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)

              at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)

              at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)

              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)

              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

              at java.lang.reflect.Method.invoke(Unknown Source)

              at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)

              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)

              at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

              at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

            • 3. Re: java.lang.IllegalArgumentException: character to be escaped is missing
              Ramesh Reddy Master

              This was due to a internal error inside the Designer, update to the latest version of the Designer as this is already fixed.

              • 4. Re: java.lang.IllegalArgumentException: character to be escaped is missing
                John Mercado Newbie

                I just updated Teiid Designer to version 9.1.1 and the exception is gone.

                 

                Thanks Ramesh.

                 

                Regards,

                 

                John