1

我正在尝试在我的系统中安装 hybris 4.7.9 版并出现以下错误。我尝试删除配置文件夹并从头开始重建。还是没用。

日志:

   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 447. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 261)
   [yjavac]     removePermissionsForPrincipals(item, Arrays.asList(principal));
   [yjavac]                                          ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 448. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 270)
   [yjavac] Could not find missing types in public abstract Set#RAW entrySet()
   [yjavac]     removePermissionsForNames(item, Arrays.asList(permissionName));
   [yjavac]                                     ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 449. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 432)
   [yjavac]     addGlobalPermissions(Arrays.asList(permissionAssignment));
   [yjavac]                          ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 450. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 448)
   [yjavac]     removeGlobalPermissions(Arrays.asList(permissionAssignment));
   [yjavac]                             ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 451. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 465)
   [yjavac]     removeGlobalPermissionsForPrincipals(Arrays.asList(principal));
   [yjavac]                                          ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 452. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 474)
   [yjavac]     removeGlobalPermissionsForNames(Arrays.asList(permissionName));
   [yjavac]                                     ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 453. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 724)
   [yjavac]     for (final Map.Entry<PK, Set<PK>> entry : principalPKToPermissio
nsPKMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 454. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 724)
   [yjavac]     for (final Map.Entry<PK, Set<PK>> entry : principalPKToPermissio
nsPKMap.entrySet())
   [yjavac]
        ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PK,Set<PK>> refers to the mi
ssing type Map$Entry
   [yjavac] ----------
   [yjavac] 455. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 790)
   [yjavac]     for (final Map.Entry<Principal, List<Boolean>> entry : permissio
nMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 456. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 790)
   [yjavac]     for (final Map.Entry<Principal, List<Boolean>> entry : permissio
nMap.entrySet())
   [yjavac]
     ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<Principal,List<Boolean>> ref
ers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] 457. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 858)
   [yjavac]     for (final Map.Entry<PrincipalModel, List<PermissionAssignment>>
 entry : groupByPrincipalMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 458. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 858)
   [yjavac]     for (final Map.Entry<PrincipalModel, List<PermissionAssignment>>
 entry : groupByPrincipalMap.entrySet())
   [yjavac]
                             ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PrincipalModel,List<Permissi
onAssignment>> refers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] 459. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 912)
   [yjavac]     for (final Map.Entry<PrincipalModel, List<PermissionAssignment>>
 entry : groupByPrincipalMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 460. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 912)
   [yjavac]     for (final Map.Entry<PrincipalModel, List<PermissionAssignment>>
 entry : groupByPrincipalMap.entrySet())
   [yjavac]
                             ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PrincipalModel,List<Permissi
onAssignment>> refers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] 461. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 953)
   [yjavac]     for (final Map.Entry<PK, List<PermissionContainer>> entry : grou
pByPrincipalMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 462. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 953)
   [yjavac]     for (final Map.Entry<PK, List<PermissionContainer>> entry : grou
pByPrincipalMap.entrySet())
   [yjavac]
                ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PK,List<PermissionContainer>
> refers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] 463. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 1051)
   [yjavac]     for (final Map.Entry<PK, List<PK>> permissionEntry : principalTo
PermissionListMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 464. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 1051)
   [yjavac]     for (final Map.Entry<PK, List<PK>> permissionEntry : principalTo
PermissionListMap.entrySet())
   [yjavac]
                  ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<PK,List<PK>> refers to the m
issing type Map$Entry
   [yjavac] ----------
   [yjavac] 465. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 1223)
   [yjavac]     for (final Map.Entry<Principal, List<Boolean>> entry : permissio
nMap.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 466. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\permissions\impl\
DefaultPermissionManagementService.java (at line 1223)
   [yjavac]     for (final Map.Entry<Principal, List<Boolean>> entry : permissio
nMap.entrySet())
   [yjavac]
     ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<Principal,List<Boolean>> ref
ers to the missing type Map$Entry
   [yjavac] ----------
   [yjavac] ----------
   [yjavac] 467. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\DefaultUse
rToAuthenticationConverter.java (at line 20)
   [yjavac]     import java.util.Arrays;
   [yjavac]            ^^^^^^^^^^^^^^^^
   [yjavac] The import java.util.Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] 468. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\DefaultUse
rToAuthenticationConverter.java (at line 53)
   [yjavac]     .getPassword(user.getUid()), Arrays.asList(authorities));
   [yjavac]                                  ^^^^^^
   [yjavac] Arrays cannot be resolved
   [yjavac] ----------
   [yjavac] ----------
   [yjavac] 469. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\HybrisSess
