2016-08-12 3 views
1

Windowsでwso2 apim 2.0.1スナップショットを実行しています。サブスクリプション層を変更して保存すると例外が発生しますが、請求計画は変更されましたがAPIまだ表示無料ラベルを表示します。wso2am-2.0.1-SNAPSHOTサブスクリプション層のセーブエラーを修正する

[2016-08-12 15:30:02,504] ERROR - EventProcessorAdminService Error while deleting the execution plan file 
org.wso2.carbon.event.processor.core.exception.ExecutionPlanConfigurationException: Error while deleting the execution plan file 
     at org.wso2.carbon.event.processor.core.internal.util.EventProcessorConfigurationFilesystemInvoker.delete(EventProcessorConfigurationFilesystemInvoker.java:124) 
     ...... 
Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /D:/emman/PROJECT/AA/apimgmt/wso2am-2.0.1-SNAPSHOT/repository/deployment/server/\executionplans 
     at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) 
     at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) 
     at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) 
     at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) 
     at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) 
     at java.nio.file.Paths.get(Paths.java:84) 
     at org.wso2.carbon.event.processor.core.internal.util.EventProcessorUtil.validateFilePath(EventProcessorUtil.java:387) 
     at org.wso2.carbon.event.processor.core.internal.util.EventProcessorConfigurationFilesystemInvoker.delete(EventProcessorConfigurationFilesystemInvoker.j 
ava:109) 
     ... 65 more 
[2016-08-12 15:30:02,539] ERROR - ThrottlePolicyDeploymentManager Error while deploying policy to global policy server.Error while deleting the execution plan file 
[2016-08-12 15:30:02,541] INFO - subscription-policy-edit:jag SubscriptionPolicy [policyName=Gold, description=Allows 5000 requests per minute, defaultQuotaPolicy=QuotaPolicy [type=requestCount, limit=RequestCountLimit [requestCount=5000, 
toString()=Limit [timeUnit=min, unitTime=1]]]rateLimitCount=-1, tenantId=-1234,ratelimitTimeUnit=NA] 
+0

それは動作しませんWSO2 APIMのgithubの担当者[リンク](https://github.com/wso2/product-apim/issues/1101) –

答えて

0

ログごとに、以下の無効なファイルパスが原因でエラーが発生します。

/D:/emman/PROJECT/AA/apimgmt/wso2am-2.0.1-SNAPSHOT/repository/deployment/server/\executionplans 

私はcodeを見ました。このパスの最初の部分を<RepositoryLocation>タグcarbon.xmlファイルから読み込みます。デフォルトでは、次のようになります。

<RepositoryLocation>${carbon.home}/repository/deployment/server</RepositoryLocation>

あなたはcarbon.xmlで同じを持っているかどうか確認してください。同じ設定でこのエラーが発生した場合は、以下の絶対パスに変更してもう一度やり直してください。

D:\emman\PROJECT\AA\apimgmt\wso2am-2.0.1-SNAPSHOT\repository\deployment\server

+0

内の1つの問題を追加して、最初に「/」がシステムによって追加されます。 –

+0

万が一Cygwinを使用していますか? – Bee

+0

このようなLinuxの問題はありません。まずLinuxを使用します。 –

0

あなたのパスよりのlinux-のような、私はこのトリックを使用するようにします。 カーボンホームフォルダを共有します。 // machinenaam/shareのcarbon.xml設定RepositoryLocationを変更します。

+0

関連コードで最も詳細な説明を教えてください。 – SaschaM78

関連する問題