ionFixationProtectionStrategy.java (at line 97)
   [yjavac]     for (final Map.Entry<String, Object> entry : attributesToMigrate
.entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 470. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\HybrisSess
ionFixationProtectionStrategy.java (at line 97)
   [yjavac]     for (final Map.Entry<String, Object> entry : attributesToMigrate
.entrySet())
   [yjavac]
 ^^^^^^^^
   [yjavac] The method entrySet() from the type Map<String,Object> refers to the
 missing type Map$Entry
   [yjavac] ----------
   [yjavac] ----------
   [yjavac] 471. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\security\spring\vote\Hybri
sNotAnonymousVoter.java (at line 1)
   [yjavac]     /*
   [yjavac]     ^
   [yjavac] The type java.lang.reflect.AnnotatedElement cannot be resolved. It i
s indirectly referenced from required .class files
   [yjavac] ----------
   [yjavac] ----------
   [yjavac] 472. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\type\impl\DefaultTypeServi
ce.java (at line 0)
   [yjavac]     /*
   [yjavac]     ^
   [yjavac] Internal compiler error: java.lang.NullPointerException at org.eclip
se.jdt.internal.compiler.problem.ProblemReporter.missingTypeInMethod(`enter code here`Unknown Sou
rce)
   [yjavac] ----------`enter code here`
   [yjavac] 473. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\type\impl\DefaultTypeServi
ce.java (at line 450)
   [yjavac]     for (final Map.Entry<String, Object> e : (Set<Map.Entry<String,
Object>>) comptype.getAllDefaultValues().entrySet())
   [yjavac]                ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] 474. ERROR in D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform
\ext\servicelayer\src\de\hybris\platform\servicelayer\type\impl\DefaultTypeServi
ce.java (at line 450)
   [yjavac]     for (final Map.Entry<String, Object> e : (Set<Map.Entry<String,
Object>>) comptype.getAllDefaultValues().entrySet())
   [yjavac]                                                   ^^^^^^^^^
   [yjavac] Map.Entry cannot be resolved to a type
   [yjavac] ----------
   [yjavac] java.lang.NullPointerException
   [yjavac]     at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.mis
singTypeInMethod(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType
(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.CastExpression.resolveT
ype(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.ForeachStatement.resolv
e(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.Block.resolveUsing(Unkn
own Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.TryStatement.resolve(Un
known Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclarati
on.resolveStatements(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resol
veStatements(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclarati
on.resolve(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclarat
ion.resolve(Unknown Source)
   [yjavac]     at org.eclipse.jdt.internal.compiler.Compiler.process(Unknown So
urce)
   [yjavac]     at org.eclipse.jdt.internal.compiler.ProcessTaskManager.run(Unkn
own Source)
   [yjavac]     at java.lang.Thread.run(Unknown Source)
   [yjavac]

BUILD FAILED
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\build.xml:25: The followi
ng error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:47: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:66: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\util.xml:24
: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:68: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:208: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:220: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\compiling.x
ml:241: The following error occurred while executing this line:
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\resources\ant\util.xml:86
: Compile failed; see the compiler error output for details.

Total time: 34 seconds

D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform>hybrisserver.bat
Used config: D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\tomcat-6/con
f/wrapper.conf
FATAL  | wrapper  | Failed to load configuration.
An error occurred in the process.
D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform>
4

4 回答 4

3

ClassNotFound java.util.Arrays? java.util.Map? Those are pretty damn fundamental to Java.

I would say this is totally unrelated to hybris. Try installing Java.

于 2014-09-12T13:33:06.443 回答
0

安装 Jdk 后您可以做的另一件事是删除 hybris 设置并重新解压缩 hybris 文件夹,这有效地删除了默认数据库 - 您可以使用 ant initialize 重新创建原始数据库状态。

于 2015-02-20T09:34:40.620 回答
0

这些错误来自 Java 版本问题。如果您使用的是 Java 早期版本,请尝试安装新版本,如 1.6 或 1.7,因此再次尝试重新运行您的扩展。
尝试检查您的 Java 版本 ant 版本。

在这里,您需要执行更多步骤:

  1. 删除您的 Hybris 提取文件夹和
  2. 创建新文件夹和
  3. 将您的 zip 文件解压缩到新创建的文件夹中,然后从头开始
于 2016-01-09T09:06:14.803 回答
0

粘贴输出的末尾显示配置文件 PATH 具有“/”(正斜杠) - 在尝试加载配置文件时导致包装器 FATAL 异常。

  • 请改用“\”(斜杠)(参见示例)。

例子

(来自最后的原始帖子)

 D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform>hybrisserver.bat
Used config: D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform\tomcat-6/con
f/wrapper.conf
FATAL  | wrapper  | Failed to load configuration.
An error occurred in the process.

注意:wrapper.conf的路径有“/”(而不是“\”)导致

请使用正确的路径:D:\hybris-multichannel-suite-4.7.9\hybris\bin\platform**\tomcat-6\conf\wrapper.conf

于 2016-05-06T07:54:06.140 回答